You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "AngersZhuuuu (via GitHub)" <gi...@apache.org> on 2025/03/25 08:30:01 UTC
[PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should support compatibility of old worker success rpc no response body [celeborn]
AngersZhuuuu opened a new pull request, #3171:
URL: https://github.com/apache/celeborn/pull/3171
### What changes were proposed in this pull request?
Workers that do not incorporate changes from [CELEBORN-1721] will respond with a status of empty response.
For backward compatibility, we should keep logic of check response remaining.
### Why are the changes needed?
For backward compatibility.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should support compatibility of old worker success rpc no response body [celeborn]
Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on code in PR #3171:
URL: https://github.com/apache/celeborn/pull/3171#discussion_r2011566235
##########
client/src/main/java/org/apache/celeborn/client/ShuffleClientImpl.java:
##########
@@ -1490,135 +1490,143 @@ public void onFailure(Throwable e) {
new RpcResponseCallback() {
@Override
public void onSuccess(ByteBuffer response) {
- byte reason = response.get();
- if (reason == StatusCode.HARD_SPLIT.getValue()) {
- ArrayList<DataBatches.DataBatch> batchesNeedResubmit;
- if (response.remaining() > 0) {
- batchesNeedResubmit = new ArrayList<>();
- PbPushMergedDataSplitPartitionInfo partitionInfo;
- try {
- partitionInfo = TransportMessage.fromByteBuffer(response).getParsedPayload();
- } catch (CelebornIOException | InvalidProtocolBufferException e) {
- callback.onFailure(
- new CelebornIOException("parse pushMergedData response failed", e));
- return;
+ if (response.remaining() > 0) {
+ byte reason = response.get();
+ if (reason == StatusCode.HARD_SPLIT.getValue()) {
+ ArrayList<DataBatches.DataBatch> batchesNeedResubmit;
+ if (response.remaining() > 0) {
+ batchesNeedResubmit = new ArrayList<>();
+ PbPushMergedDataSplitPartitionInfo partitionInfo;
+ try {
+ partitionInfo = TransportMessage.fromByteBuffer(response).getParsedPayload();
+ } catch (CelebornIOException | InvalidProtocolBufferException e) {
+ callback.onFailure(
+ new CelebornIOException("parse pushMergedData response failed", e));
+ return;
+ }
+ List<Integer> splitPartitionIndexes = partitionInfo.getSplitPartitionIndexesList();
+ List<Integer> statusCodeList = partitionInfo.getStatusCodesList();
+ StringBuilder dataBatchReviveInfos = new StringBuilder();
+ for (int i = 0; i < splitPartitionIndexes.size(); i++) {
+ int partitionIndex = splitPartitionIndexes.get(i);
+ int batchId = batches.get(partitionIndex).batchId;
+ dataBatchReviveInfos.append(
+ String.format(
+ "(batchId=%d, partitionId=%d, cause=%s)",
+ batchId,
+ partitionIds[partitionIndex],
+ StatusCode.fromValue(statusCodeList.get(i).byteValue())));
+ if (statusCodeList.get(i) == StatusCode.SOFT_SPLIT.getValue()) {
+ PartitionLocation loc = batches.get(partitionIndex).loc;
+ if (!newerPartitionLocationExists(
+ reducePartitionMap.get(shuffleId), loc.getId(), loc.getEpoch(), false)) {
+ ReviveRequest reviveRequest =
+ new ReviveRequest(
+ shuffleId,
+ mapId,
+ attemptId,
+ loc.getId(),
+ loc.getEpoch(),
+ loc,
+ StatusCode.SOFT_SPLIT);
+ reviveManager.addRequest(reviveRequest);
+ }
+ } else {
+ batchesNeedResubmit.add(batches.get(partitionIndex));
+ }
+ }
+ logger.info(
+ "Push merged data to {} partial success required for shuffle {} map {} attempt {} groupedBatch {}. split batches {}.",
+ addressPair,
+ shuffleId,
+ mapId,
+ attemptId,
+ groupedBatchId,
+ dataBatchReviveInfos);
+ } else {
+ // Workers that do not incorporate changes from [CELEBORN-1721]
+ // will respond with a status of HARD_SPLIT,
+ // but will not include a PbPushMergedDataSplitPartitionInfo.
+ // For backward compatibility, all batches must be resubmitted.
+ batchesNeedResubmit = batches;
+ logger.info(
+ "Push merged data to {} hard split required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
+ addressPair,
+ shuffleId,
+ mapId,
+ attemptId,
+ Arrays.toString(partitionIds),
+ groupedBatchId,
+ Arrays.toString(batchIds));
}
- List<Integer> splitPartitionIndexes = partitionInfo.getSplitPartitionIndexesList();
- List<Integer> statusCodeList = partitionInfo.getStatusCodesList();
- StringBuilder dataBatchReviveInfos = new StringBuilder();
- for (int i = 0; i < splitPartitionIndexes.size(); i++) {
- int partitionIndex = splitPartitionIndexes.get(i);
- int batchId = batches.get(partitionIndex).batchId;
- dataBatchReviveInfos.append(
- String.format(
- "(batchId=%d, partitionId=%d, cause=%s)",
- batchId,
- partitionIds[partitionIndex],
- StatusCode.fromValue(statusCodeList.get(i).byteValue())));
- if (statusCodeList.get(i) == StatusCode.SOFT_SPLIT.getValue()) {
- PartitionLocation loc = batches.get(partitionIndex).loc;
- if (!newerPartitionLocationExists(
- reducePartitionMap.get(shuffleId), loc.getId(), loc.getEpoch(), false)) {
- ReviveRequest reviveRequest =
- new ReviveRequest(
+ if (batchesNeedResubmit.isEmpty()) {
+ pushState.onSuccess(hostPort);
+ callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.SOFT_SPLIT.getValue()}));
+ } else {
+ if (dataPushFailureTrackingEnabled) {
+ for (DataBatches.DataBatch resubmitBatch : batchesNeedResubmit) {
+ pushState.addFailedBatch(
+ resubmitBatch.loc.getUniqueId(),
+ new PushFailedBatch(mapId, attemptId, resubmitBatch.batchId));
+ }
+ }
+ ReviveRequest[] requests =
+ addAndGetReviveRequests(
+ shuffleId, mapId, attemptId, batchesNeedResubmit, StatusCode.HARD_SPLIT);
+ pushDataRetryPool.submit(
+ () ->
+ submitRetryPushMergedData(
+ pushState,
shuffleId,
mapId,
attemptId,
- loc.getId(),
- loc.getEpoch(),
- loc,
- StatusCode.SOFT_SPLIT);
- reviveManager.addRequest(reviveRequest);
- }
- } else {
- batchesNeedResubmit.add(batches.get(partitionIndex));
- }
+ batchesNeedResubmit,
+ StatusCode.HARD_SPLIT,
+ groupedBatchId,
+ requests,
+ remainReviveTimes,
+ System.currentTimeMillis()
+ + conf.clientRpcRequestPartitionLocationAskTimeout()
+ .duration()
+ .toMillis()));
}
- logger.info(
- "Push merged data to {} partial success required for shuffle {} map {} attempt {} groupedBatch {}. split batches {}.",
+ } else if (reason == StatusCode.PUSH_DATA_SUCCESS_PRIMARY_CONGESTED.getValue()) {
+ logger.debug(
+ "Push merged data to {} primary congestion required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
addressPair,
shuffleId,
mapId,
attemptId,
+ Arrays.toString(partitionIds),
groupedBatchId,
- dataBatchReviveInfos);
- } else {
- // Workers that do not incorporate changes from [CELEBORN-1721]
- // will respond with a status of HARD_SPLIT,
- // but will not include a PbPushMergedDataSplitPartitionInfo.
- // For backward compatibility, all batches must be resubmitted.
- batchesNeedResubmit = batches;
- logger.info(
- "Push merged data to {} hard split required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
+ Arrays.toString(batchIds));
+ pushState.onCongestControl(hostPort);
+ callback.onSuccess(response);
+ } else if (reason == StatusCode.PUSH_DATA_SUCCESS_REPLICA_CONGESTED.getValue()) {
+ logger.debug(
+ "Push merged data to {} replica congestion required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
addressPair,
shuffleId,
mapId,
attemptId,
Arrays.toString(partitionIds),
groupedBatchId,
Arrays.toString(batchIds));
- }
- if (batchesNeedResubmit.isEmpty()) {
+ pushState.onCongestControl(hostPort);
+ callback.onSuccess(response);
+ } else if (reason == StatusCode.MAP_ENDED.getValue()) {
pushState.onSuccess(hostPort);
- callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.SOFT_SPLIT.getValue()}));
- } else {
- if (dataPushFailureTrackingEnabled) {
- for (DataBatches.DataBatch resubmitBatch : batchesNeedResubmit) {
- pushState.addFailedBatch(
- resubmitBatch.loc.getUniqueId(),
- new PushFailedBatch(mapId, attemptId, resubmitBatch.batchId));
- }
- }
- ReviveRequest[] requests =
- addAndGetReviveRequests(
- shuffleId, mapId, attemptId, batchesNeedResubmit, StatusCode.HARD_SPLIT);
- pushDataRetryPool.submit(
- () ->
- submitRetryPushMergedData(
- pushState,
- shuffleId,
- mapId,
- attemptId,
- batchesNeedResubmit,
- StatusCode.HARD_SPLIT,
- groupedBatchId,
- requests,
- remainReviveTimes,
- System.currentTimeMillis()
- + conf.clientRpcRequestPartitionLocationAskTimeout()
- .duration()
- .toMillis()));
+ callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.MAP_ENDED.getValue()}));
+ } else { // success
+ pushState.onSuccess(hostPort);
+ callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.SUCCESS.getValue()}));
}
- } else if (reason == StatusCode.PUSH_DATA_SUCCESS_PRIMARY_CONGESTED.getValue()) {
- logger.debug(
- "Push merged data to {} primary congestion required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
- addressPair,
- shuffleId,
- mapId,
- attemptId,
- Arrays.toString(partitionIds),
- groupedBatchId,
- Arrays.toString(batchIds));
- pushState.onCongestControl(hostPort);
- callback.onSuccess(response);
- } else if (reason == StatusCode.PUSH_DATA_SUCCESS_REPLICA_CONGESTED.getValue()) {
- logger.debug(
- "Push merged data to {} replica congestion required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
- addressPair,
- shuffleId,
- mapId,
- attemptId,
- Arrays.toString(partitionIds),
- groupedBatchId,
- Arrays.toString(batchIds));
- pushState.onCongestControl(hostPort);
- callback.onSuccess(response);
- } else if (reason == StatusCode.MAP_ENDED.getValue()) {
- pushState.onSuccess(hostPort);
- callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.MAP_ENDED.getValue()}));
- } else { // success
+ } else {
+ // Workers that do not incorporate changes from [CELEBORN-1721]
+ // will respond with a status of empty response.
+ // For backward compatibility, we should keep logic of check response remaining.
pushState.onSuccess(hostPort);
- callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.SUCCESS.getValue()}));
+ callback.onSuccess(response);
Review Comment:
<img width="1052" alt="截屏2025-03-25 16 30 16" src="https://github.com/user-attachments/assets/75c55154-30c8-4bce-a3a3-18b9679cfd32" />
cc @RexXiong
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker [celeborn]
Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on PR #3171:
URL: https://github.com/apache/celeborn/pull/3171#issuecomment-2750817020
ping @RexXiong
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker [celeborn]
Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on code in PR #3171:
URL: https://github.com/apache/celeborn/pull/3171#discussion_r2011566235
##########
client/src/main/java/org/apache/celeborn/client/ShuffleClientImpl.java:
##########
@@ -1490,135 +1490,143 @@ public void onFailure(Throwable e) {
new RpcResponseCallback() {
@Override
public void onSuccess(ByteBuffer response) {
- byte reason = response.get();
- if (reason == StatusCode.HARD_SPLIT.getValue()) {
- ArrayList<DataBatches.DataBatch> batchesNeedResubmit;
- if (response.remaining() > 0) {
- batchesNeedResubmit = new ArrayList<>();
- PbPushMergedDataSplitPartitionInfo partitionInfo;
- try {
- partitionInfo = TransportMessage.fromByteBuffer(response).getParsedPayload();
- } catch (CelebornIOException | InvalidProtocolBufferException e) {
- callback.onFailure(
- new CelebornIOException("parse pushMergedData response failed", e));
- return;
+ if (response.remaining() > 0) {
+ byte reason = response.get();
+ if (reason == StatusCode.HARD_SPLIT.getValue()) {
+ ArrayList<DataBatches.DataBatch> batchesNeedResubmit;
+ if (response.remaining() > 0) {
+ batchesNeedResubmit = new ArrayList<>();
+ PbPushMergedDataSplitPartitionInfo partitionInfo;
+ try {
+ partitionInfo = TransportMessage.fromByteBuffer(response).getParsedPayload();
+ } catch (CelebornIOException | InvalidProtocolBufferException e) {
+ callback.onFailure(
+ new CelebornIOException("parse pushMergedData response failed", e));
+ return;
+ }
+ List<Integer> splitPartitionIndexes = partitionInfo.getSplitPartitionIndexesList();
+ List<Integer> statusCodeList = partitionInfo.getStatusCodesList();
+ StringBuilder dataBatchReviveInfos = new StringBuilder();
+ for (int i = 0; i < splitPartitionIndexes.size(); i++) {
+ int partitionIndex = splitPartitionIndexes.get(i);
+ int batchId = batches.get(partitionIndex).batchId;
+ dataBatchReviveInfos.append(
+ String.format(
+ "(batchId=%d, partitionId=%d, cause=%s)",
+ batchId,
+ partitionIds[partitionIndex],
+ StatusCode.fromValue(statusCodeList.get(i).byteValue())));
+ if (statusCodeList.get(i) == StatusCode.SOFT_SPLIT.getValue()) {
+ PartitionLocation loc = batches.get(partitionIndex).loc;
+ if (!newerPartitionLocationExists(
+ reducePartitionMap.get(shuffleId), loc.getId(), loc.getEpoch(), false)) {
+ ReviveRequest reviveRequest =
+ new ReviveRequest(
+ shuffleId,
+ mapId,
+ attemptId,
+ loc.getId(),
+ loc.getEpoch(),
+ loc,
+ StatusCode.SOFT_SPLIT);
+ reviveManager.addRequest(reviveRequest);
+ }
+ } else {
+ batchesNeedResubmit.add(batches.get(partitionIndex));
+ }
+ }
+ logger.info(
+ "Push merged data to {} partial success required for shuffle {} map {} attempt {} groupedBatch {}. split batches {}.",
+ addressPair,
+ shuffleId,
+ mapId,
+ attemptId,
+ groupedBatchId,
+ dataBatchReviveInfos);
+ } else {
+ // Workers that do not incorporate changes from [CELEBORN-1721]
+ // will respond with a status of HARD_SPLIT,
+ // but will not include a PbPushMergedDataSplitPartitionInfo.
+ // For backward compatibility, all batches must be resubmitted.
+ batchesNeedResubmit = batches;
+ logger.info(
+ "Push merged data to {} hard split required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
+ addressPair,
+ shuffleId,
+ mapId,
+ attemptId,
+ Arrays.toString(partitionIds),
+ groupedBatchId,
+ Arrays.toString(batchIds));
}
- List<Integer> splitPartitionIndexes = partitionInfo.getSplitPartitionIndexesList();
- List<Integer> statusCodeList = partitionInfo.getStatusCodesList();
- StringBuilder dataBatchReviveInfos = new StringBuilder();
- for (int i = 0; i < splitPartitionIndexes.size(); i++) {
- int partitionIndex = splitPartitionIndexes.get(i);
- int batchId = batches.get(partitionIndex).batchId;
- dataBatchReviveInfos.append(
- String.format(
- "(batchId=%d, partitionId=%d, cause=%s)",
- batchId,
- partitionIds[partitionIndex],
- StatusCode.fromValue(statusCodeList.get(i).byteValue())));
- if (statusCodeList.get(i) == StatusCode.SOFT_SPLIT.getValue()) {
- PartitionLocation loc = batches.get(partitionIndex).loc;
- if (!newerPartitionLocationExists(
- reducePartitionMap.get(shuffleId), loc.getId(), loc.getEpoch(), false)) {
- ReviveRequest reviveRequest =
- new ReviveRequest(
+ if (batchesNeedResubmit.isEmpty()) {
+ pushState.onSuccess(hostPort);
+ callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.SOFT_SPLIT.getValue()}));
+ } else {
+ if (dataPushFailureTrackingEnabled) {
+ for (DataBatches.DataBatch resubmitBatch : batchesNeedResubmit) {
+ pushState.addFailedBatch(
+ resubmitBatch.loc.getUniqueId(),
+ new PushFailedBatch(mapId, attemptId, resubmitBatch.batchId));
+ }
+ }
+ ReviveRequest[] requests =
+ addAndGetReviveRequests(
+ shuffleId, mapId, attemptId, batchesNeedResubmit, StatusCode.HARD_SPLIT);
+ pushDataRetryPool.submit(
+ () ->
+ submitRetryPushMergedData(
+ pushState,
shuffleId,
mapId,
attemptId,
- loc.getId(),
- loc.getEpoch(),
- loc,
- StatusCode.SOFT_SPLIT);
- reviveManager.addRequest(reviveRequest);
- }
- } else {
- batchesNeedResubmit.add(batches.get(partitionIndex));
- }
+ batchesNeedResubmit,
+ StatusCode.HARD_SPLIT,
+ groupedBatchId,
+ requests,
+ remainReviveTimes,
+ System.currentTimeMillis()
+ + conf.clientRpcRequestPartitionLocationAskTimeout()
+ .duration()
+ .toMillis()));
}
- logger.info(
- "Push merged data to {} partial success required for shuffle {} map {} attempt {} groupedBatch {}. split batches {}.",
+ } else if (reason == StatusCode.PUSH_DATA_SUCCESS_PRIMARY_CONGESTED.getValue()) {
+ logger.debug(
+ "Push merged data to {} primary congestion required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
addressPair,
shuffleId,
mapId,
attemptId,
+ Arrays.toString(partitionIds),
groupedBatchId,
- dataBatchReviveInfos);
- } else {
- // Workers that do not incorporate changes from [CELEBORN-1721]
- // will respond with a status of HARD_SPLIT,
- // but will not include a PbPushMergedDataSplitPartitionInfo.
- // For backward compatibility, all batches must be resubmitted.
- batchesNeedResubmit = batches;
- logger.info(
- "Push merged data to {} hard split required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
+ Arrays.toString(batchIds));
+ pushState.onCongestControl(hostPort);
+ callback.onSuccess(response);
+ } else if (reason == StatusCode.PUSH_DATA_SUCCESS_REPLICA_CONGESTED.getValue()) {
+ logger.debug(
+ "Push merged data to {} replica congestion required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
addressPair,
shuffleId,
mapId,
attemptId,
Arrays.toString(partitionIds),
groupedBatchId,
Arrays.toString(batchIds));
- }
- if (batchesNeedResubmit.isEmpty()) {
+ pushState.onCongestControl(hostPort);
+ callback.onSuccess(response);
+ } else if (reason == StatusCode.MAP_ENDED.getValue()) {
pushState.onSuccess(hostPort);
- callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.SOFT_SPLIT.getValue()}));
- } else {
- if (dataPushFailureTrackingEnabled) {
- for (DataBatches.DataBatch resubmitBatch : batchesNeedResubmit) {
- pushState.addFailedBatch(
- resubmitBatch.loc.getUniqueId(),
- new PushFailedBatch(mapId, attemptId, resubmitBatch.batchId));
- }
- }
- ReviveRequest[] requests =
- addAndGetReviveRequests(
- shuffleId, mapId, attemptId, batchesNeedResubmit, StatusCode.HARD_SPLIT);
- pushDataRetryPool.submit(
- () ->
- submitRetryPushMergedData(
- pushState,
- shuffleId,
- mapId,
- attemptId,
- batchesNeedResubmit,
- StatusCode.HARD_SPLIT,
- groupedBatchId,
- requests,
- remainReviveTimes,
- System.currentTimeMillis()
- + conf.clientRpcRequestPartitionLocationAskTimeout()
- .duration()
- .toMillis()));
+ callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.MAP_ENDED.getValue()}));
+ } else { // success
+ pushState.onSuccess(hostPort);
+ callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.SUCCESS.getValue()}));
}
- } else if (reason == StatusCode.PUSH_DATA_SUCCESS_PRIMARY_CONGESTED.getValue()) {
- logger.debug(
- "Push merged data to {} primary congestion required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
- addressPair,
- shuffleId,
- mapId,
- attemptId,
- Arrays.toString(partitionIds),
- groupedBatchId,
- Arrays.toString(batchIds));
- pushState.onCongestControl(hostPort);
- callback.onSuccess(response);
- } else if (reason == StatusCode.PUSH_DATA_SUCCESS_REPLICA_CONGESTED.getValue()) {
- logger.debug(
- "Push merged data to {} replica congestion required for shuffle {} map {} attempt {} partition {} groupedBatch {} batch {}.",
- addressPair,
- shuffleId,
- mapId,
- attemptId,
- Arrays.toString(partitionIds),
- groupedBatchId,
- Arrays.toString(batchIds));
- pushState.onCongestControl(hostPort);
- callback.onSuccess(response);
- } else if (reason == StatusCode.MAP_ENDED.getValue()) {
- pushState.onSuccess(hostPort);
- callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.MAP_ENDED.getValue()}));
- } else { // success
+ } else {
+ // Workers that do not incorporate changes from [CELEBORN-1721]
+ // will respond with a status of empty response.
+ // For backward compatibility, we should keep logic of check response remaining.
pushState.onSuccess(hostPort);
- callback.onSuccess(ByteBuffer.wrap(new byte[] {StatusCode.SUCCESS.getValue()}));
+ callback.onSuccess(response);
Review Comment:
<img width="1052" alt="截屏2025-03-25 16 30 16" src="https://github.com/user-attachments/assets/75c55154-30c8-4bce-a3a3-18b9679cfd32" />
cc @RexXiong
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker [celeborn]
Posted by "RexXiong (via GitHub)" <gi...@apache.org>.
RexXiong commented on PR #3171:
URL: https://github.com/apache/celeborn/pull/3171#issuecomment-2944558274
> anymore comments for this?
>
> ping @AngersZhuuuu @jiang13021 @RexXiong
This change forces new client to be incompatible with older workers, which doesn't seem particularly necessary. Therefore, I will close it for now and reconsider the changes if needed in the future.
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker [celeborn]
Posted by "jiang13021 (via GitHub)" <gi...@apache.org>.
jiang13021 commented on PR #3171:
URL: https://github.com/apache/celeborn/pull/3171#issuecomment-2760490744
@AngersZhuuuu Maybe we can just modify org/apache/celeborn/client/ShuffleClientImpl:PushMergedDataWrappedCallback
```
@Override
public void onSuccess(ByteBuffer response) {
byte reason = response.get();
......
```
to
```
@Override
public void onSuccess(ByteBuffer response) {
byte reason = StatusCode.SUCCESS.getValue();
if (response.remaining() > 0) {
reason = response.get();
}
......
```
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker [celeborn]
Posted by "turboFei (via GitHub)" <gi...@apache.org>.
turboFei commented on PR #3171:
URL: https://github.com/apache/celeborn/pull/3171#issuecomment-2889035954
anymore comments for this?
ping @AngersZhuuuu @jiang13021 @RexXiong
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker [celeborn]
Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on PR #3171:
URL: https://github.com/apache/celeborn/pull/3171#issuecomment-2760959852
> @AngersZhuuuu Maybe we can just modify org/apache/celeborn/client/ShuffleClientImpl:PushMergedDataWrappedCallback
>
> ```
> @Override
> public void onSuccess(ByteBuffer response) {
> byte reason = response.get();
> ......
> ```
>
> to
>
> ```
> @Override
> public void onSuccess(ByteBuffer response) {
> byte reason = StatusCode.SUCCESS.getValue();
> if (response.remaining() > 0) {
> reason = response.get();
> }
> ......
> ```
Since new client version not support older version worker, after discuss, we decided to remove this code. cc @RexXiong
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker [celeborn]
Posted by "RexXiong (via GitHub)" <gi...@apache.org>.
RexXiong closed pull request #3171: CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker
URL: https://github.com/apache/celeborn/pull/3171
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker [celeborn]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3171:
URL: https://github.com/apache/celeborn/pull/3171#issuecomment-2865664187
This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CELEBORN-1334 [CIP-12] Support HARD_SPLIT in PushMergedData should not support new version client with old version worker [celeborn]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3171:
URL: https://github.com/apache/celeborn/pull/3171#issuecomment-2814927912
This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org