Skip to content

Commit 0ca0c78

Browse files
committed
Throw UnsupportedOperationExceptions for getLastUnsafeSegmentGenerationForGets
1 parent 195f5fb commit 0ca0c78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/src/main/java/org/elasticsearch/index/engine/Engine.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2346,4 +2346,8 @@ public record FlushResult(boolean flushPerformed, long generation) {
23462346
public void prepareForEngineReset() throws IOException {
23472347
throw new UnsupportedOperationException("does not support engine reset");
23482348
}
2349+
2350+
public long getLastUnsafeSegmentGenerationForGets() {
2351+
throw new UnsupportedOperationException("Doesn't support getting the latest segment generation");
2352+
}
23492353
}

server/src/main/java/org/elasticsearch/index/engine/ReadOnlyEngine.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,4 @@ public String getSearcherId() {
636636
public final String getCommitId() {
637637
return commitId;
638638
}
639-
640-
public long getLastUnsafeSegmentGenerationForGets() {
641-
return -1;
642-
}
643639
}

0 commit comments

Comments
 (0)