Skip to content

Commit 0c32473

Browse files
committed
fixing stupid exponent mistake
1 parent 00e39fe commit 0c32473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamIndexTransportAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public class ReindexDataStreamIndexTransportAction extends HandledTransportActio
128128
* the unit test doesn't fail if it rolls over Integer.MAX_VALUE (since the node selected is the same for Integer.MAX_VALUE and
129129
* Integer.MAX_VALUE + 1).
130130
*/
131-
private final AtomicInteger ingestNodeOffsetGenerator = new AtomicInteger(Randomness.get().nextInt(2 ^ 30));
131+
private final AtomicInteger ingestNodeOffsetGenerator = new AtomicInteger(Randomness.get().nextInt((int) Math.pow(2, 30)));
132132
/*
133133
* This maps nodeId to a semaphore for that node, controlling the number of concurrent reindex requests we send to that node.
134134
*/

0 commit comments

Comments
 (0)