Skip to content

Commit 79c2111

Browse files
committed
system store - load from core - two steps publish - PR notes 2
Signed-off-by: Amit Prinz Setter <[email protected]>
1 parent 203d2b5 commit 79c2111

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ config.INTERNAL_STORAGE_POOL_NAME = 'system-internal-storage-pool';
250250
config.ALLOW_BUCKET_CREATE_ON_INTERNAL = true;
251251
config.BUCKET_AUTOCONF_TIER2_ENABLED = false;
252252
config.SYSTEM_STORE_LOAD_CONCURRENCY = parseInt(process.env.SYSTEM_STORE_LOAD_CONCURRENCY, 10) || 5;
253+
// SYSTEM_STORE_SOURCE determines the preffered source for loading system_store data
254+
// This can be either "DB" to load from the DB or "CORE" to load from the system_server in noobaa-core
253255
config.SYSTEM_STORE_SOURCE = process.env.SYSTEM_STORE_SOURCE || "DB";
254256
//////////////////////////
255257
// MD AGGREGATOR CONFIG //

src/test/integration_tests/db/test_system_store.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ mocha.describe('system_store', function() {
147147

148148
const from_db = await system_store.load();
149149
const from_core = await system_store_from_core.load(undefined, 'ENDPOINT');
150+
delete from_db.accounts;
151+
delete from_core.accounts;
150152

151153
assert.deepStrictEqual(from_db, from_core);
152154

0 commit comments

Comments
 (0)