apache/pinot

Disallow consuming segment deletion

Open

#10,237 opened on Feb 7, 2023

View on GitHub
 (9 comments) (0 reactions) (0 assignees)Java (1,234 forks)batch import
good first issue

Repository metrics

Stars
 (4,937 stars)
PR merge metrics
 (Avg merge 6d 7h) (186 merged PRs in 30d)

Description

Recently we had an incident that some consuming segments were deleted by an operator by mistake. Now that pause/resume are in place, there's no use case for intentionally deleting a consuming segment. In this task, the segment DELETE endpoint needs to be modified to check if the provided segment name is a consuming segment and if so, fail the request with proper error message.

Contributor guide