Skip to content

Commit

Permalink
newReplicaRole
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed Jul 12, 2023
1 parent 3e957cf commit 52b0c45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ public ShardRouting.Role newEmptyRole(int copyIndex) {

@Override
public ShardRouting.Role newReplicaRole() {
return ShardRouting.Role.DEFAULT;
throw new AssertionError("should not be called");
}
}).addAsNew(metadata.index("test")).build())
.nodes(DiscoveryNodes.builder().add(node))
Expand Down

0 comments on commit 52b0c45

Please sign in to comment.