Skip to content

Commit 73456b3

Browse files
fix ingestion pause state initialization on replica promotion
Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>
1 parent a033cd1 commit 73456b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/opensearch/indices/pollingingest/DefaultStreamPoller.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ private DefaultStreamPoller(
157157
this.errorStrategy = errorStrategy;
158158
this.indexName = indexSettings.getIndex().getName();
159159

160+
// handle initial poller states
161+
this.paused = initialState == State.PAUSED;
160162
}
161163

162164
@Override

0 commit comments

Comments
 (0)