EnricoMi commented on code in PR #1753:
URL: 
https://github.com/apache/incubator-uniffle/pull/1753#discussion_r1636424702


##########
client-spark/spark3/src/main/java/org/apache/spark/shuffle/writer/RssShuffleWriter.java:
##########
@@ -259,12 +262,13 @@ public void write(Iterator<Product2<K, V>> records) {
       if (shuffleManager.isRssResubmitStage()) {
         throwFetchFailedIfNecessary(e);
       } else {
-        throw e;
+        throw new RssException(e);
       }
     }
   }
 
-  private void writeImpl(Iterator<Product2<K, V>> records) {
+  // gluten need this method and IOException must be throws here

Review Comment:
   ```suggestion
     // gluten need this method and IOException must be thrown here
   ```



##########
client-spark/spark3/src/main/java/org/apache/spark/shuffle/writer/RssShuffleWriter.java:
##########
@@ -259,12 +262,13 @@ public void write(Iterator<Product2<K, V>> records) {
       if (shuffleManager.isRssResubmitStage()) {
         throwFetchFailedIfNecessary(e);
       } else {
-        throw e;
+        throw new RssException(e);
       }
     }
   }
 
-  private void writeImpl(Iterator<Product2<K, V>> records) {
+  // gluten need this method and IOException must be throws here

Review Comment:
   Implementations of this method can catch any `IOException` and rethrow a 
`new RssException(e)`, this would keep the interface clean.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to