HDFS-10878. TestDFSClientRetries#testIdempotentAllocateBlockAndClose throws ConcurrentModificationException. Contributed by Rushabh S Shah.
(cherry picked from commit 382307cbdd
)
This commit is contained in:
parent
253e2442e4
commit
33cafc9fcd
|
@ -103,7 +103,6 @@ import org.mockito.internal.stubbing.answers.ThrowsException;
|
||||||
import org.mockito.invocation.InvocationOnMock;
|
import org.mockito.invocation.InvocationOnMock;
|
||||||
import org.mockito.stubbing.Answer;
|
import org.mockito.stubbing.Answer;
|
||||||
|
|
||||||
import com.google.common.base.Joiner;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* These tests make sure that DFSClient retries fetching data from DFS
|
* These tests make sure that DFSClient retries fetching data from DFS
|
||||||
|
@ -485,8 +484,7 @@ public class TestDFSClientRetries {
|
||||||
// complete() may return false a few times before it returns
|
// complete() may return false a few times before it returns
|
||||||
// true. We want to wait until it returns true, and then
|
// true. We want to wait until it returns true, and then
|
||||||
// make it retry one more time after that.
|
// make it retry one more time after that.
|
||||||
LOG.info("Called complete(: " +
|
LOG.info("Called complete:");
|
||||||
Joiner.on(",").join(invocation.getArguments()) + ")");
|
|
||||||
if (!(Boolean)invocation.callRealMethod()) {
|
if (!(Boolean)invocation.callRealMethod()) {
|
||||||
LOG.info("Complete call returned false, not faking a retry RPC");
|
LOG.info("Complete call returned false, not faking a retry RPC");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue