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

SearchableSnapshotsIntegTests.testCreateAndRestoreSearchableSnapshot failing #109225

Closed
benwtrent opened this issue May 30, 2024 · 1 comment · Fixed by #109236
Closed

SearchableSnapshotsIntegTests.testCreateAndRestoreSearchableSnapshot failing #109225

benwtrent opened this issue May 30, 2024 · 1 comment · Fixed by #109236
Assignees
Labels
:Distributed Indexing/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. low-risk An open issue or test failure that is a low risk to future releases Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test-failure Triaged test failures from CI

Comments

@benwtrent
Copy link
Member

benwtrent commented May 30, 2024

CI Link

https://gradle-enterprise.elastic.co/s/ivesuuq5fvjji

Repro line

./gradlew ':x-pack:plugin:searchable-snapshots:internalClusterTest' --tests "org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshotsIntegTests.testCreateAndRestoreSearchableSnapshot" -Dtests.seed=613FCFFF93F38F06 -Dtests.locale=es-MX -Dtests.timezone=Africa/Lagos -Druntime.java=22

Does it reproduce?

Not reliably

Applicable branches

lucene_snapshot_9_11

Failure history

No response

Failure excerpt

java.lang.AssertionError: cannot complete future on thread Thread[#199,elasticsearch[node_s2][generic][T#3],5,TGRP-SearchableSnapshotsIntegTests] with waiter on thread Thread[#316,elasticsearch[node_s2][generic][T#11],5,TGRP-SearchableSnapshotsIntegTests], could deadlock if pool was full
--
  | at java.base/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:269)
  | at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:756)
  | at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1126)
  | at org.elasticsearch.action.support.PlainActionFuture$Sync.get(PlainActionFuture.java:262)
  | at org.elasticsearch.action.support.PlainActionFuture.get(PlainActionFuture.java:74)
  | at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:65)
  | at org.elasticsearch.action.support.PlainActionFuture.actionGet(PlainActionFuture.java:171)
  | at org.elasticsearch.xpack.searchablesnapshots.cache.blob.BlobStoreCacheService.get(BlobStoreCacheService.java:126)
  | at org.elasticsearch.xpack.searchablesnapshots.store.SearchableSnapshotDirectory.getCachedBlob(SearchableSnapshotDirectory.java:673)
  | at org.elasticsearch.xpack.searchablesnapshots.store.input.MetadataCachingIndexInput.readWithBlobCache(MetadataCachingIndexInput.java:280)
  | at org.elasticsearch.xpack.searchablesnapshots.store.input.MetadataCachingIndexInput.readInternal(MetadataCachingIndexInput.java:615)
  | at org.elasticsearch.blobcache.common.BlobCacheBufferedIndexInput.refill(BlobCacheBufferedIndexInput.java:304)
  | at org.elasticsearch.blobcache.common.BlobCacheBufferedIndexInput.readByte(BlobCacheBufferedIndexInput.java:57)
  | at org.apache.lucene.store.BufferedChecksumIndexInput.readByte(BufferedChecksumIndexInput.java:39)
  | at org.apache.lucene.codecs.CodecUtil.readBEInt(CodecUtil.java:668)
  | at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:185)
  | at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:254)
  | at org.apache.lucene.codecs.lucene94.Lucene94FieldInfosFormat.read(Lucene94FieldInfosFormat.java:138)
  | at org.apache.lucene.index.IndexWriter.readFieldInfos(IndexWriter.java:1259)
  | at org.apache.lucene.index.IndexWriter.getFieldNumberMap(IndexWriter.java:1278)
  | at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1125)
  | at org.elasticsearch.index.store.Store.newTemporaryAppendingIndexWriter(Store.java:1546)
  | at org.elasticsearch.index.store.Store.associateIndexWithNewTranslog(Store.java:1452)
  | at org.elasticsearch.index.shard.StoreRecovery.bootstrap(StoreRecovery.java:620)
  | at org.elasticsearch.index.shard.StoreRecovery.lambda$restore$17(StoreRecovery.java:586)
  | at org.elasticsearch.action.ActionListenerImplementations$ResponseWrappingActionListener.onResponse(ActionListenerImplementations.java:245)
  | at org.elasticsearch.action.support.SubscribableListener$SuccessResult.complete(SubscribableListener.java:382)
  | at org.elasticsearch.action.support.SubscribableListener.tryComplete(SubscribableListener.java:302)
  | at org.elasticsearch.action.support.SubscribableListener.addListener(SubscribableListener.java:205)
  | at org.elasticsearch.action.support.SubscribableListener.lambda$andThen$0(SubscribableListener.java:469)
  | at org.elasticsearch.action.ActionListener.run(ActionListener.java:433)
  | at org.elasticsearch.action.support.SubscribableListener.newForked(SubscribableListener.java:128)
  | at org.elasticsearch.action.support.SubscribableListener.andThen(SubscribableListener.java:469)
  | at org.elasticsearch.action.support.SubscribableListener.andThen(SubscribableListener.java:433)
  | at org.elasticsearch.index.shard.StoreRecovery.restore(StoreRecovery.java:583)
  | at org.elasticsearch.index.shard.StoreRecovery.recoverFromRepository(StoreRecovery.java:312)
  | at org.elasticsearch.index.shard.IndexShard.restoreFromRepository(IndexShard.java:2481)
  | at org.elasticsearch.index.shard.IndexShard.lambda$startRecovery$32(IndexShard.java:3268)
  | at org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:100)
  | at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:984)
  | at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
  | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
  | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
  | at java.base/java.lang.Thread.run(Thread.java:1570)
@benwtrent benwtrent added >test-failure Triaged test failures from CI :Distributed Indexing/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. labels May 30, 2024
@elasticsearchmachine elasticsearchmachine added Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. needs:risk Requires assignment of a risk label (low, medium, blocker) labels May 30, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@henningandersen henningandersen added low-risk An open issue or test failure that is a low risk to future releases and removed needs:risk Requires assignment of a risk label (low, medium, blocker) labels May 31, 2024
henningandersen added a commit to henningandersen/elasticsearch that referenced this issue May 31, 2024
Now use the executor declared by the handler rather than generic, since using
generic is trappy wrt. deadlocks.

Closes elastic#109225
@henningandersen henningandersen self-assigned this May 31, 2024
henningandersen added a commit that referenced this issue Jun 1, 2024
)

Now use the executor declared by the handler rather than generic, since using
generic is trappy wrt. deadlocks.

Closes #109225
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. low-risk An open issue or test failure that is a low risk to future releases Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants