mirror of https://github.com/apache/druid.git
parent
935b642b2c
commit
b74845e942
|
@ -194,17 +194,4 @@ public class HashBasedNumberedShardSpecTest
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testValidity()
|
|
||||||
{
|
|
||||||
for (int i = Integer.MIN_VALUE; i < Integer.MAX_VALUE; i++) {
|
|
||||||
{
|
|
||||||
int partitionNum = Math.abs((int) ((long) i % 2));
|
|
||||||
if (partitionNum != 0 && partitionNum != 1) {
|
|
||||||
throw new ISE("for i " + i + "partitionNum " + partitionNum);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue