Why flush_hints when gc_mode is repair?

I saw in repair.cc that flush_hints are required when tombstone_gc_mode is repair.
When writing fails, request data will be recorded in the hints directory. Does flush_hints flush these records to disk?

Flushing hints and batchlog when repairing with tombstone_gc is required to prevent any data in either causing data resurrection. With tombstone_gc, any tombstone that was written before the last repair, can be garbage-collected, so it is important to include any data that is in the batchlog or in hints in the repair, so any tombstone that might shadow them can take effect.

1 Like