Slackbot
09/24/2023, 2:06 AMBibek Sahoo
09/24/2023, 2:20 AMSegments table is the one which gets used for the available segments (with USED=1) USED=0 are not used and can be deleted).
The pendingSegments table consists of temporary entries that are used to coordinate segment allocation for streaming ingestion so that multiple tasks do not try to create the same segment.
If there is no ingestion running we can delete the entries from the pending segments table, Large number of records here could cause long metadata queries as well.Arun C
09/24/2023, 2:20 AMArun C
09/24/2023, 2:20 AMBibek Sahoo
09/24/2023, 2:22 AMAbhishek Balaji Radhakrishnan
09/24/2023, 10:35 PMKillStalePendingSegments? If you see a legitimate issue, please file a GitHub issue or a PR to fix it 🙂
But as Bibek notes, pending segments only matter in the context of a running task, so it should be safe to delete stale entries.