Put Mapping: When using a single node and updating a mapping, it is not marked as `acknowledged`, closes #280.
This commit is contained in:
parent
e955e41a91
commit
4f407e18aa
|
@ -205,7 +205,9 @@ public class MetaDataMappingService extends AbstractComponent {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
if (expectedReplies == 0) {
|
||||
listener.onResponse(new Response(true));
|
||||
} else {
|
||||
final AtomicInteger counter = new AtomicInteger(expectedReplies);
|
||||
final Set<String> indicesSet = newHashSet(request.indices);
|
||||
final NodeMappingCreatedAction.Listener nodeMappingListener = new NodeMappingCreatedAction.Listener() {
|
||||
|
@ -227,6 +229,7 @@ public class MetaDataMappingService extends AbstractComponent {
|
|||
}
|
||||
}, request.timeout, TimerService.ExecutionType.THREADED);
|
||||
listener.timeout = timeoutTask;
|
||||
}
|
||||
|
||||
|
||||
return newClusterStateBuilder().state(currentState).metaData(builder).build();
|
||||
|
|
Loading…
Reference in New Issue