This closes #1991
This commit is contained in:
commit
2feacd5d5d
|
@ -187,7 +187,7 @@ public abstract class AbstractSequentialFileFactory implements SequentialFileFac
|
||||||
if (critialErrorListener != null) {
|
if (critialErrorListener != null) {
|
||||||
critialErrorListener.onIOException(exception, message, file);
|
critialErrorListener.onIOException(exception, message, file);
|
||||||
} else {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,7 @@ public abstract class AIOTestBase extends ActiveMQTestBase {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(final int errorCode, final String errorMessage) {
|
public void onError(final int errorCode, final String errorMessage) {
|
||||||
|
new Exception("Error called:: " + errorCode + " message::" + errorMessage).printStackTrace();
|
||||||
errorCalled++;
|
errorCalled++;
|
||||||
if (outputList != null) {
|
if (outputList != null) {
|
||||||
outputList.add(order);
|
outputList.add(order);
|
||||||
|
|
|
@ -210,8 +210,8 @@ public class MultiThreadAsynchronousFileTest extends AIOTestBase {
|
||||||
addData(libaio, buffer, callback);
|
addData(libaio, buffer, callback);
|
||||||
if (sync) {
|
if (sync) {
|
||||||
waitForLatch(latchFinishThread);
|
waitForLatch(latchFinishThread);
|
||||||
|
assertEquals(0, callback.errorCalled);
|
||||||
assertTrue(callback.doneCalled);
|
assertTrue(callback.doneCalled);
|
||||||
assertFalse(callback.errorCalled != 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!sync) {
|
if (!sync) {
|
||||||
|
|
Loading…
Reference in New Issue