This commit is contained in:
Clebert Suconic 2018-04-04 17:07:17 -04:00
commit 2feacd5d5d
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) {