HCOLL-291 Remove unnecessary entry size calculation in tcp replication

This commit is contained in:
Rob Austin
2015-01-12 10:38:23 +00:00
parent eda4a3a33c
commit 58bf971aa2
3 changed files with 65 additions and 47 deletions
@@ -35,9 +35,9 @@ public class TcpReplicationWithAcquireUsingLockedTest {
try (ChronicleMap<CharSequence, TestInstrumentVOInterface> map2 =
ChronicleMapBuilder.of(CharSequence.class,
TestInstrumentVOInterface.class)
.replication((byte) 2, config2)
.create()) {
TestInstrumentVOInterface.class)
.replication((byte) 2, config2)
.create()) {
map2a = map2;
@@ -59,6 +59,7 @@ public class TcpReplicationWithAcquireUsingLockedTest {
Thread.sleep(1);
}
Assert.assertEquals(map1a, map2a);
}
}
@@ -91,11 +92,11 @@ public class TcpReplicationWithAcquireUsingLockedTest {
try (ChronicleMap<CharSequence, TestInstrumentVOInterface> map2 =
ChronicleMapBuilder.of(CharSequence.class,
TestInstrumentVOInterface.class)
.putReturnsNull(true)
.removeReturnsNull(true)
.replication((byte) 2, config2)
.entries(5000L).averageKeySize("hello".length()).create()) {
TestInstrumentVOInterface.class)
.putReturnsNull(true)
.removeReturnsNull(true)
.replication((byte) 2, config2)
.entries(5000L).averageKeySize("hello".length()).create()) {
map2a = map2;
@@ -144,11 +145,11 @@ public class TcpReplicationWithAcquireUsingLockedTest {
try (ChronicleMap<CharSequence, TestInstrumentVOInterface> map2 =
ChronicleMapBuilder.of(CharSequence.class,
TestInstrumentVOInterface.class)
.putReturnsNull(true)
.removeReturnsNull(true)
.replication((byte) 2, config2)
.entries(5000L).averageKeySize("hello".length()).create()) {
TestInstrumentVOInterface.class)
.putReturnsNull(true)
.removeReturnsNull(true)
.replication((byte) 2, config2)
.entries(5000L).averageKeySize("hello".length()).create()) {
map2a = map2;