diff --git a/client/rest-high-level/src/test/java/org/opensearch/client/documentation/IndicesClientDocumentationIT.java b/client/rest-high-level/src/test/java/org/opensearch/client/documentation/IndicesClientDocumentationIT.java index ad2b0d1e603bb..ad35f2968fbd7 100644 --- a/client/rest-high-level/src/test/java/org/opensearch/client/documentation/IndicesClientDocumentationIT.java +++ b/client/rest-high-level/src/test/java/org/opensearch/client/documentation/IndicesClientDocumentationIT.java @@ -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 @@ -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 diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.flush/10_basic.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.flush/10_basic.yml index 781d133153605..ecd4406f596a5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.flush/10_basic.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.flush/10_basic.yml @@ -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 diff --git a/server/src/main/java/org/opensearch/indices/flush/SyncedFlushService.java b/server/src/main/java/org/opensearch/indices/flush/SyncedFlushService.java index 1b9a3f6f97440..d1192d728d325 100644 --- a/server/src/main/java/org/opensearch/indices/flush/SyncedFlushService.java +++ b/server/src/main/java/org/opensearch/indices/flush/SyncedFlushService.java @@ -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";