yongmeibian opened a new pull request #8956: concurrent access to charsetfix 
method throws IllegalStateException bugfix
URL: https://github.com/apache/incubator-druid/pull/8956
 
 
   java.nio.charset.CharsetEncoder.canEncode throws IllegalStateException if an 
encoding 
   
   operation is already in progress.And 
   
   org.apache.druid.java.util.common.parsers.JSONFlattenerMaker has a private 
final 
   
   CharsetEncoder enc = StandardCharsets.UTF_8.newEncoder() as its member 
variable and the 
   
   charsetFix() executes  "if (s != null && !enc.canEncode(s))" which makes 
charsetFix() 
   
   cannot be accessed concurrently either.
   
   Fixed the bug: access  JSONFlattenerMaker charsetFix() concurrently  throws 
IllegalStateException
   
   
   ##### Key changed/added classes in this PR
   JSONFlattenerMaker
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to