NO-JIRA Providing information about failure on test

Travis CI has been reporting test failures.
Looking on logs I could see a critical failure happening but not much information on why.
This will help identify further issues.
This commit is contained in:
Clebert Suconic 2018-04-04 13:46:40 -04:00
parent 6ec375bdbe
commit 65db317176
3 changed files with 3 additions and 2 deletions

View File

@ -187,7 +187,7 @@ public abstract class AbstractSequentialFileFactory implements SequentialFileFac
if (critialErrorListener != null) {
critialErrorListener.onIOException(exception, message, file);
} else {
logger.warn("Critical IO Error Called. No Critical IO Error Handler Registered");
logger.warn("Critical IO Error Called. No Critical IO Error Handler Registered::" + message + " at file " + file, exception);
}
}

View File

@ -114,6 +114,7 @@ public abstract class AIOTestBase extends ActiveMQTestBase {
@Override
public void onError(final int errorCode, final String errorMessage) {
new Exception("Error called:: " + errorCode + " message::" + errorMessage).printStackTrace();
errorCalled++;
if (outputList != null) {
outputList.add(order);

View File

@ -210,8 +210,8 @@ public class MultiThreadAsynchronousFileTest extends AIOTestBase {
addData(libaio, buffer, callback);
if (sync) {
waitForLatch(latchFinishThread);
assertEquals(0, callback.errorCalled);
assertTrue(callback.doneCalled);
assertFalse(callback.errorCalled != 0);
}
}
if (!sync) {