[CELEBORN-2127] When fileWriter is closed, it should return HARD_SPLIT StatusCode
…T StatusCode ### What changes were proposed in this pull request? When fileWriter is closed, it should return HARD_SPLIT StatusCode ### Why are the changes needed? When fileWriter is closed, it should return HARD_SPLIT StatusCode ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? CI Closes #3448 from xy2953396112/CELEBORN-2127. Authored-by: xxx <953396112@qq.com> Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
This commit is contained in:
parent
750aeefbc6
commit
449cb5d588
@ -265,7 +265,7 @@ class PushDataHandler(val workerSource: WorkerSource) extends BaseMessageHandler
|
||||
logWarning(
|
||||
s"[handlePushData] FileWriter is already closed! File path ${fileInfo.getFilePath} " +
|
||||
s"length ${fileInfo.getFileLength}")
|
||||
callbackWithTimer.onFailure(new CelebornIOException("File already closed!"))
|
||||
callbackWithTimer.onSuccess(ByteBuffer.wrap(Array[Byte](StatusCode.HARD_SPLIT.getValue)))
|
||||
fileWriter.decrementPendingWrites()
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user