MAPREDUCE-6261. NullPointerException if MapOutputBuffer.flush invoked twice. Contributed by Tsuyoshi OZAWA
This commit is contained in:
parent
1714609919
commit
4981d082d4
@ -379,6 +379,9 @@ Release 2.7.0 - UNRELEASED
|
|||||||
MAPREDUCE-4286. TestClientProtocolProviderImpls passes on failure
|
MAPREDUCE-4286. TestClientProtocolProviderImpls passes on failure
|
||||||
conditions. (Devaraj K via ozawa)
|
conditions. (Devaraj K via ozawa)
|
||||||
|
|
||||||
|
MAPREDUCE-6261. NullPointerException if MapOutputBuffer.flush invoked
|
||||||
|
twice (Tsuyoshi OZAWA via jlowe)
|
||||||
|
|
||||||
Release 2.6.1 - UNRELEASED
|
Release 2.6.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -1458,6 +1458,10 @@ public void write(byte b[], int off, int len)
|
|||||||
public void flush() throws IOException, ClassNotFoundException,
|
public void flush() throws IOException, ClassNotFoundException,
|
||||||
InterruptedException {
|
InterruptedException {
|
||||||
LOG.info("Starting flush of map output");
|
LOG.info("Starting flush of map output");
|
||||||
|
if (kvbuffer == null) {
|
||||||
|
LOG.info("kvbuffer is null. Skipping flush.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
spillLock.lock();
|
spillLock.lock();
|
||||||
try {
|
try {
|
||||||
while (spillInProgress) {
|
while (spillInProgress) {
|
||||||
|
Loading…
Reference in New Issue
Block a user