Akanksha-kedia opened a new pull request, #18714:
URL: https://github.com/apache/pinot/pull/18714

   ## Description
   
   `IdealState.getInstanceStateMap(partitionName)` can return `null` when a 
partition exists in the ideal-state partition set but has no instance 
assignments yet. Two call-sites in `BaseServerStarter` dereference this result 
directly to check for `CONSUMING` state:
   
   1. `registerServiceStatusHandler` (line ~413) — iterates all realtime 
resources on server startup
   2. `getConsumingSegments` (line ~477) — called to find consuming segments 
for a realtime table
   
   Both cause a `NullPointerException` in transient cluster states (e.g. during 
reassignment or partial setup).
   
   **Fix:** guard both call-sites with a null check before accessing the 
instance state, consistent with how the same pattern is handled in 
`ShowClusterInfoCommand` and `ZKOperator`.
   
   ## Related
   Same family of fixes as #18697 (DebugResource), #18455 (HelixHelper), and 
the lead-controller EV fix.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to