apache / apache/pinot

Need ways to check whether segment reload/refresh is done on server side

Open
#8,492 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.1k
Forks
1.5k
Avg merge
1d 21h
Merged PRs (30d)
189

Description

Currently segment reload/refresh is done asynchronously. There is no way for Pinot admin to know whether the segment reload/refresh request is fully done on server side. It could be possible that multiple reload/refresh are made, which can cause race conditions.

We need some way to figure out the state of the reload/refresh request on server side.

Some thoughts:
* Add server level APIs to fetch the state.
* Add callback when the request is done.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the server-side segment reload/refresh request path and reviewing existing server-level admin APIs. Compare an API for request state with a completion callback, then define how an administrator can tell that the request is fully complete and how repeated requests avoid race conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.