You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/11/27 08:29:37 UTC
[GitHub] [incubator-druid] yongmeibian opened a new pull request #8956:
concurrent access to charsetfix method throws IllegalStateException bugfix
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org