Skip to content

Commit

Permalink
Java Api clean up: remove deprecated isShardsAcked (#28311)
Browse files Browse the repository at this point in the history
This PR removes previously deprecated `isShardsAcked()` method in
favour of `isShardsAcknowledged()` on `CreateIndexResponse`, `CreateIndexClusterStateUpdateResponse` and `RolloverResponse` 

Related to #27784
Follow-up of #27819
  • Loading branch information
olcbean authored and Christoph Büscher committed Jan 25, 2018
1 parent 261fb6a commit 0c83240
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 31 deletions.
2 changes: 2 additions & 0 deletions docs/reference/migration/migrate_7_0.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Elasticsearch 6.x in order to be readable by Elasticsearch 7.x.
* <<breaking_70_plugins_changes>>
* <<breaking_70_analysis_changes>>
* <<breaking_70_api_changes>>
* <<breaking_70_java_changes>>


include::migrate_7_0/aggregations.asciidoc[]
Expand All @@ -41,3 +42,4 @@ include::migrate_7_0/mappings.asciidoc[]
include::migrate_7_0/search.asciidoc[]
include::migrate_7_0/plugins.asciidoc[]
include::migrate_7_0/api.asciidoc[]
include::migrate_7_0/java.asciidoc[]
8 changes: 8 additions & 0 deletions docs/reference/migration/migrate_7_0/java.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[[breaking_70_java_changes]]
=== Java API changes

==== `isShardsAcked` deprecated in `6.2` has been removed

`isShardsAcked` has been replaced by `isShardsAcknowledged` in
`CreateIndexResponse`, `RolloverResponse` and
`CreateIndexClusterStateUpdateResponse`.
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,6 @@ public void writeTo(StreamOutput out) throws IOException {
}
}

/**
* Returns true if the requisite number of shards were started before
* returning from the index creation operation. If {@link #isAcknowledged()}
* is false, then this also returns false.
*
* @deprecated use {@link #isShardsAcknowledged()}
*/
@Deprecated
public boolean isShardsAcked() {
return shardsAcknowledged;
}

/**
* Returns true if the requisite number of shards were started before
* returning from the index creation operation. If {@link #isAcknowledged()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,6 @@ public boolean isAcknowledged() {
return acknowledged;
}

/**
* Returns true if the requisite number of shards were started in the newly
* created rollover index before returning. If {@link #isAcknowledged()} is
* false, then this will also return false.
*
* @deprecated use {@link #isShardsAcknowledged()}
*/
@Deprecated
public boolean isShardsAcked() {
return shardsAcknowledged;
}

/**
* Returns true if the requisite number of shards were started in the newly
* created rollover index before returning. If {@link #isAcknowledged()} is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,7 @@ public CreateIndexClusterStateUpdateResponse(boolean acknowledged, boolean shard

/**
* Returns whether the requisite number of shard copies started before the completion of the operation.
*
* @deprecated use {@link #isShardsAcknowledged()}
*/
@Deprecated
public boolean isShardsAcked() {
return shardsAcknowledged;
}

public boolean isShardsAcknowledged() {
return shardsAcknowledged;
}
Expand Down

0 comments on commit 0c83240

Please sign in to comment.