mirror of https://github.com/apache/druid.git
Soften concurrency requirements on IncrementalIndexTest
This commit is contained in:
parent
e48f6dd660
commit
df4c2bab10
|
@ -376,13 +376,13 @@ public class IncrementalIndexTest
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
final Integer ranCount = someoneRan.get();
|
final Integer maxValueExpected = someoneRan.get() + concurrentThreads;
|
||||||
if (ranCount > 0) {
|
if (maxValueExpected > 0) {
|
||||||
// Eventually consistent, but should be somewhere in that range
|
// Eventually consistent, but should be somewhere in that range
|
||||||
// Actual result is validated after all writes are guaranteed done.
|
// Actual result is validated after all writes are guaranteed done.
|
||||||
Assert.assertTrue(
|
Assert.assertTrue(
|
||||||
String.format("%d >= %g >= 0 violated", ranCount, result),
|
String.format("%d >= %g >= 0 violated", maxValueExpected, result),
|
||||||
result >= 0 && result <= ranCount
|
result >= 0 && result <= maxValueExpected
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue