apache/pinot

Introduce reason codes in server http requests to controller

開放

#12,055 建立於 2023年11月28日

 (4 則留言) (0 個反應) (1 位負責人)Java (1,234 個分叉)batch import
cleanupgood first issueingestionreal-time

倉庫指標

星標
 (4,937 顆星)
PR 合併指標
 (平均合併 6天 7小時) (30 天內合併 186 個 PR)

描述

pinot servers send HTTP requests to the controller for posting a completed realtime segment, posting an indication that realtime segments have stopped consuming, or that the consumer could never be created.

Currently there is a reason string that is included as an argument. This is error prone. A reason code makes it easier to incorporate code for appropriate action, given a particular reason.

The con side of a reason code is that it is a bit harder to evolve. We need to be careful writing code on the controller side, since servers may send unknown reason codes. As long as we follow some careful practices, introducing reason codes should get us to a better place.

貢獻者指南