Skip to content

Commit

Permalink
Fix for updating version numbers for deprecation messages (SyncedFlus…
Browse files Browse the repository at this point in the history
…hService) (#6918) (#6936)

Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta authored Apr 3, 2023
1 parent 7ee9ca1 commit 9498b4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ public void testSyncedFlushIndex() throws Exception {

// tag::flush-synced-execute
SyncedFlushResponse flushSyncedResponse = client.indices().flushSynced(request, expectWarnings(
"Synced flush is deprecated and will be removed in 8.0. Use flush at _/flush or /{index}/_flush instead."
"Synced flush is deprecated and will be removed in 3.0. Use flush at _/flush or /{index}/_flush instead."
));
// end::flush-synced-execute

Expand Down Expand Up @@ -1079,7 +1079,7 @@ public void onFailure(Exception e) {

// tag::flush-synced-execute-async
client.indices().flushSyncedAsync(request, expectWarnings(
"Synced flush is deprecated and will be removed in 8.0. Use flush at _/flush or /{index}/_flush instead."
"Synced flush is deprecated and will be removed in 3.0. Use flush at _/flush or /{index}/_flush instead."
), listener); // <1>
// end::flush-synced-execute-async

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
wait_for_status: green
- do:
allowed_warnings:
- Synced flush is deprecated and will be removed in 8.0. Use flush at _/flush or /{index}/_flush instead.
- Synced flush is deprecated and will be removed in 3.0. Use flush at _/flush or /{index}/_flush instead.
indices.flush_synced:
index: testing

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class SyncedFlushService implements IndexEventListener {
private static final DeprecationLogger DEPRECATION_LOGGER = DeprecationLogger.getLogger(logger.getName());

public static final String SYNCED_FLUSH_DEPRECATION_MESSAGE =
"Synced flush is deprecated and will be removed in 8.0. Use flush at _/flush or /{index}/_flush instead.";
"Synced flush is deprecated and will be removed in 3.0. Use flush at _/flush or /{index}/_flush instead.";

private static final String PRE_SYNCED_FLUSH_ACTION_NAME = "internal:indices/flush/synced/pre";
private static final String SYNCED_FLUSH_ACTION_NAME = "internal:indices/flush/synced/sync";
Expand Down

0 comments on commit 9498b4c

Please sign in to comment.