Considering making the Completion interface extend AutoCloseable
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- java
- Ambito
- backend, distributed-systems
Direzione di ricerca
La issue non indica alcun file, test o punto di ingresso. Inizia individuando l’interfaccia Completion e tracciandone il ciclo di vita sincrono e asincrono; per considerare il lavoro completato sarebbe necessario definire e documentare l’ambito, stabilendo se e come aggiungere il supporto per AutoCloseable.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Background and Intention
When using asynchronous processing completion, if a completion leak occurs, the system will be unable to consume furthur records which is quite dangerous. Therefore, avoiding completion leaks during development is a critical issue that requires attention.
However, in the context of collaboration and maintenance, as the complexity of the codebase increases and maintainers change over time, the likelihood of developers overlooking completion leaks also rises (e.g., complete being called across different locations in the call chain). I am considering whether there is a way to increase developers' awareness of completion leaks or to automatically check them.
Considerations
Perhaps one of the most effective approaches would be for developers to perform AST-based code analysis on their respective projects and integrate it into the CI pipeline. However, this is not something Decaton project can guarantee, and due to the cost, it is often not carried out.
Therefore, I am considering whether Completion could be annotated at the code level as something that must be completed, or whether it could be automatically completed at the appropriate time (though I haven't thought of a reasonable implementation for this).
Eventually, one idea I have is for Completion to extend the AutoCloseable interface. While this doesn't have any practical function, it would allow most developers' IDEs to detect the implementation of the AutoCloseable interface through their inspector tools, triggering warnings and serving as a pre-warning stuff.
I’d like to hear your thoughts on this. Thank you!
While this doesn't have any practical function ->
- In sync complete scenarios, after the
processmethod returns, the completion will be completed by decaton, so there is no need to control the completion process- In async complete scenarios, the completion is often completed during a callback, and completing it prematurely can cause issues.
- Lingua principale
- Java
- Stelle
- 373
- Fork
- 61
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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.
Altre issue di line/decaton
-
Modernize repositoryForse di nuovo libera @Yang-33 l’ha presa 186 giorni fa e non c’è nessuna pull request aperta. Aperta
-
Provide production check listForse di nuovo libera @Yang-33 l’ha presa 211 giorni fa e non c’è nessuna pull request aperta. Aperta
-
KIP-848 supportAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
Tutte le issue di line/decaton
Issue simili
-
Patient profile returns a server error for a person with observation periods but no clinical recordsForse già presa @DG47 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Test: Verify vault unlock max failed attempts and PIN brute-force protectionForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
wultra/powerauth-tests#980 ·
-
Communication: Removing a link preview does nothing for some linksForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaaccount bug communication lecture
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
line/centraldogma#1397 ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug]: Fixed/recurring deposit accounts are treated as savings in ownership and listingsForse già presa @Aana123 l’ha presa oggi. Apertabug Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
apache/fineract-consumer-facing#252 ·
I maintainer di solito rispondono entro 1 giorno