xiangfu0 opened a new pull request, #20336:
URL: https://github.com/apache/pinot/pull/20336

   ## Problem
   
   A Prometheus range query with one missing sample includes a JSON null in its 
matrix. Prometheus clients can reject the entire response. A timeout before the 
first server responds loses its error code during rendering, and the broker 
returns HTTP 200 when time-series authorization is denied.
   
   ## Changes
   
   - Skip missing samples in each range series and omit a series when it 
contains no samples. Preserve the timestamps and string values of real samples, 
including zero and NaN.
   - Preserve the requested time buckets when the first exchange poll times out 
so the response can report `SERVER_NOT_RESPONDING`.
   - Preserve `ACCESS_DENIED` through the broker and return HTTP 403 from the 
range GET and native time-series POST endpoints.
   
   ## How to reproduce
   
   - Query a series over three buckets with samples only in the first and last 
buckets. Check that the matrix contains exactly those two timestamps.
   - Query with a deadline that expires before the first server replies. Check 
that the returned error identifies the timeout.
   - Deny a broker or table query through the configured access control. Check 
the HTTP status and error body on both time-series endpoints.
   
   ## Validation
   
   JDK 25 passed all 70 tests in `PinotBrokerTimeSeriesResponseTest`, 
`TimeSeriesExchangeReceiveOperatorTest`, `TimeSeriesRequestHandlerTest`, and 
`PinotClientRequestTest`. Spotless, Checkstyle, and license checks passed on 
the three affected modules.
   


-- 
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