Refresh emulator inactivity timeout on SDK-retried responses (blocked on SDK enhancement)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Read the shell's OperationProgressHandler implementation and how it is registered with the Cosmos SDK; the issue does not name file paths. First check whether the SDK enhancement Azure/azure-cosmos-dotnet-v3#6178 is available, since this work is explicitly blocked on it. Once available, implement per-attempt timeout refresh while excluding synthesized timeouts, then add a test with repeated 429 responses exceeding the timeout and verify the command completes.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
OperationProgressHandler (added in #264) restarts the local-emulator inactivity timeout whenever the emulator returns a response. It is registered as a Cosmos SDK custom handler, and the SDK places custom handlers before its RetryHandler, so the handler sees only the final response of an operation, not the intermediate responses the SDK retries (for example 429).
Impact
A throttled operation against the local emulator can stay inside the SDK retry loop for longer than the 10-second inactivity limit. With the SDK's default rate-limit policy (up to 9 retries, up to 30 seconds of waiting), the shell can cancel the command and disconnect even though the emulator answered every attempt. Earlier writes remain committed. This only affects local-emulator connections; Azure accounts have no inactivity timeout.
Plan
- Request a supported per-attempt response notification from the SDK (Gateway and Direct, without changing custom-handler semantics): Azure/azure-cosmos-dotnet-v3#6178.
- Once it ships, use it in the shell to restart the inactivity timeout on each real response, still excluding SDK-synthesized timeouts, so stalled requests keep timing out.
- Add a test that simulates repeated 429 responses longer than the timeout and verifies the command completes.
This does not block current releases; integrate it in the first shell release after the SDK change is available.
- Linguagem predominante
- C#
- Estrelas
- 4
- Forks
- 7
- Merge médio
- 2d 2h
- PRs com merge (30d)
- 24
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o 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 Azure/CosmosDBShell
-
[bug-bash] print maps a missing item's HTTP 404 to exit 1 instead of documented not-found exit 5Abertabug bug-bash
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Azure/CosmosDBShell#279 ·
Mantenedores costumam responder em até 1 dia
-
bug bug-bash
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 75/100
Azure/CosmosDBShell#281 ·
Mantenedores costumam responder em até 1 dia
-
bug bug-bash
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
Azure/CosmosDBShell#280 ·
Mantenedores costumam responder em até 1 dia
-
[bug-bash] edit and theme failures silently return exit 1 without a machine-readable stderr errorAbertabug bug-bash
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 62/100
Azure/CosmosDBShell#278 ·
Mantenedores costumam responder em até 1 dia
-
bug bug-bash
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 75/100
Azure/CosmosDBShell#277 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Azure/CosmosDBShell
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
sebastienros/jint#4449 ·
Mantenedores costumam responder em até 1 dia
-
needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 63/100
spectreconsole/spectre.console#2242 ·
Mantenedores costumam responder em até 11 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
hardkoded/puppeteer-sharp#3659 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
KnifeLemon/Filee#1118 ·
Mantenedores costumam responder em até 1 dia