Commit Graph
79 Commits
Author SHA1 Message Date
leventov 4b58d21953 Refactor MapQuery.putPrefix() method 2016-02-17 17:14:39 +07:00
leventov 7293e5d7bb Remove REMOVED query state to reduce complexity 2016-02-16 20:40:47 +07:00
leventov e5c37a1e8f Update dependencies 2016-02-13 21:22:14 +07:00
leventov f8776281e7 Make comment attribution more clear 2016-02-13 17:59:33 +07:00
Faisal Hameed efd3e1f05a Fixing squid:S1066- Collapsible "if" statements should be merged. 2016-02-12 10:12:13 +05:00
leventov 6ee78ba926 HCOLL-378 #36 Fix bugs in recovery 2016-01-06 00:39:36 +03:00
leventov 97e4c12de1 HCOLL-378 #36 Add ChronicleHashBuilder.recoverPersistedTo() and ChronicleHashInstanceBuilder.recover() functionality 2016-01-04 23:24:39 +03:00
leventov 9b782c4ec2 Remove prevEntry parameter from CompactOffHeapLinearHashTable.clearEntry(), writeEntry() and writeEntryVolatile() methods, as unneeded 2016-01-02 16:12:01 +03:00
leventov e20ea011e3 Add ReplicableEntry.dropChangeFor(remoteIdentifier) 2016-01-01 21:21:34 +03:00
leventov 04adb466a2 Add ReplicableEntry.raiseChangedFor(), raiseChangedForAllExcept(), improve MapRemoteOperations 2015-12-30 22:33:42 +03:00
leventov b2cd5af700 Rework modification iteration and bootstrapping 2015-12-30 20:38:55 +03:00
leventov 1221f11097 Make TimeProvider non-extensible and non-configurable; Fix a bug in
ReplicatedQueryAlloc.CleanupAction
2015-12-27 21:32:26 +03:00
leventov 2928d18d11 Fix the prev commit 02b2c90 for ChronicleSet 2015-12-26 22:27:35 +03:00
leventov 1743f1c694 Replication updates with local identifier shouldn't use the same timestamp, because this allows two different updates which replace each other on different nodes, and don't converge. Extend default TimeProvider precision to nanoseconds, to exclude possibility of 'microsecond overflow' on frequent changes to the same entry 2015-12-26 17:28:35 +03:00
leventov 0ead52335b Don't force cleanup deleted entries on alloc, if it is disabled in this ReplicatedChronicleMap 2015-12-25 20:39:43 +03:00
leventov d060fd0c2d HCOLL-412 fix a bug in HashLookupSearch.putNewVolatile() 2015-12-24 18:31:32 +03:00
leventov c448293788 Fix a bug -- drop changes in doRemoveCompetely() 2015-12-23 16:26:28 +03:00
leventov 60de795949 updateChange() should always be called after replicationStateUpdate(), because updateChange() uses the new timestamp 2015-12-20 18:33:47 +03:00
leventov dd4fa03bfe Fix wrong decrements of tierDeleted (after innerDefaultReplaceValue(), when should be before), because relocation could trigger tier change inside innerDefaultReplaceValue() 2015-12-20 18:32:53 +03:00
leventov de8e27464c Reuse code between internal and 'API' replication: remove ReplicatedInputKeyBytesData and ReplicatedInputValueBytesData 2015-12-20 16:33:28 +03:00
leventov c59b801795 Consistent 'id, timestamp' order of paramters in methods, fix bugs in ReplicatedInput.remotePut() and remoteRemove() 2015-12-19 18:03:14 +03:00
leventov 3773b3d60a Add methods for Engine support 2015-12-18 03:00:38 +03:00
leventov 491ab42843 Remove duplicate alignReadPosition() in MapEntryStages.initValueSize() 2015-12-17 21:26:37 +03:00
leventov 268ba7f569 Reorder fields in replication message, to avoid writing value size, when deleted event is sent 2015-12-17 21:25:47 +03:00
leventov 27c8148007 Fix the prev commit e78e070 2015-12-17 18:16:51 +03:00
leventov 229aeb5fdf Minor improvements related to VanillaChronicleMap.alignAddr() 2015-12-12 18:00:10 +03:00
leventov 7a5c799a28 Remove throws IORuntimeException everywhere as redundant and deprecated 2015-12-11 16:23:45 +03:00
leventov ce45903af7 Make entries and deleted counters per-tier 2015-12-07 11:43:37 +03:00
leventov 2f58bfb399 Replace nextPosToSearchFrom with lowestPossiblyFreeChunk semantically, that allows to avoid searching free chunks though a full tier, when segment is tiered, again and again. Also, make chunk block reallocation in innerDefaultReplaceValue() and putValueDeletedEntry() check it doesn't overflow actualChunksPerSegmentTier 2015-12-07 07:20:47 +03:00
leventov 82988e7435 Replace outdated (pre-tiers) implementation of ReplicatedMapSegmentIteration.forEachSegmentReplicableEntryWhile() by shared code with HashSegmentIteration.forEachSegmentEntryWhile() 2015-12-06 15:19:49 +03:00
leventov d5ee1f9aae Make checksum computation delayed, on lock release 2015-12-05 05:37:17 +03:00
Rob Austin b7f815976c HCOLL-403 When the following setting is set on chronicle map "bootstrapOnlyLocalEntries==false", it is not sending all the entries. - this is the same issue but it was affecting chronicle engine replication 2015-12-03 04:43:28 +03:00
leventov aad6c115c2 Replace Crc32 checksum computation with xxHash, because it is faster according to https://github.com/benalexau/hash-bench 2015-11-30 00:34:22 +03:00
leventov bfa9988551 Add ChronicleSetBuilder.entryOperations() and .remoteOperations() interception configuration methods; Rename SetRemoteOperations.insert() to put(), for consistency with MapRemoteOperations 2015-11-28 23:20:29 +03:00
leventov 12989df576 Remove potentially dangerous freeList bits clearing before allocation of a new block, on relocation, because overlapping range copy is platform dependent 2015-11-25 22:29:55 +03:00
leventov fe77012381 Read/Write ChronicleMap's boostrapping header with Wire 2015-11-25 20:37:19 +03:00
leventov d5fe21a290 Fix a bug -- incorrect entry size computation in replace(), checksum bytes forgotten 2015-11-24 23:44:51 +03:00
leventov ade2196e72 Java-Lang -> Chronicle-Bytes, Chronicle-Values 2015-11-22 22:10:39 +03:00
leventov c5e505525d Fix a possible bug in ReplicatedMapAbsent.doInsert() 2015-11-01 13:58:55 +03:00
leventov 0985eb71a1 Remove metaDataBytes (unused) 2015-10-22 03:45:47 +03:00
leventov f1a13a4dfd Rename rootContextOnThisSegment -> rootContextLockedOnThisSegment and concurrentSameThreadContexts -> nestedContextsLockedOnSameSegment -- clearer names 2015-10-09 19:17:59 +03:00
leventov cad3d3abfe HCOLL-400 forbid nested update and write locks inside iteration contexts; rename IterationContextInterface to IterationContext; update stage-compiler dependency 2015-10-09 15:09:32 +03:00
leventov 64dd5d99c1 Remove redundant hash lookup slot update in innerDefaultReplaceValue() 2015-10-07 17:08:22 +03:00
leventov 81535163b2 Make IterationContexts' hashLookupPos depend on segmentTier as well as QueryContexts'; add missed hashLookupPos step back in iteration, if hash lookup slot is removed, because entry is relocated to a chained tier; add missed tierIndex initialization in initSegmentTier_WithBaseAddr() 2015-10-07 16:43:37 +03:00
leventov b967ad14d4 Factor Alloc stage abstraction, make alloc which fails to allocate in the current tier search from the first tier in chain 2015-10-06 18:59:45 +03:00
leventov 05f94965be Refactor TimeProvider 2015-10-02 13:09:15 +03:00
leventov c88340f842 Fix several bugs 2015-09-28 22:13:03 +03:00
leventov 440b075f9d Remove ChronicleMap.putMapped() as a duplicate of computeIfPresent(); Reduce the number of ignored tests 2015-09-27 15:41:07 +03:00
leventov 22b964e069 HCOLL-392 Add entry checksums 2015-09-26 23:34:44 +03:00
leventov 4c75dfd937 Remove unused type parameter in ReplicatedMapEntryStages class 2015-09-26 22:04:10 +03:00