Riza Suminto has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/22561 )

Change subject: IMPALA-13546: Fix Flaky JWT Unit Tests
......................................................................

IMPALA-13546: Fix Flaky JWT Unit Tests

The JwtHttpTest unit tests sometimes fail with a
java.nio.charset.MalformedInputException. This error message is
thrown from the java.nio.charset.CharsetDecoder#decode() function
to indicate a byte sequence is not valid for a charset.

Since these tests fail intermittently, the malformed byte sequence is
most likely caused by attempting to read the log file while it is
still being written.

This patch hardens the existing limited retries when reading the
impalad.ERROR log file to also retry on exceptions.

Testing was accomplished by running the JwtHttpTest unit tests
locally.

Change-Id: I48eea2b522b1834c92a8db14a0bdd63ca8c66c93
Reviewed-on: http://gerrit.cloudera.org:8080/22561
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Riza Suminto <[email protected]>
---
M fe/src/test/java/org/apache/impala/customcluster/JwtHttpTest.java
1 file changed, 15 insertions(+), 4 deletions(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved
  Riza Suminto: Verified

--
To view, visit http://gerrit.cloudera.org:8080/22561
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I48eea2b522b1834c92a8db14a0bdd63ca8c66c93
Gerrit-Change-Number: 22561
Gerrit-PatchSet: 6
Gerrit-Owner: Jason Fehr <[email protected]>
Gerrit-Reviewer: Abhishek Rawat <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Riza Suminto <[email protected]>
Gerrit-Reviewer: gaurav singh <[email protected]>

Reply via email to