Skip to content

Commit

Permalink
add refresh=wait_until when create metalog
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo committed Nov 21, 2023
1 parent 6055e1a commit a0a251d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private FlintMetadataLogEntry createLogEntry(FlintMetadataLogEntry logEntry) {
new IndexRequest()
.index(metaLogIndexName)
.id(logEntryWithId.id())
.setRefreshPolicy(RefreshPolicy.WAIT_UNTIL)
.source(logEntryWithId.toJson(), XContentType.JSON),
RequestOptions.DEFAULT));
}
Expand Down

0 comments on commit a0a251d

Please sign in to comment.