microsoftgraph / microsoftgraph/msgraph-sdk-java
Improve default RetryHandler implementation
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 444
- Fork
- 154
- Merge medio
- 18h 28m
- PR unite (30g)
- 4
Descrizione
Is your feature request related to a problem? Please describe the problem.
SDK V5
As per incident: 2409111420000033
in case there is a low memory on server side the server returns 503 for other error codes.
In such cases SDK treats 404, 403 errors as if it is 503 and retries.
We were instructed by Microsoft support person of contact to implement RetryHandler on application side and retry only if "retry-after" header is present. However, it sounds like this should be handled in SDK side rather than us.
Describe the solution you'd like.
I would propose such cases, when Microsoft servers have low memory to be handled by SDK
Additional context?
No response
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
La issue non indica alcun file sorgente né alcun test; inizia individuando l’implementazione predefinita di RetryHandler e i test di retry esistenti nel Java SDK. Verifica come vengono gestiti 403, 404, 503 e l’header retry-after, quindi aggiungi una copertura che dimostri che i retry avvengono solo quando l’header di risposta richiesto li consente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100