Skip to content

Commit 923511d

Browse files
committed
Comments
1 parent 77f9734 commit 923511d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

server/src/main/java/org/elasticsearch/cluster/action/shard/ShardStateAction.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,10 @@ public record FailedShardUpdateTask(FailedShardEntry entry, ActionListener<Trans
538538
ClusterStateTaskListener,
539539
ActionListener<ClusterState> {
540540

541+
/**
542+
* This task is re-used as its own publication listener, so this method is called when it has been executed and the resulting
543+
* publication completed successfully.
544+
*/
541545
@Override
542546
public void onResponse(ClusterState clusterState) {
543547
listener.onResponse(TransportResponse.Empty.INSTANCE);
@@ -852,6 +856,10 @@ public StartedShardEntry getEntry() {
852856
return entry;
853857
}
854858

859+
/**
860+
* This task is re-used as its own publication listener, so this method is called when it has been executed and the resulting
861+
* publication completed successfully.
862+
*/
855863
@Override
856864
public void onResponse(ClusterState clusterState) {
857865
listener.onResponse(TransportResponse.Empty.INSTANCE);

0 commit comments

Comments
 (0)