Github user jiangxb1987 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18388#discussion_r124476066
  
    --- Diff: 
common/network-common/src/main/java/org/apache/spark/network/util/TransportConf.java
 ---
    @@ -257,4 +257,31 @@ public Properties cryptoConf() {
         return CryptoUtils.toCryptoConf("spark.network.crypto.config.", 
conf.getAll());
       }
     
    +  /**
    +   * When memory usage of Netty is above this water mark, it's regarded as 
memory shortage.
    +   */
    +  public Long nettyMemWaterMark() {
    +    return 
JavaUtils.byteStringAsBytes(conf.get("spark.network.netty.memCostWaterMark", 
"1g"));
    +  }
    +
    +  /**
    +   * Timeout when "open blocks" on shuffle service, in milliseconds.
    +   */
    +  public long shuffleServiceTimeoutMs() {
    +    return 
JavaUtils.timeStringAsMs(conf.get("spark.network.shuffleServiceTimeout", 
"30s"));
    +  }
    +
    +  /**
    +   * Retry times when "open blocks" on shuffle service.
    +   */
    +  public int shuffleServiceMaxTries() {
    +    return conf.getInt("spark.network.shuffleServiceMaxTries", 5);
    +  }
    +
    +  /**
    +   * Wait time when retry the request to "open blocks" on shuffle service.
    +   */
    +  public long openBlocksWaitTimeMs() {
    +    return 
JavaUtils.timeStringAsMs(conf.get("spark.network.openBlocksWait", "3s"));
    --- End diff --
    
    ditto


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to