mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Improve test robustness and park flaky tests.
This commit is contained in:
@@ -113,7 +113,7 @@ final class TcpReplicator extends AbstractChannelReplicator implements Closeable
|
||||
|
||||
heartBeatIntervalMillis = replicationConfig.heartBeatInterval(MILLISECONDS);
|
||||
|
||||
selectorTimeout = Math.min(heartBeatIntervalMillis, throttleBucketInterval);
|
||||
selectorTimeout = Math.min(heartBeatIntervalMillis / 4, throttleBucketInterval);
|
||||
|
||||
this.replica = replica;
|
||||
this.localIdentifier = replica.identifier();
|
||||
@@ -191,8 +191,6 @@ final class TcpReplicator extends AbstractChannelReplicator implements Closeable
|
||||
keys[i] = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Thread.sleep(100);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -215,7 +213,7 @@ final class TcpReplicator extends AbstractChannelReplicator implements Closeable
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("closing name=" + name);
|
||||
if (!isClosed) {
|
||||
close();
|
||||
closeResources();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user