Apply DurableHttpRequest.HttpRetryOptions when scheduling durable HTTP retries
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- java
- Domínio
- api, backend, distributed-systems, documentation, testing
Direção de pesquisa
Comece com DurableHttp.callHttp e rastreie como DurableHttpRequest.getHttpRetryOptions é passado para ctx.callActivity; em seguida, examine HttpRetryOptions e o comportamento de novas tentativas de TaskOptions. Defina a precedência para TaskOptions explícitos, preserve a filtragem por código de status e adicione cobertura para novas tentativas somente da requisição, sucesso, esgotamento, exclusões, falhas de transporte e casos de interação. Atualize a documentação da API ou os exemplos quando o comportamento estiver definido.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
HttpRetryOptions is exposed on DurableHttpRequest, but DurableHttp.callHttp does not use that configuration to schedule retries unless the caller separately supplies TaskOptions. This is the Java retry-scheduling follow-up to Azure/azure-functions-durable-extension#1984, not a request to add a second HTTP API or retry-options type.
Current behavior
Checked v1.9.0 and main at cfdfbf505ed0c4b1b5e9d39a55504650f1dd09e8:
HttpRetryOptionsexposes intervals, maximum attempts, backoff, retry timeout, and status-code selection.DurableHttpRequestserializes those options underretryOptionsfor the HTTP activity.DurableHttp.callHttp(ctx, request)delegates with nullTaskOptions. The implementation then callsctx.callActivitywithout a retry policy; it does not derive one fromrequest.getHttpRetryOptions().- The extension's HTTP activity uses the configured status codes to turn matching responses into failures, but durable retry scheduling is separate from that failure classification.
Consequently, the code path for setting only the request's HttpRetryOptions does not schedule the configured retry attempts. Supplying a separate TaskOptions/RetryPolicy can schedule retries, but duplicates configuration and leaves the request-level attempt/backoff settings unapplied.
This finding is based on source-path inspection; an end-to-end failure/retry reproduction has not been executed.
Reproduction scenario
- Configure a
DurableHttpRequestwithHttpRetryOptionsspecifying three attempts and HTTP 503 as retryable. - Call
ctx.callHttp(request)without separateTaskOptions. - Use an endpoint that returns 503 for the first attempt and 200 for the next attempt.
- Verify whether the orchestration schedules the second request using the request's retry policy rather than failing after the first HTTP activity.
Acceptance Criteria
- Apply the request's
HttpRetryOptionsto durable retry scheduling when no explicit scheduling override is supplied. - Honor attempt limits, first/max intervals, backoff, and retry timeout, while retaining HTTP-status-code filtering.
- Define and document precedence when explicit
TaskOptionsand request-level HTTP retry options are both supplied. - Preserve existing behavior when retry options are omitted.
- Add coverage for request-only retry configuration, retry-then-success, exhaustion, excluded status codes, transport failures, and explicit
TaskOptionsinteraction. - Update API documentation/examples so callers do not need two inconsistent policies for one HTTP request.
Related
- Original cross-language tracker: Azure/azure-functions-durable-extension#1984.
- Existing broad HTTP support tracker: microsoft/durabletask-java#39.
- HTTP API implementation: microsoft/durabletask-java#271.
- Linguagem predominante
- Java
- Estrelas
- 29
- Forks
- 18
- Merge médio
- 1d 10h
- PRs com merge (30d)
- 2
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoft/durabletask-java
-
Needs: Triage :mag:
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
microsoft/durabletask-java#290 · 2 comentários ·
-
Needs: Triage :mag:
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
microsoft/durabletask-java#285 ·
-
Needs: Triage :mag:
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
microsoft/durabletask-java#276 ·
-
Enhancement
microsoft/durabletask-java#274 · 1 reação · 2 responsáveis ·
-
Needs: Triage :mag:
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 42/100
microsoft/durabletask-java#270 ·
Todas as issues de microsoft/durabletask-java
Issues semelhantes
-
certification
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 80/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Abertabug ecr
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
Needs: Triage Type: Feature request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
github/copilot-sdk#2760 ·