Skip to content

Commit

Permalink
Support automatic retry for important RPC requests
Browse files Browse the repository at this point in the history
  • Loading branch information
peacewong committed May 9, 2024
1 parent 0fd346b commit 545f139
Show file tree
Hide file tree
Showing 31 changed files with 28 additions and 1,000 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class AbstractRetryableProtocol implements RetryableProtocol {

@Override
public long maxPeriod() {
return 3000L;
return 30000L;
}

@Override
Expand All @@ -31,11 +31,11 @@ public Class<? extends Throwable>[] retryExceptions() {

@Override
public int retryNum() {
return 2;
return 5;
}

@Override
public long period() {
return 1000L;
return 10000L;
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
package org.apache.linkis.protocol

trait RetryableProtocol extends Protocol {
def retryNum: Int = 2
def period: Long = 1000L
def maxPeriod: Long = 3000L
def retryNum: Int = 5
def period: Long = 10000L
def maxPeriod: Long = 30000L
def retryExceptions: Array[Class[_ <: Throwable]] = Array.empty[Class[_ <: Throwable]]
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 545f139

Please sign in to comment.