Skip to content

Commit

Permalink
Fix known issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanziwei committed Jan 5, 2024
1 parent 08c4c21 commit ad0bc3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public byte[] encode(final LogEntry log) {
builder.setOldWriteFactor(log.getOldWriteFactor());
}

if(log.getEnableFlexible()) {
if (log.getEnableFlexible()) {
builder.setIsEnableFlexible(log.getEnableFlexible());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,15 @@ public void testLoadWithConfigManager() {
ConfigurationEntry conf = this.confManager.getLastConfiguration();
assertNotNull(conf);
assertFalse(conf.isEmpty());
assertEquals("localhost:8081,localhost:8082,localhost:8083,enableFlexible:false,readFactor:0,writeFactor:0,quorum:Quorum{w=2, r=2}",
assertEquals(
"localhost:8081,localhost:8082,localhost:8083,enableFlexible:false,readFactor:0,writeFactor:0,quorum:Quorum{w=2, r=2}",
conf.getConf().toString());
conf = this.confManager.get(99);
assertNotNull(conf);
assertFalse(conf.isEmpty());
assertEquals("localhost:8081,localhost:8082,enableFlexible:false,readFactor:0,writeFactor:0,quorum:Quorum{w=2, r=2}", conf.getConf()
.toString());
assertEquals(
"localhost:8081,localhost:8082,enableFlexible:false,readFactor:0,writeFactor:0,quorum:Quorum{w=2, r=2}",
conf.getConf().toString());
}

@Test
Expand Down

0 comments on commit ad0bc3c

Please sign in to comment.