Skip to content

Commit 619efea

Browse files
committed
Routing: When specify in the mapping _routing required, a delete without explicit routing value should automatically be broadcasted to all shards, closes elastic#522.
1 parent a04d8ec commit 619efea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/action/delete/TransportDeleteAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ private void innerExecute(final DeleteRequest request, final ActionListener<Dele
9797
if (request.routing() == null) {
9898
indexDeleteAction.execute(new IndexDeleteRequest(request), new ActionListener<IndexDeleteResponse>() {
9999
@Override public void onResponse(IndexDeleteResponse indexDeleteResponse) {
100+
// TODO what do we do with specific failed shards?
100101
listener.onResponse(new DeleteResponse(request.index(), request.type(), request.id()));
101102
}
102103

0 commit comments

Comments
 (0)