sonatype-lift[bot] commented on code in PR #1374: URL: https://github.com/apache/solr/pull/1374#discussion_r1113065021
########## solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java: ########## @@ -83,7 +83,8 @@ public static JettySolrRunner createAndStartJetty( nodeProps.setProperty("solr.data.dir", createTempDir().toFile().getCanonicalPath()); } - return createAndStartJetty(solrHome, nodeProps, jettyConfig); + solrClientTestRule.startSolr(Path.of(solrHome), nodeProps, jettyConfig); Review Comment: <picture><img alt="5% of developers fix this issue" src="https://lift.sonatype.com/api/commentimage/fixrate/5/display.svg"></picture> <b>*THREAD_SAFETY_VIOLATION:</b>* Unprotected write. Non-private method `SolrJettyTestBase.createAndStartJetty(...)` indirectly mutates container `util.ObjectReleaseTracker.OBJECTS` via call to `Map.remove(...)` outside of synchronization. Reporting because another access to the same memory occurs on a background thread, although this access may not. ââ <b>2 similar findings have been found in this PR</b> <details><summary>đ Expand here to view all instances of this finding</summary><br/> <div align=\"center\"> | **File Path** | **Line Number** | | ------------- | ------------- | | solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java | [98](https://github.com/apache/solr/blob/0bfe49cee212cdc85c67bc2cb8840bf473b12eb5/solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java#L98) | | solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java | [103](https://github.com/apache/solr/blob/0bfe49cee212cdc85c67bc2cb8840bf473b12eb5/solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java#L103) | <p><a href="https://lift.sonatype.com/results/github.com/apache/solr/01GST04VC5DPP7NW9YAKB5D3AN?t=Infer|THREAD_SAFETY_VIOLATION" target="_blank">Visit the Lift Web Console</a> to find more details in your report.</p></div></details> --- <details><summary>âšī¸ Expand to see all <b>@sonatype-lift</b> commands</summary> You can reply with the following commands. For example, reply with ***@sonatype-lift ignoreall*** to leave out all findings. | **Command** | **Usage** | | ------------- | ------------- | | `@sonatype-lift ignore` | Leave out the above finding from this PR | | `@sonatype-lift ignoreall` | Leave out all the existing findings from this PR | | `@sonatype-lift exclude <file\|issue\|path\|tool>` | Exclude specified `file\|issue\|path\|tool` from Lift findings by updating your config.toml file | **Note:** When talking to LiftBot, you need to **refresh** the page to see its response. <sub>[Click here](https://github.com/apps/sonatype-lift/installations/new) to add LiftBot to another repo.</sub></details> --- <b>Help us improve LIFT! (<i>Sonatype LiftBot external survey</i>)</b> Was this a good recommendation for you? <sub><small>Answering this survey will not impact your Lift settings.</small></sub> [â[đ Not relevant](https://www.sonatype.com/lift-comment-rating?comment=400643998&lift_comment_rating=1) â] - [â[đ Won't fix](https://www.sonatype.com/lift-comment-rating?comment=400643998&lift_comment_rating=2) â] - [â[đ Not critical, will fix](https://www.sonatype.com/lift-comment-rating?comment=400643998&lift_comment_rating=3) â] - [â[đ Critical, will fix](https://www.sonatype.com/lift-comment-rating?comment=400643998&lift_comment_rating=4) â] - [â[đ Critical, fixing now](https://www.sonatype.com/lift-comment-rating?comment=400643998&lift_comment_rating=5) â] -- 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: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org