HCOLL-283 HCOLL-276 Fixed a bug in with underinitialized key/value serialization builders when the server map is deserialized from file

This commit is contained in:
leventov
2014-12-31 02:01:25 +07:00
parent 0a464731f6
commit 52b8ad86d5
5 changed files with 17 additions and 11 deletions
@@ -1695,7 +1695,6 @@ public class ChronicleMapTest {
}
@Ignore("HCOLL-283 run it twice with the same filename it fails")
@Test
public void testByteArrayKeySizeBySample() throws IOException {
TcpTransportAndNetworkConfig serverConfig = TcpTransportAndNetworkConfig.of(8877)
@@ -1703,7 +1702,6 @@ public class ChronicleMapTest {
File mapFile = getPersistenceFile();
// this test only appear to fail when we reuse the mapFile
for (int i = 0; i < 2; i++) {
@@ -1712,7 +1710,8 @@ public class ChronicleMapTest {
.constantKeySizeBySample(new byte[14])
.createPersistedTo(mapFile)) {
try (ChronicleMap<byte[], byte[][]> map2 = ChronicleMapBuilder.of(byte[].class, byte[][].class)
try (ChronicleMap<byte[], byte[][]> map2 = ChronicleMapBuilder
.of(byte[].class, byte[][].class)
.constantKeySizeBySample(new byte[14])
.statelessClient(new InetSocketAddress("localhost", 8877))
.create()) {