You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/08/29 03:50:18 UTC
[GitHub] [solr] noblepaul opened a new pull request, #987: SOLR-16336 avoid fetching solrconfig.xml & schema.xml for already cached schema and config
noblepaul opened a new pull request, #987:
URL: https://github.com/apache/solr/pull/987
https://issues.apache.org/jira/browse/SOLR-16336
--
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-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
[GitHub] [solr] noblepaul merged pull request #987: SOLR-16336: avoid fetching solrconfig.xml & schema.xml for already cached schema and config
Posted by GitBox <gi...@apache.org>.
noblepaul merged PR #987:
URL: https://github.com/apache/solr/pull/987
--
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-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
[GitHub] [solr] sonatype-lift[bot] commented on a diff in pull request #987: SOLR-16336: avoid fetching solrconfig.xml & schema.xml for already cached schema and config
Posted by GitBox <gi...@apache.org>.
sonatype-lift[bot] commented on code in PR #987:
URL: https://github.com/apache/solr/pull/987#discussion_r959594973
##########
solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java:
##########
@@ -277,7 +277,7 @@ public ManagedIndexSchema create(
managedSchemaResourceName,
schemaZkVersion,
getSchemaUpdateLock());
Review Comment:
đŦ 11 similar findings have been found in this PR
---
*THREAD_SAFETY_VIOLATION:* Unprotected write. Non-private method `ManagedIndexSchemaFactory.create(...)` indirectly writes to field `config.overlay` outside of synchronization.
Reporting because this access may occur on a background thread.
---
<details><summary><b>đ Expand here to view all instances of this finding</b></summary><br/>
<div align="center">
| **File Path** | **Line Number** |
| ------------- | ------------- |
| solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java | [108](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java#L108)|
| solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java | [118](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java#L118)|
| solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java | [85](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java#L85)|
| solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java | [51](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java#L51)|
| solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java | [90](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java#L90)|
| solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java | [95](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java#L95)|
| solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java | [268](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java#L268)|
| solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java | [541](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java#L541)|
| solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java | [283](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java#L283)|
| solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java | [290](https://github.com/fullstorydev/solr/blob/78f75d6c6313ea9f1fc2120827986877059993ae/solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java#L290)|
<p> Showing <b>10</b> of <b>11</b> findings. <a href="https://lift.sonatype.com/results/github.com/apache/solr/01GBSYTGEW9BRGC230ZA68KQAY?t=Infer|THREAD_SAFETY_VIOLATION" target="_blank">Visit the Lift Web Console</a> to see all.</p></div></details>
---
<details><summary><b>âšī¸ Learn about @sonatype-lift commands</b></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>
---
Was this a good recommendation?
[ [đ Not relevant](https://www.sonatype.com/lift-comment-rating?comment=325225072&lift_comment_rating=1) ] - [ [đ Won't fix](https://www.sonatype.com/lift-comment-rating?comment=325225072&lift_comment_rating=2) ] - [ [đ Not critical, will fix](https://www.sonatype.com/lift-comment-rating?comment=325225072&lift_comment_rating=3) ] - [ [đ Critical, will fix](https://www.sonatype.com/lift-comment-rating?comment=325225072&lift_comment_rating=4) ] - [ [đ Critical, fixing now](https://www.sonatype.com/lift-comment-rating?comment=325225072&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-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org