You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/08/23 14:37:00 UTC
[jira] [Commented] (LUCENE-10058) lucene main(9.0) run ./gradlew
lucene:benchmark:run error
[ https://issues.apache.org/jira/browse/LUCENE-10058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17403212#comment-17403212 ]
ASF subversion and git services commented on LUCENE-10058:
----------------------------------------------------------
Commit 191ee3ad3e44ac76d7ba42c5a30740f9bc838de7 in lucene's branch refs/heads/main from 51search
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=191ee3a ]
LUCENE-10058: fix gradle lucene:benchmark:run error (#253)
> lucene main(9.0) run ./gradlew lucene:benchmark:run error
> ----------------------------------------------------------
>
> Key: LUCENE-10058
> URL: https://issues.apache.org/jira/browse/LUCENE-10058
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/benchmark
> Affects Versions: main (9.0)
> Environment: -Druntime.java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home
> Reporter: xiaoshi
> Priority: Major
> Labels: newdev
> Time Spent: 10m
> Remaining Estimate: 0h
>
> ./gradlew lucene:benchmark:run -Druntime.java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home
> > Task :errorProneSkipped
> WARNING: errorprone disabled (skipped on non-nightly runs)
> > Task :lucene:benchmark:run
> Running algorithm from: /Users/zhanglei/git/lucene_source/lucene_zl/lucene/lucene/benchmark/conf/micro-standard.alg
> ------------> config properties:
> analyzer = org.apache.lucene.analysis.standard.StandardAnalyzer
> compound = true
> content.source = org.apache.lucene.benchmark.byTask.feeds.ReutersContentSource
> directory = FSDirectory
> doc.stored = true
> doc.term.vector = false
> doc.tokenized = true
> docs.dir = reuters21578
> log.queries = true
> log.step = 500
> max.buffered = buf:10:10:100:100
> merge.factor = mrg:10:100:10:100
> query.maker = org.apache.lucene.benchmark.byTask.feeds.ReutersQueryMaker
> task.max.depth.log = 2
> work.dir = data
> -------------------------------
> ------------> queries:
> 0. TermQuery - body:salomon
> 1. TermQuery - body:comex
> 2. BooleanQuery - body:night body:trading
> 3. BooleanQuery - body:japan body:sony
> 4. PhraseQuery - body:"sony japan"
> 5. PhraseQuery - body:"food needs"~3
> 6. BooleanQuery - +(body:"world bank")^2.0 +body:nigeria
> 7. BooleanQuery - body:"world bank" -body:nigeria
> 8. PhraseQuery - body:"ford credit"~5
> 9. BooleanQuery - body:airline body:europe body:canada body:destination
> 10. BooleanQuery - body:long body:term body:pressure body:by body:trade body:ministers body:is body:necessary body:if body:the body:current body:uruguay body:round body:of body:talks body:on body:the body:general body:agreement body:on body:trade body:and body:tariffs body:gatt body:is body:to body:succeed
> 11. SpanFirstQuery - spanFirst(body:ford, 5)
> 12. SpanNearQuery - spanNear([body:night, body:trading], 4, false)
> 13. SpanNearQuery - spanNear([spanFirst(body:ford, 10), body:credit], 10, false)
> 14. WildcardQuery - body:fo*
> ------------> algorithm:
> Seq {
> Rounds_4 {
> ResetSystemErase
> Populate {
> -CreateIndex
> MAddDocs_2000 {
> AddDoc
> > * 2000
> -ForceMerge(1.0)
> -CloseIndex
> }
> OpenReader
> SearchSameRdr_5000 {
> Search
> > * 5000
> CloseReader
> WarmNewRdr_50 {
> Warm
> > * 50
> SrchNewRdr_500 {
> Search
> > * 500
> SrchTrvNewRdr_300 {
> SearchTrav(1000.0)
> > * 300
> SrchTrvRetNewRdr_100 {
> SearchTravRet(2000.0)
> > * 100
> NewRound
> } * 4
> RepSumByName
> RepSumByPrefRound MAddDocs
> }
> ------------> starting task: Seq
> ------------> starting task: Rounds_4
> ------------> starting task: Populate
> Error: cannot execute the algorithm! begin 19, end 4, length 4
> java.lang.StringIndexOutOfBoundsException: begin 19, end 4, length 4
> at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
> at java.base/java.lang.String.substring(String.java:1874)
> at org.apache.lucene.benchmark.byTask.feeds.ReutersContentSource.getNextDocData(ReutersContentSource.java:117)
> at org.apache.lucene.benchmark.byTask.feeds.DocMaker.makeDocument(DocMaker.java:368)
> at org.apache.lucene.benchmark.byTask.tasks.AddDocTask.setup(AddDocTask.java:50)
> at org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTask.java:131)
> at org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSequence.java:189)
> at org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequence.java:127)
> at org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTask.java:143)
> at org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSequence.java:189)
> at org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequence.java:127)
> at org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTask.java:143)
> at org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSequence.java:189)
> at org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequence.java:127)
> at org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTask.java:143)
> at org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSequence.java:189)
> at org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequence.java:127)
> at org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTask.java:143)
> at org.apache.lucene.benchmark.byTask.utils.Algorithm.execute(Algorithm.java:335)
> at org.apache.lucene.benchmark.byTask.Benchmark.execute(Benchmark.java:78)
> at org.apache.lucene.benchmark.byTask.Benchmark.exec(Benchmark.java:124)####################
> at org.apache.lucene.benchmark.byTask.Benchmark.main(Benchmark.java:87)
> ### D O N E !!! ###
> ####################
> BUILD SUCCESSFUL in 3s
> 31 actionable tasks: 3 executed, 28 up-to-date
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org