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

   GET /segments/{table}/metadata asks every server hosting the table for the 
metadata of the requested segments (all of them when none are given). The 
controller buffers every server's response, parses them into one tree and 
pretty-prints the result, with no bound on size. A full-table request with 
columns=* on a large table can run the controller out of heap.
   
   Count the (segment, column) entries the request would fetch before calling 
any server: segments hosted per server (so replicas count), times the number of 
columns. No columns counts as 1, since servers then return segment-level 
metadata only; '*' counts every schema column. If the count is over 
controller.segment.metadata.maxSegmentColumns (default 50,000), the request is 
rejected with a 400 that explains the heap risk and asks the caller to narrow 
it with 'segments' or 'columns'.
   
   The default is about 75 MB of raw JSON at roughly 1.5 K chars per entry, a 
few hundred MB of peak controller heap once parsed and re-serialized. Clusters 
that need more can raise the config.
   


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