wchevreuil commented on PR #6999:
URL: https://github.com/apache/hbase/pull/6999#issuecomment-2918957262

   > > The JSON serialization is used in a single test in debug log output.
   > 
   > No it's not, we just got another ticket that demonstrates that it's also 
called by the UI from JSP.
   
   Yeah, that's a problem. Imagine a file based bucket cache of TBs of data, 
the in-memory representation of the cache structure can easily grow to few GBs 
of RAM. 
   
   <img width="788" alt="Screenshot 2023-11-17 at 20 42 25" 
src="https://github.com/user-attachments/assets/4aa432d5-f3f2-4600-9eed-0b35d5da3016";
 />
   
   
   Deserialising it into a String can cause potential problems for the RS.
   
   I wonder if we should rather remove JSON deserialisation for BucketCache. Or 
at least put some safeguards that check for the size of the BucketCache object.
   


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

Reply via email to