Package org.apache.druid.timeline
Annotation Type PruneLastCompactionState
This annnotation is used to inject a boolean parameter into a
DataSegment constructor, which prescribes to
drop deserialized "lastCompactionState" and don't store it in a field of a DataSegment.
"lastCompactionState" is used only on the coordinator, peons, and indexers.
- In auto compaction of the coordinator, "lastCompactionState" is used to determine whether the given
segment needs further compaction or not.
- In Metadata store information API of the coordinator, "lastCompactionState" is part of the sys.segments table
- In parallel indexing, "lastCompactionState" should be serialized and deserialized properly when
the sub tasks report the pushed segments to the supervisor task.