sohami closed pull request #1499: DRILL-6788: Intermittent unit test failure
TestDrillbitResilience.fai…
URL: https://github.com/apache/drill/pull/1499
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/exec/java-exec/src/test/java/org/apache/drill/exec/server/TestDrillbitResilience.java
b/exec/java-exec/src/test/java/org/apache/drill/exec/server/TestDrillbitResilience.java
index 9f772e4d81b..c3238cafee0 100644
---
a/exec/java-exec/src/test/java/org/apache/drill/exec/server/TestDrillbitResilience.java
+++
b/exec/java-exec/src/test/java/org/apache/drill/exec/server/TestDrillbitResilience.java
@@ -742,8 +742,10 @@ public void failsWhenParsing() {
final String exceptionDesc = "sql-parsing";
final Class<? extends Throwable> exceptionClass =
ForemanSetupException.class;
+ // Inject the failure twice since there can be retry after first failure
introduced in DRILL-6762. Retry is because
+ // of version mismatch in local and remote function registry which syncs
up lazily.
final String controls = Controls.newBuilder()
- .addException(DrillSqlWorker.class, exceptionDesc, exceptionClass)
+ .addException(DrillSqlWorker.class, exceptionDesc, exceptionClass, 0, 2)
.build();
assertFailsWithException(controls, exceptionClass, exceptionDesc);
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services