Technoboy- opened a new pull request #14833:
URL: https://github.com/apache/pulsar/pull/14833


   Fixes #14821
   
   Master Issue: #14821
   
   ### Motivation
   
   Currently TableViewImpl methods that access the underlying map, e.g., 
TableViewImpl::KeySet() 
(https://github.com/apache/pulsar/blob/master/pulsar-client/src/main/java/org/apache/pulsar/client/impl/TableViewImpl.java#L141)
 returns views of the underlying map, which means users could modify the 
returned value and accidentally change the internal state of TableViewImpl.
   
   It's better to return a new data set to users.
   
   ### Documentation
   
   - [x] `no-need-doc` 
   
   
   
   


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