Commit Graph
1013 Commits
Author SHA1 Message Date
leventov 739796b90d Improve documentation 2016-03-23 20:09:43 +07:00
leventov e081cb87ba Update Chronicle-Values dependency and try to check if some interface is a valueInterface before attempting to generate implementations 2016-03-12 21:33:23 +07:00
leventov da48414126 Optimize SizedMarshallableDataAccess to avoid double data copy when writing values 2016-03-05 17:32:07 +07:00
leventov e677f07d46 Use Data.equivalent() method in KeySearch.keyEquals() (because it could be specialized to perform more efficiently), and switch arguments in Data.bytesEquivalent() usages, so that the first Data instance is more likely to optimized for comparison 2016-03-04 21:20:12 +07:00
leventov e37de00202 Reduce write lock scope as much as possible in relocation and remove operations 2016-02-26 20:55:47 +07:00
leventov 1a275288b5 Removed excessive code from ReplicatedMapAbsent.doInsert() method 2016-02-24 16:43:14 +07:00
leventov 820573a684 Add method CompactOffHeapLinearHashTable.readEntryVolatile() method and use it during key search 2016-02-20 16:38:59 +07:00
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 05ccde9671 Add dataStoreSize field to Chronicle Map's global mutable state 2016-02-13 21:27:30 +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 31d362fe2f Use OS.pageSize() instead of 4096 constant in ChronicleMapBuilder.segmentHeaderSize() method 2016-02-10 23:00:33 +07:00
leventov d7ed5b0153 Simplify parameter flow on VanillaChronicleHash initialization 2016-02-09 15:03:34 +07:00
leventov e2ec9db371 Register Chronicle Map's randomAccessFile cleaner only after all creation/recovery procedures complete, to avoid double release 2016-02-09 14:57:44 +07:00
leventov 001b710084 Raise IOException or ChronicleHashRecoveryFailed exception instead of generic RuntimeException in VanillaChronileHash.initBeforeMapping() method 2016-02-09 14:46:18 +07:00
leventov 189d40d1ca Don't write Chronicle Map ready bit into the header if the Map has just been read from disk without recovery 2016-02-09 14:35:06 +07:00
leventov 00819bff66 Use canonical RandomAccessFiles (=> FileChannels, too) to guarantee fileLocks are not released during critical operation, because some concurrent thread closes fileChannel on different instance of a map 2016-02-07 19:59:47 +07:00
leventov 64cf485b92 Reduce file locking synchronization scope 2016-02-07 19:04:40 +07:00
leventov be58427a9f Synchronize ChronicleMap creation persisted to some file within JVM 2016-02-05 21:47:46 +07:00
leventov e760af06d5 Make recovery procedure to be able to recovery Chronicle Map files with readiness bit not reached the disk 2016-02-05 19:55:10 +07:00
leventov 69638baf04 Use TextWire instead of BinaryWire for Chronicle Map's self-bootstrapping header encoding 2016-02-05 17:11:19 +07:00
leventov 7b9ccac147 Align persisted Chronicle Map creation with Size Prefixed Blob and Self-Bootstrapping Header specifications 2016-02-05 16:46:12 +07:00
leventov 56e5e93388 Hide the remaining parts of the replication API from the public eye 2016-01-17 17:08:13 +03:00
leventov d8a8a3c319 Add ChronicleHashBuilder.createOrRecoverPeristedTo() method 2016-01-17 16:03:55 +03:00
leventov dd4c2f67d8 Remove replication frontend implementation in favor of Chronicle Engine 2016-01-15 22:19:52 +03:00
leventov 28eeeb70e7 Remove the complexity and API-transparency of implementing and supporting built-in serializability for marshallers and core implementation classes, as this is replaced with Wire Marshallable 2016-01-14 16:07:22 +03:00
leventov 85939d6335 Use shortcut ChronicleMapBuilder API in Issue58 2016-01-10 20:51:01 +03:00
leventov 021d77e973 HCOLL-423 throw IllegalStateException if averageKeySize() or averageKey() is called when size is statically known 2016-01-09 19:08:17 +03:00
leventov 34e942e0ff HCOLL-417 recognize modification iterators appearance cross-process 2016-01-06 03:57:30 +03:00
leventov 5191381fc5 Move reserved space for global mutable state between existing global mutable state and modification iteration bit sets of first tiers 2016-01-06 02:04:40 +03: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 b4c97ced36 Conditional update of ReplicatedGlobalMutableState.modificationIteratorInitAt 2016-01-03 04:01:17 +03:00
leventov 7847675f6f Synchronize ModificationIterator acquisition with globalMutableStateLock, add a bit set identifying already initialized modification bit sets, not to clear them twice in ModificationIterator constructor 2016-01-03 01:27:24 +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 5287296fc7 Improve changes management in MapRemoteOperations and SetRemoteOperations 2016-01-01 21:22:44 +03:00
leventov e20ea011e3 Add ReplicableEntry.dropChangeFor(remoteIdentifier) 2016-01-01 21:21:34 +03:00
leventov d68f151b3a Should acquire updateLock, not readLock, before iterating each segment 2015-12-31 18:47:24 +03:00
leventov 04adb466a2 Add ReplicableEntry.raiseChangedFor(), raiseChangedForAllExcept(), improve MapRemoteOperations 2015-12-30 22:33:42 +03:00
leventov 2c1721e2e3 Do propagate accepted replication events, which originated from the node we are currently on, because it might be recovery 2015-12-30 21:15:59 +03:00
leventov b2cd5af700 Rework modification iteration and bootstrapping 2015-12-30 20:38:55 +03:00
leventov 19fadf5628 Remove stateless clients traces in TcpReplicator 2015-12-28 19:03:30 +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 123fb177c6 Make NanosecondPrecisionSystemTimeProvider monotonic 2015-12-27 01:53:57 +03:00
leventov 2928d18d11 Fix the prev commit 02b2c90 for ChronicleSet 2015-12-26 22:27:35 +03:00
leventov c15c568473 Remove Replica.EntryCallback.onBeforeEntry() and Replica.EntryCallback.onAfterEntry() methods as unused 2015-12-26 18:27:50 +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