Commit Graph
111 Commits
Author SHA1 Message Date
leventov bc24505e49 CE-134 Add ChronicleMap.update(K, V) method 2015-08-18 02:31:22 +03:00
leventov 2f32764082 Make replace() returns on absent entry consistent 2015-08-17 23:09:00 +03:00
Peter Lawrey b6426edbd2 CHENT-67 listeners in ChronicleMap should be transient. 2015-07-14 18:26:52 +01:00
Rob Austin 9b793bed6d added fix to this java.lang.AssertionError: Invalid address 1
at net.openhft.lang.io.NativeBytes.setStartPositionAddress(NativeBytes.java:77)
                 	at net.openhft.lang.io.NativeBytes.<init>(NativeBytes.java:67)
                 	at net.openhft.lang.io.NativeBytes.wrap(NativeBytes.java:83)
                 	at net.openhft.chronicle.map.ReplicatedChronicleMap$1$1.onEntry(ReplicatedChronicleMap.java:474)
                 	at net.openhft.chronicle.map.ReplicatedChronicleMap$ModificationIterator.nextEntry(ReplicatedChronicleMap.java:1759)
                 	at net.openhft.chronicle.map.ReplicatedChronicleMap$1.nextEntry(ReplicatedChronicleMap.java:460)
                 	at net.openhft.chronicle.engine.map.CMap2EngineReplicator$1.nextEntry(CMap2EngineReplicator.java:132)
                 	at net.openhft.chronicle.engine.map.CMap2EngineReplicator$1.forEach(CMap2EngineReplicator.java:120)
                 	at net.openhft.chronicle.engine.server.internal.ReplicationHandler$1$1.action(ReplicationHandler.java:124)
                 	at net.openhft.chronicle.threads.VanillaEventLoop.runOneTenthLowHandler(VanillaEventLoop.java:154)
                 	at net.openhft.chronicle.threads.VanillaEventLoop.run(VanillaEventLoop.java:108)
                 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                 	at java.lang.Thread.run(Thread.java:745)
                 sends:
2015-07-06 23:54:11 +01:00
Peter Lawrey 9c8fea8367 Replace "throws Exception" with the specific Exception(s) thrown. 2015-06-28 18:52:05 +01:00
Peter Lawrey 9f9aaa9b9e Update event to include the previous value. 2015-06-27 16:17:00 +01:00
rob e0433a0922 changed the version of chronicle map back to 2.1 and added some fixes to replication 2015-06-24 13:11:34 +01:00
Peter Lawrey 34c4cd8d32 Code tidy a wider set of code. 2015-06-21 12:25:59 +01:00
Peter Lawrey 021f5079ba OHFT-58 Change license to LGPLv3 to protect redistribution. 2015-06-19 11:26:23 +01:00
leventov 87738b4f79 HCOLL-368 removed unused thread local buffer in ReplicatedChronicleMap 2015-06-15 20:30:17 +03:00
leventov 408a8b5c43 HCOLL-368 Optimized Engine replication implementation in ReplicatedChronicleMap 2015-06-15 20:23:30 +03:00
Rob Austin 5c220f68b7 CE-57 adding support for engine to engine replication 2015-06-12 16:15:04 +01:00
Rob Austin 261d315688 CE-57 adding support for engine to engine replication 2015-06-11 16:10:23 +01:00
Rob Austin 35178c9694 HCOLL-329 removed assert 2015-05-29 19:16:47 +01:00
Rob Austin 0f003b1370 HCOLL-329 fixing the bootstrapping timestamp issue 2015-05-29 19:14:14 +01:00
Rob Austin 80c80ff672 HCOLL-329 fixing the bootstrapping timestamp issue 2015-05-29 19:09:54 +01:00
Rob Austin 48362f031a added a Null check for - modificationNotifier != null 2015-05-28 19:15:47 +01:00
Rob Austin 2943d2ec6a added in a fix for net.openhft.chronicle.map.ReplicateProxyMapUpdatedViaSharedMemoryTest.testReplicateProxyMapUpdatedViaSharedMemory 2015-05-28 15:34:27 +01:00
Rob Austin 25e06bc318 CE-41 fixed binary wire test cases. 2015-05-26 18:27:13 +01:00
Rob Austin 40e7b1d53c HCOLL-325 Issue when bootstrapping with a large number of entries, and removed a few @Ignores on tests that should work. 2015-04-27 13:06:17 +01:00
Peter Lawrey 1e6ab61223 Update lang to 6.6.0 2015-02-26 17:00:20 +00:00
Rob Austin 915c81f0e7 propogating interupted exception, so that resources can be closed when it is received. 2015-02-02 22:46:47 +00:00
Rob Austin cca2cd77e0 removed unnessasary persistant file 2015-02-02 16:53:18 +00:00
Rob Austin de4c17e07e Please dont change this code back with out first running IN IDEA - at net.openhft.chronicle.map.ReplicatedChronicleMapTest.testPut1_NullPointerException(ReplicatedChronicleMapTest.java:489), see
java.lang.IllegalArgumentException: Argument for @NotNull parameter 'key' of net/openhft/chronicle/map/ReplicatedChronicleMap.put1 must not be null
	at net.openhft.chronicle.map.ReplicatedChronicleMap.put1(ReplicatedChronicleMap.java)
	at net.openhft.chronicle.map.VanillaChronicleMap.put(VanillaChronicleMap.java:532)
	at net.openhft.chronicle.map.ReplicatedChronicleMapTest.testPut1_NullPointerException(ReplicatedChronicleMapTest.java:489)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.junit.runners.Suite.runChild(Suite.java:127)
	at org.junit.runners.Suite.runChild(Suite.java:26)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
2015-02-02 11:40:38 +00:00
Rob Austin bec5b2a3c5 introduced NativeBytesI to allow us to checks if the buffer has been closed, if the buffer is accessed after it is closed an exception is thrown, This class should be used to investigate JVM crashes, it should not be used in production code ( as its slow ) 2015-02-01 22:19:41 +00:00
leventov 938b9dca7b Fixed usages of Bytes.write(Bytes) to conform old semantics 2015-02-01 19:49:58 +07:00
leventov 07333660d0 HCOLL-286 HCOLL-292 added replicationEvent flag to event callbacks 2015-01-28 11:44:20 +07:00
Rob Austin 58bf971aa2 HCOLL-291 Remove unnecessary entry size calculation in tcp replication 2015-01-12 10:38:23 +00:00
leventov 5558f4eec6 Fixed several bugs in contexts API implementation and in VanillaChronicleMap.putValue() 2015-01-03 03:18:57 +07:00
leventov cbb97077a2 Finally fixed HCOLL-244 bug 2014-12-30 11:19:03 +07:00
leventov e4a171ff23 HCOLL-244 fixed potential problems with chunks over-allocatation in Vanilla/Replicated ChronicleMaps 2014-12-30 11:18:28 +07:00
leventov dd969a495c HCOLL-244 Fixed a bug with pseudo-put or remotely replicated entry 2014-12-30 08:34:13 +07:00
leventov 4314db6c8a HCOLL-244 Fixed entrySize computation in ReplicatedChronicleMap 2014-12-30 05:05:50 +07:00
leventov bb61e5b424 Fixed a bug in Vanilla/ReplicatedChronicleMap.acquireWithoutLock() 2014-12-26 21:03:34 +07:00
leventov 81f6142af7 Clearly separated notion of entries and chunks, averageKeySize()/ValueSize() instead of keySize()/valueSize(), minor fixes and refactorings 2014-12-26 05:22:54 +07:00
leventov 4e6306101c HCOLL-203 fixed a bug -- MultiMap's search state was shared between non-exclusive read threads 2014-12-22 16:23:47 +07:00
Rob Austin a47f177710 HCOLL-197 - added better support for buffer resize to prevent issues around Integer.MAX_SIZE 2014-12-19 12:21:55 +00:00
leventov 9accabe11c Tiny optimizations in ReplicatedChronicleMap 2014-12-19 16:09:50 +07:00
Rob Austin 005f4d7a7e HCOLL-246 Fixed - Tcp Replication fails with large values or entries sizes that don't included internal replication bytes" 2014-12-16 15:28:52 +00:00
leventov ae47c7b8fa HCOLL-243 fixed replication issue -- we should PUT remote removed key into the map even it was absent 2014-12-16 00:09:43 +07:00
leventov afb223be67 Fixed a bug in ReplicatedChronicleMap.removeWithoutLock() 2014-12-15 22:16:55 +07:00
leventov c935c4b05f HCOLL-171 HCOLL-206 HCOLL-247 improved hashing algorithm (now murmur3), implemented ByteBufferInterop, some improvements in existing marshallers 2014-12-13 15:25:00 +07:00
leventov 872d34e230 JLANG-39 HCOLL-214 refactored builders (leaved a single builder class), fixes in DataValueBytesMarshallers implementation 2014-12-11 20:31:57 +07:00
Peter Lawrey 692edb3ceb Remove an unused field and parameter 2014-12-10 18:47:37 +00:00
Rob Austin 7cc79ea2c3 HCOLL-234 fixing CHMUseCaseTest 2014-12-09 14:16:52 +00:00
Rob Austin 767543cea6 HCOLL-234 as agreeded changed method name to "putWithMapping()" 2014-12-09 12:57:10 +00:00
Rob Austin 95b21ba2f8 HCOLL-234 fixing CHMUseCaseTest 2014-12-09 11:27:08 +00:00
Peter Lawrey 13e9610a73 Add tests for larger entries 2014-12-08 16:17:27 +00:00
leventov ec6e99224d Remote udpates remove positions from modifications iterators (previously was not touching modification iterators; fixed a small bug in ReplicatedCHronicleMap.removeWithoutUnlock(); fixed soak tests with random data 2014-12-03 20:26:52 +07:00
Rob Austin c4417ddbe4 adding net.openhft.chronicle.map.NoTcpReplicationSoakTest 2014-12-02 20:08:26 +00:00