Skip to content

Commit

Permalink
Using a string rather than the Version class
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Nov 10, 2023
1 parent 23ee476 commit 5335953
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.Version;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionResponse;
Expand Down Expand Up @@ -279,7 +278,7 @@ public class Watcher extends Plugin implements SystemIndexPlugin, ScriptPlugin,
* tries to parse <code>version</code> from index metadata, and that will indicate
* to these old nodes that the mappings are newer than they are.
*/
private static final String LEGACY_VERSION_FIELD_VALUE = Version.V_8_12_0.toString();
private static final String LEGACY_VERSION_FIELD_VALUE = "8.12.0";
private WatcherIndexingListener listener;
private HttpClient httpClient;
private BulkProcessor2 bulkProcessor;
Expand Down

0 comments on commit 5335953

Please sign in to comment.