File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/full Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -315,9 +315,6 @@ tests:
315315- class : org.elasticsearch.xpack.autoscaling.storage.ReactiveStorageIT
316316 method : testScaleWhileShrinking
317317 issue : https://github.com/elastic/elasticsearch/issues/122119
318- - class : org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests
319- method : testCreateAndRestorePartialSearchableSnapshot
320- issue : https://github.com/elastic/elasticsearch/issues/122693
321318- class : org.elasticsearch.search.basic.SearchWithRandomDisconnectsIT
322319 method : testSearchWithRandomDisconnects
323320 issue : https://github.com/elastic/elasticsearch/issues/122707
Original file line number Diff line number Diff line change @@ -245,8 +245,8 @@ private void ensureLifecycleStarted() {
245245 final Lifecycle .State state = lifecycleState ();
246246 assert state != Lifecycle .State .INITIALIZED : state ;
247247 if (state != Lifecycle .State .STARTED ) {
248- if (state == Lifecycle .State .STOPPED ) {
249- throw new AlreadyClosedException ("Failed to read data from cache: cache service is stopped" );
248+ if (state == Lifecycle .State .STOPPED || state == Lifecycle . State . CLOSED ) {
249+ throw new AlreadyClosedException ("Failed to read data from cache: cache service is [" + state + ']' );
250250 } else {
251251 throw new IllegalStateException ("Failed to read data from cache: cache service is not started [" + state + "]" );
252252 }
You can’t perform that action at this time.
0 commit comments