Commit Graph
50 Commits
Author SHA1 Message Date
Rob Austin 81082aab62 Added back in the @Ignore and JIRA - this has just failed on TC so I defiantly think there is a genuine bug
ChronicleMapTest.testAcquireFromMultipleThreads

	Current failure:		 #816	rob.austin (2)	03 Dec 14 09:23
	First failure: 		 #815	rob.austin (1)	02 Dec 14 20:09
java.lang.AssertionError: expected:<10000> but was:<9994>
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.failNotEquals(Assert.java:743)
    at org.junit.Assert.assertEquals(Assert.java:118)
    at org.junit.Assert.assertEquals(Assert.java:555)
    at org.junit.Assert.assertEquals(Assert.java:542)
    at net.openhft.chronicle.map.ChronicleMapTest.testAcquireFromMultipleThreads(ChronicleMapTest.java:553)
    at net.openhft.chronicle.map.ChronicleMapTest.testAcquireFromMultipleThreads(ChronicleMapTest.java:529)
« Hide stacktrace

see http://teamcity.higherfrequencytrading.com:8111/viewLog.html?buildId=3763&tab=buildResultsDiv&buildTypeId=OpenHFT_ChronicleMap_Snapshot
2014-12-03 09:29:56 +00:00
leventov a5631953d6 HCOLL-221 enabled testAcquireFromMultipleThreads() test, because failing ONLY within IntelliJ, from Maven build it succeeds on all machines. Seems there is no bugs. 2014-12-02 14:49:20 +07:00
leventov f0bb095d65 HCOLL-222 clarified error message if trying to put the unitialized byteable key/value, that might be quite common mistake 2014-12-01 23:21:58 +07:00
Peter Lawrey 1e40c765f8 Remove blank lines at the start of methods and loops. 2014-11-30 22:48:57 +02:00
Peter Lawrey adae564595 Remove blank lines before } 2014-11-30 22:46:22 +02:00
Peter Lawrey 6d4b143903 Remove double and triple blank lines 2014-11-30 22:43:32 +02:00
Peter Lawrey 50a337af0d HCOLL-211 Add marshallers for List and Set. 2014-11-30 13:44:59 +02:00
Rob Austin e69d204c90 HCOLL-222 added failing test - map.put() throwing and NPE when putting a LongValue$$Native 2014-11-28 11:34:55 +00:00
Rob Austin 71e4ddfd1f Resurrecting some commented out test and removing the sleep from the close on StatelessClient 2014-11-27 21:07:02 +00:00
Rob Austin 49fc123755 HCOLL-81 made publicly a single ChronicleMapBuilder, that delegates onto internal implementations 2014-11-15 09:05:26 +00:00
Rob Austin 54b5412e53 HCOLL-81 simplified code by using lookupUsing 2014-11-14 15:05:07 +00:00
Rob Austin e772737f36 HCOLL-81 renamed ChronicleMap to ChronicleMapOnHeapUpdatableBuilder as Peter wanted the OffHeapUpdated Builder to be the default ChronicleMapBuilder. 2014-11-14 12:59:03 +00:00
Rob Austin 0fd6e98bed HCOLL-81 StatelessClient : Add a visitor pattern to Chronicle Map ( tested with lamda expressions in java8 ) 2014-11-14 11:58:12 +00:00
Rob Austin b7033da88c checking in a failing test so that roman can take a look at it. 2014-11-14 09:48:37 +00:00
Peter Lawrey fa4ecf828d Improve closing of resources on windows system. 2014-11-13 00:09:11 +00:00
leventov 356b4e7eef HCOLL-201 implemented LongValue special case marshallers 2014-11-12 15:11:55 +03:00
Rob Austin 1441fe02f2 Merge remote-tracking branch 'origin/master' 2014-11-11 10:54:00 +00:00
Rob Austin 339ab05b4c HCOLL-200 Set tcp replication dirty when using acquireUsing 2014-11-11 10:53:39 +00:00
Peter Lawrey 2a28dd0147 Fix an intialisation problem. 2014-11-11 10:51:24 +00:00
Rob Austin ee787085d3 HCOLL-199 Investigate why TC is missing tests 2014-11-11 09:15:11 +00:00
Rob Austin 40b1f7cf77 Merge remote-tracking branch 'origin/master' 2014-11-11 08:56:57 +00:00
Rob Austin 94aabe3911 reverted back to allow acquireUsing to be passsed a NULL value 2014-11-11 08:56:36 +00:00
Peter Lawrey c90f424e3f HCOLL-198 Add a long -> long test. 2014-11-11 00:32:06 +00:00
Rob Austin edf2927a06 fixed up some broken tests 2014-11-10 23:37:21 +00:00
leventov 1cbdd91640 Fix tests 2014-11-10 18:38:14 +03:00
leventov 2be60c999a Merge branch 'master' of github.com:OpenHFT/Chronicle-Map
Conflicts:
	src/main/java/net/openhft/chronicle/map/AbstractChronicleMapBuilder.java
2014-11-10 18:15:58 +03:00
leventov daac52ba35 Changed acquireUsingLocked and getUsingLocked behaviour -- now throwing IllegalState if the given value is not reused 2014-11-10 18:14:30 +03:00
Peter Lawrey 1774a4d331 Tweek segment sizes again. 2014-11-10 15:07:08 +00:00
Rob Austin c143726275 updated documentation and test that show that our API does not currently work to spec. 2014-11-10 13:58:40 +00:00
leventov 4a51b129a3 Many renames, API refactorings, classes/interfaces made private to net.openhft.chronicle.map package
Conflicts:
	src/main/java/net/openhft/chronicle/map/StatelessChronicleMap.java
	src/test/java/net/openhft/chronicle/map/ChronicleMapTest.java
2014-11-07 12:10:40 +03: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 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
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
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 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
Peter Lawrey a956ac2a0e Enhanced thread safety tests with the latest lang release 2014-10-27 15:59:22 +00:00
leventov 2dbd1f2e28 More test fixes 2014-10-25 02:13:47 +04:00
leventov 8a5dc333bc More test fixes 2014-10-25 02:08:50 +04:00
leventov 7a86306e0b Yet another attempt to init freeList bitSet with the right length 2014-10-25 01:34:36 +04:00
Peter Lawrey ea779997cf Remove <p/> from copyright messages 2014-10-24 11:30:25 +01:00
Rob Austin 8e57eeafc2 HCOLL-167 simplified the map builder by making "file" very much an option parameter, is it not REQUIRED for all types of maps. Also updated the many of the TCP replication test to remove the user of file() as its simply not required for this in many cases. 2014-10-20 17:19:27 +01:00
Rob Austin df1bb8356e HCOLL-134 improved test cases 2014-10-03 10:26:21 +01:00
leventov 38cda58032 HCOLL-85 HCOLL-142 JLANG-29 Featured serializers 2014-09-24 22:12:39 +04:00
leventov ea16356d46 New Chronicle-Map 2014-09-05 17:39:51 +04:00