From ee84160007304f64ec9217c01ac6f119202b1c46 Mon Sep 17 00:00:00 2001 From: Torgeir Thoresen Date: Wed, 16 Jan 2019 09:52:50 +0100 Subject: [PATCH] Improve stale/wrong docstrings concering abortOnVersionConflict --- .../index/reindex/AbstractBulkByScrollRequest.java | 4 ++-- .../index/reindex/AbstractBulkByScrollRequestBuilder.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/index/reindex/AbstractBulkByScrollRequest.java b/server/src/main/java/org/elasticsearch/index/reindex/AbstractBulkByScrollRequest.java index 4aa9bc5ce146c..265ef1cbf481a 100644 --- a/server/src/main/java/org/elasticsearch/index/reindex/AbstractBulkByScrollRequest.java +++ b/server/src/main/java/org/elasticsearch/index/reindex/AbstractBulkByScrollRequest.java @@ -185,14 +185,14 @@ public Self setSize(int size) { } /** - * Should version conflicts cause aborts? Defaults to false. + * Whether or not version conflicts cause the action to abort. */ public boolean isAbortOnVersionConflict() { return abortOnVersionConflict; } /** - * Should version conflicts cause aborts? Defaults to false. + * Set whether or not version conflicts cause the action to abort. */ public Self setAbortOnVersionConflict(boolean abortOnVersionConflict) { this.abortOnVersionConflict = abortOnVersionConflict; diff --git a/server/src/main/java/org/elasticsearch/index/reindex/AbstractBulkByScrollRequestBuilder.java b/server/src/main/java/org/elasticsearch/index/reindex/AbstractBulkByScrollRequestBuilder.java index 227814e24302e..a14ef850c5079 100644 --- a/server/src/main/java/org/elasticsearch/index/reindex/AbstractBulkByScrollRequestBuilder.java +++ b/server/src/main/java/org/elasticsearch/index/reindex/AbstractBulkByScrollRequestBuilder.java @@ -75,7 +75,7 @@ public Self size(int size) { } /** - * Should we version conflicts cause the action to abort? + * Set whether or not version conflicts cause the action to abort. */ public Self abortOnVersionConflict(boolean abortOnVersionConflict) { request.setAbortOnVersionConflict(abortOnVersionConflict);