Skip to content

Commit df8d5d2

Browse files
committed
Use aboutAnHour retry policy.
1 parent e8630f7 commit df8d5d2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

multi-stage-query/src/main/java/org/apache/druid/msq/indexing/IndexerTableInputSpecSlicerProvider.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.apache.druid.msq.input.table.TableInputSpec;
3030
import org.apache.druid.msq.util.MultiStageQueryContext;
3131
import org.apache.druid.query.QueryContext;
32+
import org.apache.druid.rpc.StandardRetryPolicy;
3233

3334
import java.util.List;
3435

@@ -42,7 +43,10 @@ public class IndexerTableInputSpecSlicerProvider implements InputSpecSlicerProvi
4243
@Inject
4344
public IndexerTableInputSpecSlicerProvider(CoordinatorClient coordinatorClient)
4445
{
45-
this.coordinatorClient = coordinatorClient;
46+
// Use the "aboutAnHour" retry policy, same as the one used in the TaskToolboxFactory. This prevents
47+
// long-running tasks from failing if there are Coordinator/Overlord problems. Calls will still fail
48+
// eventually if problems persist.
49+
this.coordinatorClient = coordinatorClient.withRetryPolicy(StandardRetryPolicy.aboutAnHour());
4650
}
4751

4852
@Override

0 commit comments

Comments
 (0)