Skip to content

Commit

Permalink
Set source spec's negativeacktimeout as well as timeout (apache#7337)
Browse files Browse the repository at this point in the history
Co-authored-by: Sanjeev Kulkarni <[email protected]>
  • Loading branch information
srkukarni and Sanjeev Kulkarni authored Jun 23, 2020
1 parent 51d2aa4 commit a9daf4c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ public static FunctionDetails convert(FunctionConfig functionConfig, ClassLoader
}
if (functionConfig.getTimeoutMs() != null) {
sourceSpecBuilder.setTimeoutMs(functionConfig.getTimeoutMs());
// We use negative acks for fast tracking failures
sourceSpecBuilder.setNegativeAckRedeliveryDelayMs(functionConfig.getTimeoutMs());
}
if (functionConfig.getCleanupSubscription() != null) {
sourceSpecBuilder.setCleanupSubscription(functionConfig.getCleanupSubscription());
Expand Down

0 comments on commit a9daf4c

Please sign in to comment.