muse-dev[bot] commented on a change in pull request #2010:
URL: https://github.com/apache/lucene-solr/pull/2010#discussion_r518357932
##########
File path: solr/core/src/java/org/apache/solr/cloud/ZkController.java
##########
@@ -1401,8 +1420,7 @@ public ZkCoreNodeProps getLeaderProps(final String
collection,
byte[] data = zkClient.getData(
ZkStateReader.getShardLeadersPath(collection, slice), null, null,
true);
- ZkCoreNodeProps leaderProps = new ZkCoreNodeProps(
- ZkNodeProps.load(data));
+ ZkCoreNodeProps leaderProps = new
ZkCoreNodeProps(ZkNodeProps.load(data));
Review comment:
*THREAD_SAFETY_VIOLATION:* Unprotected write. Non-private method
`ZkController.getLeaderProps(...)` indirectly writes to field
`noggit.JSONParser.devNull.buf` outside of synchronization.
Reporting because another access to the same memory occurs on a background
thread, although this access may not.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]