Skip to content

Commit 1a35275

Browse files
committed
Fixed hang when submitting mappings and no changes are made
Added missing listener call before return Closes elastic#3381
1 parent bd466fe commit 1a35275

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/elasticsearch/cluster/metadata/MetaDataMappingService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,8 @@ public ClusterState execute(final ClusterState currentState) throws Exception {
452452
}
453453

454454
if (mappings.isEmpty()) {
455+
// no changes, return
456+
listener.onResponse(new Response(true));
455457
return currentState;
456458
}
457459

0 commit comments

Comments
 (0)