Commit Graph
205 Commits
Author SHA1 Message Date
Rob Austin cbe94bcbb2 HCOLL-191 - added missing tests 2014-11-06 22:46:54 +00:00
Rob Austin 912308c4d3 HCOLL-191 - added tests and fix for reading keys and values 2014-11-06 22:45:18 +00:00
Rob Austin 6327a6ab9d HCOLL-191 synchronized on close() and check back in the stateless client test 2014-11-06 18:51:48 +00:00
Rob Austin 07aa6d883b HCOLL-191 added missing close to the test case 2014-11-06 18:30:56 +00:00
Rob Austin babd62e431 HCOLL-191 -Checking in a possible fix for this issue - "EventListener is not called correctly for a replicated map", but will require more testing. 2014-11-06 18:28:38 +00:00
Rob Austin 6b991b6678 removed failing tests 2014-11-06 14:28:27 +00:00
Rob Austin 130ee0f481 HCOLL-155 added java doc to - ReadContext<K, V> getUsingLocked(@NotNull K key, @NotNull V usingValue); 2014-11-05 09:32:44 +00:00
Rob Austin 2da3873fc7 HCOLL-155 added a timeout to the tests via @Test(timeout = 5000) 2014-11-04 15:46:33 +00:00
Rob Austin 9dec1ed4db reverted cff7c5bea8 2014-11-04 14:44:59 +00:00
Rob Austin a0c89935f5 reverted cff7c5bea8 2014-11-04 14:29:06 +00:00
Rob Austin 507e3d5259 Merge remote-tracking branch 'origin/master' 2014-11-02 23:19:34 +00:00
Rob Austin 580b6aba78 HCOLL-155 cleaned up putOnClose 2014-11-02 23:18:58 +00:00
Peter Lawrey 245908baad Add a perf test for acquireUsingLocked. 2014-11-02 23:09:21 +00:00
Rob Austin ef0cd0f96f HCOLL-155 removed acquireUsingReadLocked and acquireUsingWriteLocked to WriteContext<K,V> acquireUsingLocked(@NotNull K key, @NotNull V usingValue); and ReadContext<K,V> getUsingLocked(@NotNull K key, @NotNull V usingValue); 2014-11-02 18:35:26 +00:00
Rob Austin 55e50d40a3 HCOLL-167 added timeout to the test 2014-11-02 13:04:09 +00:00
Rob Austin 118ed1676f HCOLL-155 added two of peters tests and them implemented the code accordingly - the test are net.openhft.chronicle.map.ChronicleMapTest#testOffheapAcquireUsingLocked and net.openhft.chronicle.map.ChronicleMapTest#testOnheapAcquireUsingLocked 2014-11-02 00:16:02 +00:00
Rob Austin 100d839a8b HCOLL-155 uncompleted, checked in order that Peter can review the changes so far of - chm.acquireUsingReadLocked and chm.acquireUsingWriteLocked 2014-11-01 15:53:47 +00:00
Peter Lawrey 9a6af6a6fb Select OF_4_BYTES for Byteable values. (possibly OF_8_BYTES in the future) 2014-11-01 09:26:38 +00:00
Peter Lawrey 8e9aba6b77 Try to correct the testAcquirePerf 2014-10-31 21:31:39 +00:00
Peter Lawrey 7cbef9ba13 Try to correct the CHMLatenctTestMain 2014-10-31 21:25:42 +00:00
Peter Lawrey b5df3d0095 Try to correct the CHMLatenctTestMain 2014-10-31 21:23:39 +00:00
Peter Lawrey bb94e0e547 Consolidate segment headers to reduce TLB misses. Re-tune the calculated number of segments based on the size of data. 2014-10-31 17:33:10 +00:00
Rob Austin 99af8ce11e reduced threadlocal lookups 2014-10-29 16:46:31 +00:00
Rob Austin 6863205259 HCOLL-167 tests now working again ! 2014-10-29 16:21:44 +00:00
Rob Austin 1b3a089436 HCOLL-167 I;ve broken these tests trying to work out why 2014-10-29 16:12:52 +00:00
Peter Lawrey bfd866e45d Tweet the constants used for hashing based on the city hash. 2014-10-29 13:53:08 +00:00
Peter Lawrey 4d7dd56c43 Use consistent hashing and thread local caches of StringBuilders. 2014-10-29 13:46:40 +00:00
Rob Austin 71a8d7452c Merge remote-tracking branch 'origin/master' 2014-10-29 13:30:53 +00:00
Rob Austin 6105552b5f fixed an issue around close 2014-10-29 13:30:23 +00:00
leventov 3e6004c3d2 HCOLL-175 entry&value default alignment changed to NO_ALIGNMENT; removed entryAndValueAlignment() method from public AbstractChronicleMapBuilder API (left only in OffHeapUpdatableCharonicleMapBuilder) 2014-10-29 16:22:49 +03:00
leventov f7edfce81b HCOLL-159 moved net.openhft.chronicle.hash.threadlocal package to Lang since it isn't specific to ChronicleMap at all 2014-10-29 16:11:21 +03:00
Rob Austin 70fdbb1fc6 HCOLL-167 moved classes to hash as they are used for set as well. 2014-10-29 12:59:18 +00:00
Rob Austin 2f73cf1f39 renamed common to hash 2014-10-29 12:11:24 +00:00
Rob Austin cafc507782 Merge remote-tracking branch 'origin/master' 2014-10-29 10:07:32 +00:00
Rob Austin 94e2e14d0a removed test -ng 2014-10-29 10:06:56 +00:00
Peter Lawrey fd73b707c3 Two client test 2014-10-29 09:49:53 +00:00
Rob Austin f647f91b69 HCOLL-167 added support to delegate stateless client method calls to VChronicleMap 2014-10-28 21:29:34 +00:00
Rob Austin e7b502c7c6 HCOLL-167 added support for values 2014-10-28 17:18:53 +00:00
Rob Austin f8a1872d32 HCOLL-167 fixed key set by added a compact method 2014-10-28 13:13:35 +00:00
Rob Austin ecef2ef98b HCOLL-167 fixed missing packets issue 2014-10-28 13:04:56 +00:00
Rob Austin a4542e55a7 Cleaned up test case 2014-10-28 10:07:29 +00:00
Peter Lawrey 5e71647c52 Removing StringBuffer 2014-10-28 09:22:36 +00:00
Rob Austin 03236f31e5 HCOLL-167 more refactors statelss client 2014-10-27 19:11:28 +00:00
Rob Austin bb7d815094 Merge remote-tracking branch 'origin/master' 2014-10-27 17:39:34 +00:00
Rob Austin fcb80f5921 HCOLL-167 finally got chunking to work but it ugly - requires a bit of refactoring. 2014-10-27 17:38:58 +00:00
leventov a20ccd97c0 HCOLL-160 fixes after the prev commit 2014-10-27 20:35:09 +03:00
leventov 0c45ee8aff HCOLL-136 HCOLL-137 HCOLL-153 HCOLL-160
1. Separated ChronicleMapBuilder (for non-Byteable values) and
OffHeapUpdatableChronicleMapBuilder (for Byteable values) with common base
AbstractChronicleMapBuilder (public just to inherit common javadocs)

2. Added ChronicleHashBuilder.keyDeserializationFactory() and
AbstractChronicleMapBuilder.valueDeserializationFactory() (former
ChronicleMapBuilder.valueFactory() method)

3. Changed ChronicleMap.get(), getUsing() API and impl to what was
initially intended - now they ALWAYS returns null, if key is absent

4. acquireUsing() API, common for the cases with Byteable and non-Byteable
values: puts defaultValue or defaultValueProvider.get(key), if the key is
absent, then acquireUsing() behaves just like getUsing()

5. For off0heap updatable ChronicleMaps (Byteable values), added
prepareValueBytes() configuration which formalizes zeroing out value bytes

6. Javadoc fixes and improvements
2014-10-27 20:15:26 +03:00
Rob Austin b374a9bd50 HCOLL-167 entrySet works for small chunks 2014-10-27 17:09:36 +00:00
Peter Lawrey a956ac2a0e Enhanced thread safety tests with the latest lang release 2014-10-27 15:59:22 +00:00
Rob Austin dceb852092 HCOLL-167 works with a small number of entries, there is a bug if we have a large number of entries 2014-10-27 13:14:56 +00:00