Skip to content

Commit

Permalink
Fix flaky test ZKSessionTest.testDisconnection (apache#14129)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Feb 5, 2022
1 parent f9e69f0 commit 4a7244e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public TestZKServer() throws Exception {

public void start() throws Exception {
this.zks = new ZooKeeperServer(zkDataDir, zkDataDir, TICK_TIME);
this.zks.setMaxSessionTimeout(300_000);
this.serverFactory = new NIOServerCnxnFactory();
this.serverFactory.configure(new InetSocketAddress(zkPort), 1000);
this.serverFactory.startup(zks, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void testDisconnection() throws Exception {
@Cleanup
MetadataStoreExtended store = MetadataStoreExtended.create(zks.getConnectionString(),
MetadataStoreConfig.builder()
.sessionTimeoutMillis(30_000)
.sessionTimeoutMillis(300_000)
.build());

BlockingQueue<SessionEvent> sessionEvents = new LinkedBlockingQueue<>();
Expand Down

0 comments on commit 4a7244e

Please sign in to comment.