Commit Graph
714 Commits
Author SHA1 Message Date
Rob Austin 7c09d1dfaf HCOLL-309 added code to better reject third party connections which turn out not to be chronicle. 2015-02-16 11:06:35 +00:00
Rob Austin 286e509e3c HCOLL-302 removed the user of CheckedStore 2015-02-05 18:54:00 +00:00
leventov c6843bd6c1 Reduced max reasonable serialized size 2015-02-06 00:34:22 +07:00
leventov 00e306a538 Imporoved SerializationBuilder own serialization 2015-02-05 07:15:25 +07:00
Rob Austin fae92cb3e9 HCOLL-302 fixed bug around heapSizeOrderedFieldsGrouped 2015-02-04 11:16:56 +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 5f627dc6b4 ensure that we close() on interupt 2015-02-02 22:05:32 +00:00
Rob Austin cca2cd77e0 removed unnessasary persistant file 2015-02-02 16:53:18 +00:00
Rob Austin 9001e68bc0 fixed latency issues with CheckedBytesStore 2015-02-02 14:58:03 +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 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 92399ceff7 updated @Ignore's 2015-02-02 11:21:02 +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 2393860a76 ignore java.util.concurrent.RejectedExecutionException when already closed 2015-02-02 10:17:29 +00:00
Rob Austin 902cd25464 ignore java.util.concurrent.RejectedExecutionException when already closed 2015-02-02 10:01:13 +00:00
Rob Austin 4726515284 ignore java.util.concurrent.RejectedExecutionException when already closed 2015-02-02 09:52:37 +00:00
Rob Austin a077694ce8 introduced connectExecutorService to ensure that its closed on shutdown 2015-02-02 09:43:33 +00:00
Rob Austin 418c1bd5ad now not closing on a - AsynchronousCloseException e 2015-02-02 09:28:52 +00:00
Rob Austin 1fbdb74238 removed throws InterruptedException 2015-02-02 09:13:42 +00:00
Rob Austin 4eda29d77e moved shutdownNow only to the main thread 2015-02-02 09:11:17 +00:00
Rob Austin 4251488b76 Merge remote-tracking branch 'origin/2.1' into 2.1 2015-02-02 08:29:32 +00:00
Rob Austin a6938caad4 fixed NPE - java.lang.NullPointerException
at net.openhft.chronicle.map.StatelessChronicleMap.receiveBytesFromSocket(StatelessChronicleMap.java:1322)
                at net.openhft.chronicle.map.StatelessChronicleMap.nextEntry(StatelessChronicleMap.java:1216)
                at net.openhft.chronicle.map.StatelessChronicleMap.blockingFetchThrowable(StatelessChronicleMap.java:1162)
                at net.openhft.chronicle.map.StatelessChronicleMap.blockingFetchReadOnly(StatelessChronicleMap.java:1135)
                at net.openhft.chronicle.map.StatelessChronicleMap.readValue(StatelessChronicleMap.java:1484)
                at net.openhft.chronicle.map.StatelessChronicleMap.fetchObject(StatelessChronicleMap.java:1782)
                at net.openhft.chronicle.map.StatelessChronicleMap.put(StatelessChronicleMap.java:596)
                at net.openhft.chronicle.map.StatelessClientTest$3.run(StatelessClientTest.java:659)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
                at java.util.concurrent.FutureTask.run(FutureTask.java:262)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                at java.lang.Thread.run(Thread.java:745)
2015-02-02 08:28:57 +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
Rob Austin 8d500e1ab6 changed shutdown to also called shutdownNow 2015-01-31 00:11:39 +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 ff65e741ff #15 Fixed bug in Hasher 2015-01-24 11:37:35 +07:00
Peter Lawrey 8a4ad9ade2 Use ChronicleMapBuilder to build all ChronicleMap 2015-01-15 17:35:44 +00:00
Rob Austin f9b412303c HCOLL-294 changed back to SPIN_LOOP_TIME_IN_NONOSECONDS 2015-01-14 13:26:48 +00:00
Rob Austin b681f93a49 HCOLL-294 changed to SPIN_LOOP_TIME_IN_MILLIS = 10; 2015-01-14 11:38:53 +00:00
Rob Austin f285ab2756 HCOLL-294 changed back to a spin loop but this time only for 10ms 2015-01-14 11:29:37 +00:00
Rob Austin efeab00079 HCOLL-294 reduced object creation in the TcpReplication Selector 2015-01-14 10:52:41 +00:00
Rob Austin 0e9dbaf5d8 HCOLL-293 now reading the version from the resource file "map.version" 2015-01-13 18:49:43 +00:00
Rob Austin d76691fcaa HCOLL-134 added a serialization test 2015-01-12 16:25:45 +00: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 f65a898d5d HCOLL-277 HCOLL-289 need to be part of the prev commit 2015-01-03 02:07:46 +07:00
leventov db594bfb64 HCOLL-277 HCOLL-278 HCOLL-289 Fixed two bugs in VanillaChronicleMap.putValue() 2015-01-03 01:56:49 +07:00
Rob Austin cbf727ae7a HCOLL-290 possibly fixed - Reported NPE in net.openhft.chronicle.map.TcpReplicator#heartBeatMonitor 2015-01-02 17:49:27 +00:00
Rob Austin f1083c617a Merge remote-tracking branch 'origin/master' 2015-01-02 12:39:55 +00:00
Rob Austin 0b7860d554 simplified resize logic 2015-01-02 12:39:34 +00:00
leventov 96a0b57c66 HCOLL-285 Refactor Stateless client builders, MapInstanceConfig =>
Builder, removed addJsonConverter method from ChronicleMapBuilder
2015-01-02 00:36:30 +07:00
Rob Austin 2ec2906e86 updated java doc 2015-01-01 09:56:06 +00:00
Rob Austin 064fdb0ad2 added javadoc to newValueInstance and newKeyInstance 2015-01-01 09:52:19 +00:00
Rob Austin 8bb52ea6a1 removed from java doc - MAPS CONTAINING KEYS/VALUES GENERATED WITH OFF-HEAP INTERFACES ARE NOT CURRENTLY SUPPORTED,CURRENTLY ONLY KEYS/VALUES THAT IMPLEMENT SERIALIZABLE ARE SUPPORTED 2015-01-01 09:37:36 +00:00