Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
When fetching the current root from the SegmentNodeStore an older revision will be returned when a commit is being processed concurrently. I think it would make sense to wait for a short time in this case increasing the chance of returning an up to date state. The idea is that this would lower the rebasing work that need to be done later on should the returned root be used for further modifications.
An interesting value for the wait time is to use the median (or more general a percentile) of the commit time of the last say 1000 commits. This would mean that (for the median) we have a 50% chance of getting up to date date. For a 90% percentile we would have longer wait times but then a 90% chance of getting up to date date.
Attachments
Attachments
Issue Links
- breaks
-
OAK-6430 Remove Apache Commons Math3 dependency from Segment Tar
- Closed
- depends upon
-
OAK-4122 Replace the commit semaphore in the segment node store with a scheduler
- Closed
- is related to
-
OAK-6483 Segment-based composite node store performance degradation
- Closed
- relates to
-
OAK-6428 Add flag for controlling percentile of commit time used in scheduler
- Closed