mirror of https://github.com/apache/druid.git
Merge branch 'master' of github.com:metamx/druid
This commit is contained in:
commit
0f3c474dee
|
@ -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