Details
-
Bug
-
Resolution: Fixed
-
Major
-
5.0.0
-
Untriaged
-
Unknown
Description
During investigation of MB-25991, issues were also discovered with the counts of the datatypes in a HashTable. By turning on checks that datatype counters do not underflow, a number of bugs have been found:
- HashTable::unlocked_updateStoredValue - Only updates count if the datatype has changed; however it should also update if the deleted state has changed.
- HashTable::unlocked_addNewStoredValue / unlocked_replaceByCopy / unlocked_softDelete / unlocked_release - Incorrectly updates for deleted items (should only be for non-deleted items).
Attachments
Issue Links
- relates to
-
MB-25991 Negative resident ratio shown when non-resident documents expire
- Closed
For Gerrit Dashboard: MB-26108 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
83506,3 | MB-26108: Additional NonNegativeCounter tests | master | platform | Status: MERGED | +2 | +1 |
83507,2 | MB-26108: Add HashTable::dump() method | spock | kv_engine | Status: MERGED | +2 | +1 |
83508,2 | MB-26108: Fix datatypeCounts after softDelete | spock | kv_engine | Status: MERGED | -1 | +1 |
83715,1 | Merge remote-tracking branch 'couchbase/spock' | master | kv_engine | Status: ABANDONED | 0 | -1 |
83739,1 | Merge remote-tracking branch 'couchbase/spock' | master | kv_engine | Status: ABANDONED | 0 | -1 |
83743,1 | Merge remote-tracking branch 'couchbase/spock' | master | kv_engine | Status: MERGED | +2 | +1 |