mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fix test
This commit is contained in:
@@ -177,6 +177,7 @@ public class BasicReplicationTest {
|
||||
private final Bytes<ByteBuffer> buffer = Bytes.elasticByteBuffer(4096);
|
||||
private final ExecutorService delayedExecutor = Executors.newSingleThreadExecutor();
|
||||
private final AtomicInteger messagesInflight = new AtomicInteger(0);
|
||||
private final ArrayList<String> keys = new ArrayList<>();
|
||||
|
||||
IteratorAndDestinationMap(final ReplicatedChronicleMap<K, V, ?>.ModificationIterator modificationIterator,
|
||||
final ReplicatedChronicleMap<K, V, ?> sourceMap,
|
||||
@@ -190,7 +191,8 @@ public class BasicReplicationTest {
|
||||
public void onEntry(final ReplicableEntry entry, final int chronicleId) {
|
||||
try {
|
||||
buffer.clear();
|
||||
sourceMap.writeExternalEntry(entry, null, buffer, chronicleId);
|
||||
keys.clear();
|
||||
sourceMap.writeExternalEntry(entry, null, buffer, chronicleId,keys);
|
||||
|
||||
buffer.readPosition(0);
|
||||
buffer.readLimit(buffer.writePosition());
|
||||
@@ -221,4 +223,4 @@ public class BasicReplicationTest {
|
||||
destinationMap.setRemoteNodeCouldBootstrapFrom((byte) chronicleId, bootstrapTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user