Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename reference to project OpenSearch was forked from #2483

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

lukas-vlcek
Copy link
Contributor

Description

Fixing log message and renaming internal variable.
Improving internal JavaDoc.

Issues Resolved

Hidden forking and rename leftover that was making it into log message.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Lukáš Vlček lukas.vlcek@aiven.io

@lukas-vlcek lukas-vlcek requested a review from a team as a code owner March 16, 2022 10:40
@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 5bfdeb86d89a88ce0072bca7b3a0e930a59246da
Log 3438

Reports 3438

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 70930fc1502d3f25424f27b9c06456797d23fea4
Log 3439

Reports 3439

@lukas-vlcek
Copy link
Contributor Author

Failed due to Read timed out.:

> Task :test:fixtures:gcs-fixture:composeUp
Creating 1746e03edff13bc4cdc044d95fc27292_gcs-fixture__gcs-fixture_1                       ... done

ERROR: for 1746e03edff13bc4cdc044d95fc27292_gcs-fixture__gcs-fixture-other_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=120)
Creating 1746e03edff13bc4cdc044d95fc27292_gcs-fixture__gcs-fixture-repositories-metering_1 ... done

ERROR: for gcs-fixture-other  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=120)
An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 120).
Stopping 1746e03edff13bc4cdc044d95fc27292_gcs-fixture__gcs-fixture-repositories-metering_1 ... 
Stopping 1746e03edff13bc4cdc044d95fc27292_gcs-fixture__gcs-fixture_1                       ... 
Stopping 1746e03edff13bc4cdc044d95fc27292_gcs-fixture__gcs-fixture-third-party_1           ... 

Flaky test?

Fixing log message and renaming internal variable.
Improving internal JavaDoc.

Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure f636986
Log 3444

Reports 3444

@lukas-vlcek
Copy link
Contributor Author

Looks like another flaky test? (below is excerpt from gradle_check_3444.log):

  1> [2022-03-16T09:23:23,346][WARN ][o.o.t.s.M.Listener       ] [node_s5] [test][0] failed to check index
  1> java.io.IOException: failed to check index for shard [test][0];index files [[_0.cfe, _0.cfs, _0.si, _0_1.fnm, _0_1_Lucene90_0.dvd, _0_1_Lucene90_0.dvm, _1.cfe, _1.cfs, _1.si, _1_1.fnm, _1_1_Lucene90_0.dvd, _1_1_Lucene90_0.dvm, _2.cfe, _2.cfs, _2.si, _2_1.fnm, _2_1_Lucene90_0.dvd, _2_1_Lucene90_0.dvm, _3.cfe, _3.cfs, _3.si, _3_1.fnm, _3_1_Lucene90_1.dvd, _3_1_Lucene90_1.dvm, segments_3, write.lock]] os [Checking index with threadCount: 72
  1> 0.00% total deletions; 34 documents; 0 deletions
  1> Segments file=segments_3 numSegments=4 version=9.0.0 id=dywbhkf43xcq9f7mjtyq7psrb userData={history_uuid=Hdrrt6IcQPyzFLFZLNpi2w, local_checkpoint=33, max_seq_no=33, max_unsafe_auto_id_timestamp=-1, min_retained_seq_no=0, translog_uuid=IZsglCdxRkiJRLGQ6aUKVQ}
  1> 1 of 4: name=_0 maxDoc=1
  1>     version=9.0.0
  1>     id=dywbhkf43xcq9f7mjtyq7pspx
  1>     codec=Asserting(Lucene90)
  1>     compound=true
  1>     numFiles=6
  1>     sort=<sortednumeric: "rank"> missingValue=9223372036854775807 selector=MIN type=LONG
  1>     size (MB)=0.005
  1>     diagnostics = {java.vm.version=17.0.2+8, java.version=17.0.2, timestamp=1647440602225, os=Linux, java.vendor=Eclipse Adoptium, os.version=5.13.0-1014-aws, java.runtime.version=17.0.2+8, os.arch=amd64, source=flush, lucene.version=9.0.0}
  1>     no deletions
  1>     test: open reader.........OK [took 0.007 sec]
  1>     test: check integrity.....OK [took 0.000 sec]
  1>     test: check live docs.....OK [took 0.000 sec]
  1>     test: field infos.........OK [8 fields] [took 0.000 sec]
  1>     test: field norms.........OK [0 fields] [took 0.000 sec]
  1>     test: terms, freq, prox...OK [3 terms; 3 terms/docs pairs; 3 tokens] [took 0.000 sec]
  1>     test: stored fields.......OK [3 total field count; avg 3.0 fields per doc] [took 0.000 sec]
  1>     test: term vectors........OK [0 total term vector count; avg 0.0 term/freq vector fields per doc] [took 0.000 sec]
  1>     test: docvalues...........OK [4 docvalues fields; 0 BINARY; 4 NUMERIC; 0 SORTED; 0 SORTED_NUMERIC; 0 SORTED_SET] [took 0.000 sec]
  1>     test: points..............OK [1 fields, 1 points] [took 0.000 sec]
  1>     test: vectors.............OK [0 fields, 0 vectors] [took 0.000 sec]
  1>     test: index sort..........OK [took 0.035 sec]
  1>     test: check soft deletes.....
  1> 2 of 4: name=_1 maxDoc=3
  1>     version=9.0.0
  1>     id=dywbhkf43xcq9f7mjtyq7pspy
  1>     codec=Asserting(Lucene90)
  1>     compound=true
  1>     numFiles=6
  1>     sort=<sortednumeric: "rank"> missingValue=9223372036854775807 selector=MIN type=LONG
  1>     size (MB)=0.005
  1>     diagnostics = {java.vm.version=17.0.2+8, java.version=17.0.2, timestamp=1647440601976, os=Linux, java.vendor=Eclipse Adoptium, os.version=5.13.0-1014-aws, java.runtime.version=17.0.2+8, os.arch=amd64, source=flush, lucene.version=9.0.0}
  1>     no deletions
  1>     test: open reader.........OK [took 0.043 sec]
  1>     test: check integrity.....OK [took 0.000 sec]
  1>     test: check live docs.....OK [took 0.000 sec]
  1>     test: field infos.........OK [9 fields] [took 0.000 sec]
  1>     test: field norms.........OK [0 fields] [took 0.000 sec]
  1>     test: terms, freq, prox...OK [5 terms; 5 terms/docs pairs; 5 tokens] [took 0.000 sec]
  1>     test: stored fields.......OK [7 total field count; avg 2.3 fields per doc] [took 0.000 sec]
  1>     test: term vectors........OK [0 total term vector count; avg 0.0 term/freq vector fields per doc] [took 0.000 sec]
  1>     test: docvalues...........OK [5 docvalues fields; 0 BINARY; 4 NUMERIC; 0 SORTED; 1 SORTED_NUMERIC; 0 SORTED_SET] [took 0.000 sec]
  1>     test: points..............OK [2 fields, 5 points] [took 0.000 sec]
  1>     test: vectors.............OK [0 fields, 0 vectors] [took 0.000 sec]
  1>     test: index sort..........FAILED
  1>     WARNING: exorciseIndex() would remove reference to this segment; full exception:
  1> java.lang.IllegalArgumentException: Field rank is indexed with 4 bytes per dimension, but org.apache.lucene.search.SortedNumericSortField$3@2cabe69e expected 8
  1> 	at org.apache.lucene.search.comparators.NumericComparator$NumericLeafComparator.<init>(NumericComparator.java:116)
  1> 	at org.apache.lucene.search.comparators.LongComparator$LongLeafComparator.<init>(LongComparator.java:65)
  1> 	at org.apache.lucene.search.SortedNumericSortField$3$1.<init>(SortedNumericSortField.java:312)
  1> 	at org.apache.lucene.search.SortedNumericSortField$3.getLeafComparator(SortedNumericSortField.java:312)
  1> 	at org.apache.lucene.index.CheckIndex.testSort(CheckIndex.java:1109)
  1> 	at org.apache.lucene.index.CheckIndex.testSegment(CheckIndex.java:1012)
  1> 	at org.apache.lucene.index.CheckIndex.lambda$checkIndex$1(CheckIndex.java:762)
  1> 	at org.apache.lucene.index.CheckIndex.lambda$callableToSupplier$2(CheckIndex.java:860)
  1> 	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
  1> 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
  1> 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
  1> 	at java.base/java.lang.Thread.run(Thread.java:833)

  1> 3 of 4: name=_2 maxDoc=13
  1>     version=9.0.0
  1>     id=dywbhkf43xcq9f7mjtyq7pspz
  1>     codec=Asserting(Lucene90)
  1>     compound=true
  1>     numFiles=6
  1>     sort=<sortednumeric: "rank"> missingValue=9223372036854775807 selector=MIN type=LONG
  1>     size (MB)=0.006
  1>     diagnostics = {java.vm.version=17.0.2+8, java.version=17.0.2, timestamp=1647440601467, os=Linux, java.vendor=Eclipse Adoptium, os.version=5.13.0-1014-aws, java.runtime.version=17.0.2+8, os.arch=amd64, source=flush, lucene.version=9.0.0}
  1>     no deletions
  1>     test: open reader.........OK [took 0.007 sec]
  1>     test: check integrity.....OK [took 0.000 sec]
  1>     test: check live docs.....OK [took 0.000 sec]
  1>     test: field infos.........OK [9 fields] [took 0.000 sec]
  1>     test: field norms.........OK [0 fields] [took 0.000 sec]
  1>     test: terms, freq, prox...OK [19 terms; 23 terms/docs pairs; 23 tokens] [took 0.000 sec]
  1>     test: stored fields.......OK [31 total field count; avg 2.4 fields per doc] [took 0.000 sec]
  1>     test: term vectors........OK [0 total term vector count; avg 0.0 term/freq vector fields per doc] [took 0.000 sec]
  1>     test: docvalues...........OK [5 docvalues fields; 0 BINARY; 4 NUMERIC; 0 SORTED; 1 SORTED_NUMERIC; 0 SORTED_SET] [took 0.035 sec]
  1>     test: points..............OK [2 fields, 21 points] [took 0.000 sec]
  1>     test: vectors.............OK [0 fields, 0 vectors] [took 0.000 sec]
  1>     test: index sort..........FAILED
  1>     WARNING: exorciseIndex() would remove reference to this segment; full exception:
  1> java.lang.IllegalArgumentException: Field rank is indexed with 4 bytes per dimension, but org.apache.lucene.search.SortedNumericSortField$3@7396fd77 expected 8
  1> 	at org.apache.lucene.search.comparators.NumericComparator$NumericLeafComparator.<init>(NumericComparator.java:116)
  1> 	at org.apache.lucene.search.comparators.LongComparator$LongLeafComparator.<init>(LongComparator.java:65)
  1> 	at org.apache.lucene.search.SortedNumericSortField$3$1.<init>(SortedNumericSortField.java:312)
  1> 	at org.apache.lucene.search.SortedNumericSortField$3.getLeafComparator(SortedNumericSortField.java:312)
  1> 	at org.apache.lucene.index.CheckIndex.testSort(CheckIndex.java:1109)
  1> 	at org.apache.lucene.index.CheckIndex.testSegment(CheckIndex.java:1012)
  1> 	at org.apache.lucene.index.CheckIndex.lambda$checkIndex$1(CheckIndex.java:762)
  1> 	at org.apache.lucene.index.CheckIndex.lambda$callableToSupplier$2(CheckIndex.java:860)
  1> 	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
  1> 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
  1> 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
  1> 	at java.base/java.lang.Thread.run(Thread.java:833)

  1> 4 of 4: name=_3 maxDoc=17
  1>     version=9.0.0
  1>     id=dywbhkf43xcq9f7mjtyq7psq0
  1>     codec=Asserting(Lucene90)
  1>     compound=true
  1>     numFiles=6
  1>     sort=<sortednumeric: "rank"> missingValue=9223372036854775807 selector=MIN type=LONG
  1>     size (MB)=0.007
  1>     diagnostics = {java.vm.version=17.0.2+8, java.version=17.0.2, timestamp=1647440601736, os=Linux, java.vendor=Eclipse Adoptium, os.version=5.13.0-1014-aws, java.runtime.version=17.0.2+8, os.arch=amd64, source  1> =flush, lucene.version=9.0.0}
  1>     no deletions
  1>     test: open reader.........OK [took 0.044 sec]
  1>     test: check integrity.....OK [took 0.000 sec]
  1>     test: check live docs.....OK [took 0.000 sec]
  1>     test: field infos.........OK [10 fields] [took 0.000 sec]
  1>     test: field norms.........OK [0 fields] [took 0.000 sec]
  1>     test: terms, freq, prox...OK [18 terms; 21 terms/docs pairs; 21 tokens] [took 0.000 sec]
  1>     test: stored fields.......OK [27 total field count; avg 1.6 fields per doc] [took 0.000 sec]
  1>     test: term vectors........OK [0 total term vector count; avg 0.0 term/freq vector fields per doc] [took 0.000 sec]
  1>     test: docvalues...........OK [6 docvalues fields; 0 BINARY; 5 NUMERIC; 0 SORTED; 1 SORTED_NUMERIC; 0 SORTED_SET] [took 0.000 sec]
  1>     test: points..............OK [2 fields, 23 points] [took 0.000 sec]
  1>     test: vectors.............OK [0 fields, 0 vectors] [took 0.000 sec]
  1>     test: index sort..........FAILED
  1>     WARNING: exorciseIndex() would remove reference to this segment; full exception:
  1> java.lang.IllegalArgumentException: Field rank is indexed with 4 bytes per dimension, but org.apache.lucene.search.SortedNumericSortField$3@3f6c3860 expected 8
  1> 	at org.apache.lucene.search.comparators.NumericComparator$NumericLeafComparator.<init>(NumericComparator.java:116)
  1> 	at org.apache.lucene.search.comparators.LongComparator$LongLeafComparator.<init>(LongComparator.java:65)
  1> 	at org.apache.lucene.search.SortedNumericSortField$3$1.<init>(SortedNumericSortField.java:312)
  1> 	at org.apache.lucene.search.SortedNumericSortField$3.getLeafComparator(SortedNumericSortField.java:312)
  1> 	at org.apache.lucene.index.CheckIndex.testSort(CheckIndex.java:1109)
  1> 	at org.apache.lucene.index.CheckIndex.testSegment(CheckIndex.java:1012)
  1> 	at org.apache.lucene.index.CheckIndex.lambda$checkIndex$1(CheckIndex.java:762)
  1> 	at org.apache.lucene.index.CheckIndex.lambda$callableToSupplier$2(CheckIndex.java:860)
  1> 	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
  1> 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
  1> 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
  1> 	at java.base/java.lang.Thread.run(Thread.java:833)

  1> WARNING: 3 broken segments (containing 33 documents) detected
  1> Took 0.052 sec total.
  1> ]
  1> 	at org.opensearch.test.store.MockFSDirectoryFactory.checkIndex(MockFSDirectoryFactory.java:119) [framework-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
  1> 	at org.opensearch.test.store.MockFSIndexStore$Listener.afterIndexShardClosed(MockFSIndexStore.java:112) [framework-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
  1> 	at org.opensearch.index.CompositeIndexEventListener.afterIndexShardClosed(CompositeIndexEventListener.java:130) [main/:?]
  1> 	at org.opensearch.index.IndexService.closeShard(IndexService.java:580) [main/:?]
  1> 	at org.opensearch.index.IndexService.removeShard(IndexService.java:553) [main/:?]
  1> 	at org.opensearch.index.IndexService.close(IndexService.java:354) [main/:?]
  1> 	at org.opensearch.indices.IndicesService.removeIndex(IndicesService.java:886) [main/:?]
  1> 	at org.opensearch.indices.cluster.IndicesClusterStateService.deleteIndices(IndicesClusterStateService.java:307) [main/:?]
  1> 	at org.opensearch.indices.cluster.IndicesClusterStateService.applyClusterState(IndicesClusterStateService.java:241) [main/:?]
  1> 	at org.opensearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:591) [main/:?]
  1> 	at org.opensearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:578) [main/:?]
  1> 	at org.opensearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:546) [main/:?]
  1> 	at org.opensearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:469) [main/:?]
  1> 	at org.opensearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:180) [main/:?]
  1> 	at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:733) [main/:?]
  1> 	at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedOpenSearchThreadPoolExecutor.java:275) [main/:?]
  1> 	at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedOpenSearchThreadPoolExecutor.java:238) [main/:?]
  1> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
  1> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
  1> 	at java.lang.Thread.run(Thread.java:833) [?:?]
  1> [2022-03-16T09:23:23,347][INFO ][o.o.t.s.M.Listener       ] [node_s5] [test][0] end check index
  1> [2022-03-16T09:23:23,486][INFO ][o.o.c.m.MetadataIndexTemplateService] [node_s2] removing template [random_index_template]
  1> [2022-03-16T09:23:23,682][INFO ][o.o.s.s.SimpleSearchIT   ] [testSimpleIndexSortEarlyTerminate] [SimpleSearchIT#testSimpleIndexSortEarlyTerminate]: cleaned up after test
  2> REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.opensearch.search.simple.SimpleSearchIT.testSimpleIndexSortEarlyTerminate" -Dtests.seed=E45EED588B09BBF2 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=be-BY -Dtests.timezone=Pacific/Easter -Druntime.java=17
  2> java.lang.AssertionError: at least one shard failed CheckIndex
        at __randomizedtesting.SeedInfo.seed([E45EED588B09BBF2:2CF02A6A721CD5C9]:0)
        at org.opensearch.test.OpenSearchTestCase.ensureCheckIndexPassed(OpenSearchTestCase.java:663)
        at org.opensearch.test.OpenSearchTestCase.after(OpenSearchTestCase.java:428)
        at jdk.internal.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750)
        at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
        at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44)
        at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
        at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
        at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
        at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
        at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)
        at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)
        at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947)
        at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832)
        at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883)
        at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894)
        at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
        at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
        at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
        at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
        at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
        at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
        at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
        at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
        at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
        at java.base/java.lang.Thread.run(Thread.java:833)

[...]

Tests with failures:
 - org.opensearch.search.simple.SimpleSearchIT.testSimpleIndexSortEarlyTerminate

2602 tests completed, 1 failed, 6 skipped

> Task :server:internalClusterTest FAILED

This test passes on my local machine (but I do not have the same HW setup):

./gradlew ':server:internalClusterTest' --tests "org.opensearch.search.simple.SimpleSearchIT.testSimpleIndexSortEarlyTerminate" -Dtests.seed=E45EED588B09BBF2 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=be-BY -Dtests.timezone=Pacific/Easter -Druntime.java=17

> Configure project :qa:os
Cannot add task 'destructiveDistroTest.docker' as a task with that name already exists.
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 7.3.3
  OS Info               : Mac OS X 12.1 (aarch64)
  Runtime JDK Version   : 17 (Eclipse Adoptium JDK)
  Runtime java.home     : /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
  Gradle JDK Version    : 17 (Eclipse Adoptium JDK)
  Gradle java.home      : /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
  Random Testing Seed   : E45EED588B09BBF2
  In FIPS 140 mode      : false
=======================================

> Task :libs:opensearch-x-content:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :server:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :test:framework:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :server:compileTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :server:compileInternalClusterTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :server:internalClusterTest
OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=warn; support was removed in 17.0
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/Users/lukas.vlcek/projects/OpenSearch/test/framework/build/distributions/framework-2.0.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/Users/lukas.vlcek/.gradle/wrapper/dists/gradle-7.3.3-all/4295vidhdd9hd3gbjyw1xqxpo/gradle-7.3.3/lib/plugins/gradle-testing-base-7.3.3.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release

BUILD SUCCESSFUL in 44s
44 actionable tasks: 30 executed, 14 up-to-date

@dblock
Copy link
Member

dblock commented Mar 16, 2022

@lukas-vlcek for flakey tests, add a link to an existing issue for the same failure to this PR/log, or open a new one please

@dblock
Copy link
Member

dblock commented Mar 16, 2022

start gradle check

@reta
Copy link
Collaborator

reta commented Mar 16, 2022

@dblock @lukas-vlcek the cause of the failure is not the flaky one, it is directly coming from changes in Lucene 9 (same as cause as NumberFieldTypeTests fe)

  1>     WARNING: exorciseIndex() would remove reference to this segment; full exception:
  1> java.lang.IllegalArgumentException: Field rank is indexed with 4 bytes per dimension, but org.apache.lucene.search.SortedNumericSortField$3@7396fd77 expected 8
  1> 	at org.apache.lucene.search.comparators.NumericComparator$NumericLeafComparator.<init>(NumericComparator.java:116)
  1> 	at org.apache.lucene.search.comparators.LongComparator$LongLeafComparator.<init>(LongComparator.java:65)
  1> 	at org.apache.lucene.search.SortedNumericSortField$3$1.<init>(SortedNumericSortField.java:312)

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success f636986
Log 3448

Reports 3448

Copy link
Collaborator

@nknize nknize left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thx for this cleanup!

@nknize nknize mentioned this pull request Mar 16, 2022
9 tasks
@nknize nknize merged commit 02ffd4c into opensearch-project:main Mar 16, 2022
@lukas-vlcek lukas-vlcek deleted the fix_fork_name_reference branch March 16, 2022 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants