You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by GitBox <gi...@apache.org> on 2022/12/09 10:28:12 UTC

[GitHub] [incubator-celeborn] AngersZhuuuu commented on a diff in pull request #1061: add heartbeat and write timeout for transport clients

AngersZhuuuu commented on code in PR #1061:
URL: https://github.com/apache/incubator-celeborn/pull/1061#discussion_r1044305376


##########
common/src/main/java/org/apache/celeborn/common/network/util/TransportConf.java:
##########
@@ -55,6 +55,18 @@ public int connectionTimeoutMs() {
     return conf.networkIoConnectionTimeoutMs(module);
   }
 
+  /** Connection heartbeat timeout in milliseconds. Default 0 secs (never). */
+  public int heartbeatTimeoutMs() {
+    return (int) JavaUtils.timeStringAsSec(
+      conf.get("rss.network.heartbeat.timeout", "0s")) * 1000;

Review Comment:
   `celeborn.network.heartbeat.timeout`?
   
   I think you need to make it the same as `networkIoConnectionTimeoutMs`



##########
common/src/main/java/org/apache/celeborn/common/network/util/TransportConf.java:
##########
@@ -55,6 +55,18 @@ public int connectionTimeoutMs() {
     return conf.networkIoConnectionTimeoutMs(module);
   }
 
+  /** Connection heartbeat timeout in milliseconds. Default 0 secs (never). */
+  public int heartbeatTimeoutMs() {
+    return (int) JavaUtils.timeStringAsSec(
+      conf.get("rss.network.heartbeat.timeout", "0s")) * 1000;
+  }
+
+  /** Channel write timeout in milliseconds. Default 0 secs (never). */
+  public int writeTimeoutMs() {
+    return (int) JavaUtils.timeStringAsSec(
+      conf.get("rss.network.write.timeout", "0s")) * 1000;

Review Comment:
   ditto



##########
common/src/main/java/org/apache/celeborn/common/network/protocol/Message.java:
##########
@@ -84,7 +84,9 @@ public enum Type implements Encodable {
     PUSH_MERGED_DATA(12),
     REGION_START(13),
     REGION_FINISH(14),
-    PUSH_DATA_HAND_SHAKE(15);
+    PUSH_DATA_HAND_SHAKE(15),
+    Ping(16),
+    Pong(17);

Review Comment:
   Use upper case?
   ```
   PING(16),
   PONG(17);
   ```



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