Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

The deleted node is recreated

Aperta
#1,316 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
databases

Direzione di ricerca

The report provides a Java reproduction using Curator operations on /testSelfWatcher, but names no source file or test. Start by identifying the watcher or background thread that recreates deleted nodes, then trace how it handles recursive deletion. Done when the reproduction no longer recreates the node unexpectedly and a test covers the behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

String path = "/testSelfWatcher";
curatorFramework.setData().forPath(path, String.valueOf(System.currentTimeMillis()).getBytes());
curatorFramework.create().forPath(path+"/child");
 //Here, look at the node path through the ZK terminal to confirm that it has been deleted
curatorFramework.delete().deletingChildrenIfNeeded().forPath(path); 
Thread.sleep(5000); // The thread rebuilds the path while it sleeps. View via ZK terminal
curatorFramework.create().forPath(path); //org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /testSelfWatcher

version : 5.7.1

Lingua principale
Java
Stelle
3.2k
Fork
1.2k
Merge medio
14h 48m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/curator

Tutte le issue di apache/curator

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.