You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/03/04 10:39:52 UTC
[GitHub] [netbeans] mbien edited a comment on pull request #3558: maven indexing lucene renovation
mbien edited a comment on pull request #3558:
URL: https://github.com/apache/netbeans/pull/3558#issuecomment-1050572761
for future reference, the assertion error in BooleanQuery.hashcode() attached below.
https://github.com/apache/netbeans/blob/04fa8fba812566a211462fc3eef73597fbf3a975/java/maven.indexer/src/org/netbeans/modules/maven/indexer/NexusRepositoryIndexerImpl.java#L1451-L1457
can be mitigated by not changing the rewrite method to `MultiTermQuery.CONSTANT_SCORE_BOOLEAN_REWRITE` recursively via setBooleanRewrite(query).
lucene issue filed:
- https://issues.apache.org/jira/browse/LUCENE-10431
PRs:
- https://github.com/apache/lucene/pull/726
- https://github.com/apache/lucene/pull/727 unfortunately, there are no updates to the 8.x branch planned, so it might not get backported
Can be triggered via UI, right click on project dependencies -> "Add Dependency..." -> use "query:" search field, e.g enter "org.eclipse.jetty".
```
java.lang.AssertionError
at org.apache.lucene.search.BooleanQuery.hashCode(BooleanQuery.java:614)
at java.base/java.util.Objects.hashCode(Objects.java:103)
at java.base/java.util.HashMap$Node.hashCode(HashMap.java:298)
at java.base/java.util.AbstractMap.hashCode(AbstractMap.java:527)
at org.apache.lucene.search.Multiset.hashCode(Multiset.java:119)
at java.base/java.util.EnumMap.entryHashCode(EnumMap.java:717)
at java.base/java.util.EnumMap.hashCode(EnumMap.java:709)
at java.base/java.util.Arrays.hashCode(Arrays.java:4498)
at java.base/java.util.Objects.hash(Objects.java:133)
at org.apache.lucene.search.BooleanQuery.computeHashCode(BooleanQuery.java:597)
at org.apache.lucene.search.BooleanQuery.hashCode(BooleanQuery.java:611)
at java.base/java.util.HashMap.hash(HashMap.java:340)
at java.base/java.util.HashMap.put(HashMap.java:612)
at org.apache.lucene.search.Multiset.add(Multiset.java:82)
at org.apache.lucene.search.BooleanQuery.<init>(BooleanQuery.java:154)
at org.apache.lucene.search.BooleanQuery.<init>(BooleanQuery.java:42)
at org.apache.lucene.search.BooleanQuery$Builder.build(BooleanQuery.java:133)
at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$1.run(NexusRepositoryIndexerImpl.java:1457)
at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.lambda$iterate$11(NexusRepositoryIndexerImpl.java:890)
at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
at org.openide.util.Mutex.writeAccess(Mutex.java:252)
at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.iterate(NexusRepositoryIndexerImpl.java:872)
at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.find(NexusRepositoryIndexerImpl.java:1387)
at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.find(NexusRepositoryIndexerImpl.java:1382)
at org.netbeans.modules.maven.indexer.api.RepositoryQueries.lambda$findResult$13(RepositoryQueries.java:505)
at org.netbeans.modules.maven.indexer.api.RepositoryQueries.getQueryResult(RepositoryQueries.java:217)
at org.netbeans.modules.maven.indexer.api.RepositoryQueries.findResult(RepositoryQueries.java:502)
at org.netbeans.modules.maven.nodes.AddDependencyPanel$QueryPanel$2.run(AddDependencyPanel.java:1144)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
(...)
```
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists