Skip to content

Commit 4298ead

Browse files
arteamtlrx
andauthored
Update x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/full/CacheService.java
Co-authored-by: Tanguy Leroux <[email protected]>
1 parent f3b9d7a commit 4298ead

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/full

1 file changed

+1
-1
lines changed

x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/full/CacheService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private void ensureLifecycleStarted() {
246246
assert state != Lifecycle.State.INITIALIZED : state;
247247
if (state != Lifecycle.State.STARTED) {
248248
if (state == Lifecycle.State.STOPPED || state == Lifecycle.State.CLOSED) {
249-
throw new AlreadyClosedException("Failed to read data from cache: cache service is stopped");
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
}

0 commit comments

Comments
 (0)