public final class StableValChunk extends StableChunk
| Modifier and Type | Field and Description |
|---|---|
com.hazelcast.internal.util.collection.LongSet |
clearedPrefixesFoundAtRestart
A key prefix could exist in a chunk file, yet during Hot Restart no record with that key prefix
might be added to a record map due to a prefix tombstone
(
Rebuilder.acceptCleared(RestartItem) doesn't add
the record to the record map). |
BY_BENEFIT_COST_DESCACTIVE_FNAME_SUFFIX, FNAME_SUFFIX, garbage, liveRecordCount, records, seq, SURVIVOR_FNAME_SUFFIX, SYSPROP_TOMB_CHUNK_SIZE_LIMIT, SYSPROP_VAL_CHUNK_SIZE_LIMIT, TOMB_BASEDIR, TOMB_SIZE_LIMIT_DEFAULT, VAL_BASEDIR, VAL_SIZE_LIMIT_DEFAULT| Constructor and Description |
|---|
StableValChunk(ActiveValChunk from) |
StableValChunk(long seq,
RecordMap records,
int liveRecordCount,
long size,
long garbage,
boolean needsDismissing) |
StableValChunk(long seq,
RecordMap records,
com.hazelcast.internal.util.collection.LongSet clearedPrefixesFoundAtRestart,
int liveRecordCount,
long size,
long garbage,
boolean needsDismissing) |
| Modifier and Type | Method and Description |
|---|---|
long |
cost() |
double |
updateBenefitToCost(long currChunkSeq)
Updates the cached value of the benefit/cost factor.
|
cachedBenefitToCost, sizebase, dispose, fnameSuffix, needsDismissing, needsDismissing, retire, retire, tombChunkSizeLimit, toString, valChunkSizeLimitpublic final com.hazelcast.internal.util.collection.LongSet clearedPrefixesFoundAtRestart
Rebuilder.acceptCleared(RestartItem) doesn't add
the record to the record map). Then the prefix tombstone might be incorrectly garbage-collected,
leading to the resurrection of dead records. To prevent that, this set holds the key prefixes of all
records in this chunk interred by a prefix tombstone and is consulted in
PrefixTombstoneManager.Sweeper.markLiveTombstones(Chunk).
This set will be empty for all chunks except those that were constructed by Rebuilder during
Hot Restart.
public StableValChunk(ActiveValChunk from)
public StableValChunk(long seq,
RecordMap records,
int liveRecordCount,
long size,
long garbage,
boolean needsDismissing)
public StableValChunk(long seq,
RecordMap records,
com.hazelcast.internal.util.collection.LongSet clearedPrefixesFoundAtRestart,
int liveRecordCount,
long size,
long garbage,
boolean needsDismissing)
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.