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

[CI] testSyncerOnClosingShard fails with soft-deletes #33330

Closed
dnhatn opened this issue Sep 1, 2018 · 1 comment
Closed

[CI] testSyncerOnClosingShard fails with soft-deletes #33330

dnhatn opened this issue Sep 1, 2018 · 1 comment
Assignees
Labels
:Distributed/Engine Anything around managing Lucene and the Translog in an open shard. >test-failure Triaged test failures from CI

Comments

@dnhatn
Copy link
Member

dnhatn commented Sep 1, 2018

Acquiring a searcher on a closing shard should not throw an IllegalStateException.

ERROR   0.09s J0 | PrimaryReplicaSyncerTests.testSyncerOnClosingShard <<< FAILURES!
   > Throwable #1: java.lang.IllegalStateException: store is already closed can't increment refCount current count [0]
   > 	at __randomizedtesting.SeedInfo.seed([DEF0367146BEAE7F:F882A03DC173841A]:0)
   > 	at org.elasticsearch.common.util.concurrent.AbstractRefCounted.alreadyClosed(AbstractRefCounted.java:69)
   > 	at org.elasticsearch.common.util.concurrent.AbstractRefCounted.incRef(AbstractRefCounted.java:40)
   > 	at org.elasticsearch.index.store.Store.incRef(Store.java:384)
   > 	at org.elasticsearch.index.engine.InternalEngine.acquireSearcher(InternalEngine.java:2000)
   > 	at org.elasticsearch.index.engine.InternalEngine.newChangesSnapshot(InternalEngine.java:2433)
   > 	at org.elasticsearch.index.engine.InternalEngine.readHistoryOperations(InternalEngine.java:490)
   > 	at org.elasticsearch.index.shard.IndexShard.getHistoryOperations(IndexShard.java:1643)
   > 	at org.elasticsearch.index.shard.PrimaryReplicaSyncer.resync(PrimaryReplicaSyncer.java:92)

Reproduce command:

./gradlew :server:test \
  -Dtests.seed=DEF0367146BEAE7F \
  -Dtests.class=org.elasticsearch.index.shard.PrimaryReplicaSyncerTests \
  -Dtests.method="testSyncerOnClosingShard" \
  -Dtests.security.manager=true \
  -Dtests.locale=zh-CN \
  -Dtests.timezone=Africa/Cairo \
  -Dcompiler.java=10 \
  -Druntime.java=8

CI instances:

@dnhatn dnhatn added >test-failure Triaged test failures from CI :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. labels Sep 1, 2018
@dnhatn dnhatn self-assigned this Sep 1, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Engine Anything around managing Lucene and the Translog in an open shard. >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

2 participants