Commit Graph
208 Commits
Author SHA1 Message Date
Rob Austin 82a22fd331 Merge remote-tracking branch 'origin/2.1' into 2.1
Conflicts:
	src/main/java/net/openhft/chronicle/map/TcpReplicator.java
2015-09-14 13:18:06 +01:00
Rob Austin 2403f7d4c1 added connection listener 2015-09-14 13:14:50 +01:00
Peter Lawrey 8a816054d3 Reduce line padding. 2015-09-11 15:26:02 +01:00
Peter Lawrey 2839bde340 Reduce blank lines 2015-09-11 10:29:10 +01:00
Peter Lawrey e873899ff4 CE-145 Review exception handling in Wire 2015-09-02 10:18:51 +01:00
leventov 5a16c8579d HCOLL-382 fixed added flag passing to MapEventListener 2015-08-26 23:22:19 +03:00
leventov 604c5f9e71 Rollback 9f9aaa9b9e 2015-08-26 22:56:44 +03:00
Rob Austin 72901c919d fixed possible issue with 'added' 2015-08-21 16:15:36 +01:00
Rob Austin 0201606bbd HCOLL-382 add the UpdateResult field to net.openhft.chronicle.map.MapEventListener#onPut 2015-08-20 14:48:37 +01:00
Rob Austin a0ecb8fc6b HCOLL-382 add the UpdateResult field to net.openhft.chronicle.map.MapEventListener#onPut 2015-08-20 14:04:49 +01:00
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
leventov 7e9daf73f3 Add ChronicleMap.readKey() and readValue() for convenient work with BytesMapEventListener 2015-07-28 08:15:12 +03:00
rob 4b7c89ad04 rolled back peters change 2015-07-27 14:34:53 +01:00
Peter Lawrey 94cc3a3917 CHENT-49 performance tune repeated puts. 2015-07-24 19:49:40 +03:00
Peter Lawrey b6426edbd2 CHENT-67 listeners in ChronicleMap should be transient. 2015-07-14 18:26:52 +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
Peter Lawrey 9e2ff6b733 Fix test for replication 2015-06-26 15:01:24 +01:00
Peter Lawrey 3634d6d0b3 Fix test for replication 2015-06-26 14:58:35 +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 408a8b5c43 HCOLL-368 Optimized Engine replication implementation in ReplicatedChronicleMap 2015-06-15 20:23:30 +03:00
Rob Austin ca008ad3db Merge remote-tracking branch 'origin/2.1' into 2.1 2015-06-11 16:11:02 +01:00
Rob Austin 261d315688 CE-57 adding support for engine to engine replication 2015-06-11 16:10:23 +01:00
Peter Lawrey 7e1886d82c Code tidy for Core 2015-06-11 16:02:07 +01:00
Peter Lawrey e6582b0a39 HCOLL-366 Changed this method from recursive to use iteration. No longer shows up as a problem. Also reduce the maximum depth from 16K to 1K. 2015-06-11 14:46:41 +01:00
Rob Austin 80c80ff672 HCOLL-329 fixing the bootstrapping timestamp issue 2015-05-29 19:09:54 +01:00
Peter Lawrey 1e6ab61223 Update lang to 6.6.0 2015-02-26 17:00:20 +00:00
Rob Austin 286e509e3c HCOLL-302 removed the user of CheckedStore 2015-02-05 18:54:00 +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 9001e68bc0 fixed latency issues with CheckedBytesStore 2015-02-02 14:58:03 +00:00
Rob Austin 7bf391c560 Please dont change this code back with out first running - 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:27:12 +00:00
Rob Austin fd0659ba21 please don't change this back without first running all the test in intellij ! - 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.putIfAbsent(VanillaChronicleMap.java:537)
	at net.openhft.chronicle.map.ReplicatedChronicleMapTest.testPutIfAbsent1_NullPointerException(ReplicatedChronicleMapTest.java:515)
	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:15:20 +00:00
Rob Austin b3b57d6125 removed the use of CheckedBytesStore 2015-02-02 10:18:26 +00:00
Rob Austin 4f9892636c corrected message - LOG.info("Thread took " + lockTime / 1000000 + "ms to release the lock, (Was there a GC?)"); 2015-02-01 22:56:17 +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 e38f6df14c Merge commit '0733366' into 2.1
Conflicts:
	src/test/java/net/openhft/chronicle/map/MarkTest.java
2015-01-31 23:25:01 +07:00
Rob Austin 89cea2282e locks should throw InterruptedException or return when the current thread is interrupted 2015-01-31 10:44:08 +00:00
leventov 07333660d0 HCOLL-286 HCOLL-292 added replicationEvent flag to event callbacks 2015-01-28 11:44:20 +07:00
Rob Austin fb4982facd changed message to - LOG.info("Thread took %,d ms to release lock%n", lockTime / 1000000 + " (Was there a GC?)"); 2015-01-24 19:10:03 +00:00
leventov 5558f4eec6 Fixed several bugs in contexts API implementation and in VanillaChronicleMap.putValue() 2015-01-03 03:18:57 +07:00
leventov db594bfb64 HCOLL-277 HCOLL-278 HCOLL-289 Fixed two bugs in VanillaChronicleMap.putValue() 2015-01-03 01:56:49 +07:00
leventov 96a0b57c66 HCOLL-285 Refactor Stateless client builders, MapInstanceConfig =>
Builder, removed addJsonConverter method from ChronicleMapBuilder
2015-01-02 00:36:30 +07:00
leventov 52b8ad86d5 HCOLL-283 HCOLL-276 Fixed a bug in with underinitialized key/value serialization builders when the server map is deserialized from file 2014-12-31 02:01:25 +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 56ff64eaf1 HCOLL-244 add optional corruption check for segments 2014-12-30 08:14:28 +07:00
leventov a734e4ef44 Removed unused lock field from VanillaChronicleMap.Segment 2014-12-30 08:10:43 +07:00
leventov 4314db6c8a HCOLL-244 Fixed entrySize computation in ReplicatedChronicleMap 2014-12-30 05:05:50 +07:00