Unit tests for database shards

This commit is contained in:
p2peer
2020-03-03 12:24:36 -05:00
committed by manojsdoshi
parent 728651b5d5
commit 93bf77bdec
8 changed files with 1063 additions and 17 deletions

View File

@@ -167,6 +167,9 @@ public:
section.set("path", tempDir.path());
section.set("max_size_gb", "100");
section.set("ledgers_per_shard", "256");
section.set("earliest_seq", "257");
auto& sectionNode = c->section(ConfigSection::nodeDatabase());
sectionNode.set("earliest_seq", "257");
c->setupControl(true, true, true);
jtx::Env env(*this, std::move(c));
@@ -262,6 +265,9 @@ public:
section.set("path", tempDir.path());
section.set("max_size_gb", "100");
section.set("ledgers_per_shard", "256");
section.set("earliest_seq", "257");
auto& sectionNode = c->section(ConfigSection::nodeDatabase());
sectionNode.set("earliest_seq", "257");
c->setupControl(true, true, true);
jtx::Env env(*this, std::move(c));
@@ -358,6 +364,9 @@ public:
section.set("ledgers_per_shard", "256");
section.set("shard_verification_retry_interval", "1");
section.set("shard_verification_max_attempts", "10000");
section.set("earliest_seq", "257");
auto& sectionNode = c->section(ConfigSection::nodeDatabase());
sectionNode.set("earliest_seq", "257");
c->setupControl(true, true, true);
jtx::Env env(*this, std::move(c));