Refresh emulator inactivity timeout on SDK-retried responses (blocked on SDK enhancement)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C#
- Sterne
- 4
- Forks
- 7
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 23
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Azure/CosmosDBShell
-
[bug-bash] print maps a missing item's HTTP 404 to exit 1 instead of documented not-found exit 5Evtl. vergeben @mkrueger hat das vor 1 Tag übernommen. Offenbug bug-bash
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Azure/CosmosDBShell#279 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[bug-bash] Sequential script commands leak their result into rm as implicit pipe inputEvtl. vergeben @mkrueger hat das vor 1 Tag übernommen. Offenbug bug-bash
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 75/100
Azure/CosmosDBShell#281 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[bug-bash] Invalid command arguments return general-failure exit 1 instead of documented usage exit 2Evtl. vergeben @mkrueger hat das vor 1 Tag übernommen. Offenbug bug-bash
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
Azure/CosmosDBShell#280 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[bug-bash] edit and theme failures silently return exit 1 without a machine-readable stderr errorEvtl. vergeben @mkrueger hat das vor 1 Tag übernommen. Offenbug bug-bash
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 62/100
Azure/CosmosDBShell#278 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[bug-bash] Multi-statement -c and piped stdin silently drop intermediate output and file redirectionsEvtl. vergeben @mkrueger hat das vor 1 Tag übernommen. Offenbug bug-bash
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 75/100
Azure/CosmosDBShell#277 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in Azure/CosmosDBShell
Ähnliche Issues
-
Bug: Needs Replicating
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
space-wizards/RobustToolbox#7189 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
microsoft/microsoft-ui-reactor#1460 ·
Maintainer antworten meist innerhalb von 1 Tag
-
t/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
dotnet/maui#39950 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
The server's default HttpClient fails on plain http and on HTTPS servers without HTTP/2Evtl. vergeben @yasmoradi hat das heute übernommen. Offenarea / templates
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
bitfoundation/bitplatform#14659 ·
Maintainer antworten meist innerhalb von 1 Tag
-
DbTransaction.SupportsSavepoints docs say Release/ReleaseAsync are expected to throw, but they are no-ops by designEvtl. vergeben @alaricd hat das heute übernommen. Offenarea-System.Transactions untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
dotnet/runtime#137040 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag