Skip to content

Commit 873d75c

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 873d75c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ mocha.describe('system_store', function() {
148148
const from_db = await system_store.load();
149149
const from_core = await system_store_from_core.load(undefined, 'ENDPOINT');
150150

151-
assert.deepStrictEqual(from_db, from_core);
151+
assert.deepStrictEqual(from_db.data, from_core.data);
152152

153153
});
154154

0 commit comments

Comments
 (0)