mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Delete API: Using refresh parameter might not refresh delete operation on replica, closes #1047.
This commit is contained in:
parent
3e9dff8b7e
commit
5540fbf7ab
@ -175,6 +175,8 @@ public class TransportDeleteAction extends TransportShardReplicationOperationAct
|
||||
Engine.Delete delete = indexShard.prepareDelete(request.type(), request.id(), request.version())
|
||||
.origin(Engine.Operation.Origin.REPLICA);
|
||||
|
||||
indexShard.delete(delete);
|
||||
|
||||
if (request.refresh()) {
|
||||
try {
|
||||
indexShard.refresh(new Engine.Refresh(false));
|
||||
@ -183,7 +185,6 @@ public class TransportDeleteAction extends TransportShardReplicationOperationAct
|
||||
}
|
||||
}
|
||||
|
||||
indexShard.delete(delete);
|
||||
}
|
||||
|
||||
@Override protected ShardIterator shards(ClusterState clusterState, DeleteRequest request) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user