You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.classMethod is flaky
java.lang.RuntimeException: file handle leaks: [FileChannel(/var/jenkins/workspace/gradle-check/search/server/build/testrun/internalClusterTest/temp/org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT_138297ACFE85FB99-001/tempDir-005/node_t4/nodes/0/indices/RomeNZoISAupBjrumlxDNQ/0/translog/translog-8.tlog), FileChannel(/var/jenkins/workspace/gradle-check/search/server/build/testrun/internalClusterTest/temp/org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT_138297ACFE85FB99-001/tempDir-005/node_t4/nodes/0/indices/RomeNZoISAupBjrumlxDNQ/0/translog/translog-8.ckp), FileChannel(/var/jenkins/workspace/gradle-check/search/server/build/testrun/internalClusterTest/temp/org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT_138297ACFE85FB99-001/tempDir-005/node_t4/nodes/0/indices/RomeNZoISAupBjrumlxDNQ/0/translog/translog-9.ckp), FileChannel(/var/jenkins/workspace/gradle-check/search/server/build/testrun/internalClusterTest/temp/org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT_138297ACFE85FB99-001/tempDir-005/node_t4/nodes/0/indices/RomeNZoISAupBjrumlxDNQ/0/translog/translog-10.tlog), FileChannel(/var/jenkins/workspace/gradle-check/search/server/build/testrun/internalClusterTest/temp/org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT_138297ACFE85FB99-001/tempDir-005/node_t4/nodes/0/indices/RomeNZoISAupBjrumlxDNQ/0/translog/translog-9.tlog), FileChannel(/var/jenkins/workspace/gradle-check/search/server/build/testrun/internalClusterTest/temp/org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT_138297ACFE85FB99-001/tempDir-005/node_t4/nodes/0/indices/RomeNZoISAupBjrumlxDNQ/0/translog/translog-10.ckp)]
at __randomizedtesting.SeedInfo.seed([138297ACFE85FB99]:0)
at org.apache.lucene.tests.mockfile.LeakFS.onClose(LeakFS.java:63)
at org.apache.lucene.tests.mockfile.FilterFileSystem.close(FilterFileSystem.java:69)
at org.apache.lucene.tests.mockfile.FilterFileSystem.close(FilterFileSystem.java:70)
at org.apache.lucene.tests.util.TestRuleTemporaryFilesCleanup.afterAlways(TestRuleTemporaryFilesCleanup.java:223)
at com.carrotsearch.randomizedtesting.rules.TestRuleAdapter$1.afterAlways(TestRuleAdapter.java:31)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:43)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
at org.apache.lucene.tests.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:1583)
Caused by: java.lang.Exception
at org.apache.lucene.tests.mockfile.LeakFS.onOpen(LeakFS.java:46)
at org.apache.lucene.tests.mockfile.HandleTrackingFS.callOpenHook(HandleTrackingFS.java:82)
at org.apache.lucene.tests.mockfile.HandleTrackingFS.newFileChannel(HandleTrackingFS.java:202)
at org.apache.lucene.tests.mockfile.HandleTrackingFS.newFileChannel(HandleTrackingFS.java:171)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:309)
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:369)
at org.opensearch.index.translog.transfer.FileSnapshot.<init>(FileSnapshot.java:46)
at org.opensearch.index.translog.transfer.FileSnapshot$TransferFileSnapshot.<init>(FileSnapshot.java:113)
at org.opensearch.index.translog.transfer.FileSnapshot$TranslogFileSnapshot.<init>(FileSnapshot.java:158)
at org.opensearch.index.translog.transfer.TranslogCheckpointTransferSnapshot$Builder.build(TranslogCheckpointTransferSnapshot.java:161)
at org.opensearch.index.translog.RemoteFsTranslog.upload(RemoteFsTranslog.java:338)
at org.opensearch.index.translog.RemoteFsTranslog.prepareAndUpload(RemoteFsTranslog.java:310)
at org.opensearch.index.translog.RemoteFsTranslog.sync(RemoteFsTranslog.java:365)
at org.opensearch.index.translog.InternalTranslogManager.syncTranslog(InternalTranslogManager.java:196)
at org.opensearch.index.engine.InternalEngine.syncTranslog(InternalEngine.java:610)
at org.opensearch.index.shard.IndexShard.postActivatePrimaryMode(IndexShard.java:3449)
at org.opensearch.index.shard.IndexShard.lambda$updateShardState$4(IndexShard.java:727)
at org.opensearch.index.shard.IndexShard$5.onResponse(IndexShard.java:4052)
at org.opensearch.index.shard.IndexShard$5.onResponse(IndexShard.java:4022)
at org.opensearch.index.shard.IndexShard.lambda$asyncBlockOperations$37(IndexShard.java:3973)
at org.opensearch.core.action.ActionListener$1.onResponse(ActionListener.java:82)
at org.opensearch.index.shard.IndexShardOperationPermits$1.doRun(IndexShardOperationPermits.java:157)
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:908)
at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
... 1 more
Thanks @kasundra07. The "classMethod" case shows as a failure due to a leaked file handle, but the cause of the leaked file handle is the test case within this class that failed (and therefore failed to clean up properly). In this case the failed test case is the one detailed in #11255.
Describe the bug
org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.classMethod is flaky
To Reproduce
Expected behavior
The test must always pass
Additional context
https://build.ci.opensearch.org/job/gradle-check/30101/testReport/junit/org.opensearch.remotestore/SegmentReplicationUsingRemoteStoreIT/classMethod/
The text was updated successfully, but these errors were encountered: