GCENodeDriver.ex_create_multiple_nodes doesn't clean itself when fails.
- Vorherrschende Sprache
- Python
- Sterne
- 2.1k
- Forks
- 931
- Ø Merge
- 1 T. 2 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
## Summary
When calling `GCENodeDriver.ex_create_multiple_nodes`, if it gets timeout, the whole operation raises an exception, and the already created nodes are dangling and are not passed to the caller.
## Detailed Information
When calling `GCENodeDriver.ex_create_multiple_nodes`, if it gets timeout, the whole operation raises an exception , and the already created nodes are dangling and are not passed to the caller. I think that actually deleting the created nodes is pretty intrusive. But, it may be helpful to pass the information regarding the already created nodes in the raised exception object, so that the caller would be able to act on this information. Another option is to yield all created nodes as soon as they are created.
Thanks!
Beitragsleitfaden
Rechercherichtung
Beginne mit GCENodeDriver.ex_create_multiple_nodes und verfolge, wie Timeout-Fehler ausgelöst werden, nachdem einige Nodes erstellt wurden. Das Issue entscheidet nicht zwischen dem Löschen dieser Nodes, ihrem Bereitstellen über die Exception oder ihrem Yielding; kläre diese API-Entscheidung zuerst und definiere anschließend done so, dass sichergestellt ist, dass Aufrufer bereits erstellte Nodes behandeln können, ohne sie unzugänglich zu lassen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- google-cloud, python
- Bereich
- cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100