rjvkr2021 commented on code in PR #3844:
URL: https://github.com/apache/celeborn/pull/3844#discussion_r3970932526
##########
client/src/main/java/org/apache/celeborn/client/write/DataPusher.java:
##########
@@ -153,8 +164,18 @@ public void run() {
public void addTask(int partitionId, byte[] buffer, int size)
throws IOException, InterruptedException {
- client.computeBatchCRC(shuffleId, mapId, attemptId, partitionId, buffer,
0, size);
+ lifecycleLock.lockInterruptibly();
try {
+ if (lifecycleState != LifecycleState.RUNNING) {
+ throw new IOException("DataPusher is closing or terminated");
Review Comment:
updated the exception message accordingly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]