Skip to content

Commit b58d82f

Browse files
committed
Remove obsolete flag in ShardStateAction$ShardRoutingEntry
1 parent 928d53a commit b58d82f

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public BatchResult<ShardRoutingEntry> execute(ClusterState currentState, List<Sh
151151
BatchResult.Builder<ShardRoutingEntry> batchResultBuilder = BatchResult.builder();
152152
List<FailedRerouteAllocation.FailedShard> shardRoutingsToBeApplied = new ArrayList<>(tasks.size());
153153
for (ShardRoutingEntry task : tasks) {
154-
task.processed = true;
155154
shardRoutingsToBeApplied.add(new FailedRerouteAllocation.FailedShard(task.shardRouting, task.message, task.failure));
156155
}
157156
ClusterState maybeUpdatedState = currentState;
@@ -201,7 +200,6 @@ public BatchResult<ShardRoutingEntry> execute(ClusterState currentState, List<Sh
201200
BatchResult.Builder<ShardRoutingEntry> builder = BatchResult.builder();
202201
List<ShardRouting> shardRoutingsToBeApplied = new ArrayList<>(tasks.size());
203202
for (ShardRoutingEntry task : tasks) {
204-
task.processed = true;
205203
shardRoutingsToBeApplied.add(task.shardRouting);
206204
}
207205
ClusterState maybeUpdatedState = currentState;
@@ -250,8 +248,6 @@ public static class ShardRoutingEntry extends TransportRequest {
250248
String message;
251249
Throwable failure;
252250

253-
volatile boolean processed; // state field, no need to serialize
254-
255251
public ShardRoutingEntry() {
256252
}
257253

0 commit comments

Comments
 (0)