Reload the dmq-node topology on SIGHUP
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- haskell
- Domaine
- backend, networking
Piste de recherche
Start with the startup topology read in dmq-node/app/Main.hs (lines 164–167) and the diffusion configuration in dmq-node/src/DMQ/Configuration.hs (lines 411–438); compare the linked cardano-node SIGHUP handler and topology update. Verify reload updates all three settings together and keeps the last valid values after a malformed file, as described in the issue.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Current behavior
dmq-node reads --topology-file at startup and initializes the local roots, public roots, and ledger peer policy used by diffusion. There is no SIGHUP handler to update those values, so operators have to restart the node to apply a topology edit. Startup topology read · Diffusion configuration
Expected behavior
On Unix, SIGHUP should reread the configured topology file. After a successful parse, update localRoots, publicRoots, and useLedgerAfterSlot in one STM transaction. If reading or parsing fails, trace the error and keep the last valid topology active. cardano-node already follows this pattern. SIGHUP handler · Topology update
Verification
- On a test instance, edit the local and public roots and change
useLedgerAfterSlot. Send SIGHUP and verify that the same process supplies all three new values to diffusion. - Introduce malformed JSON and send SIGHUP again. Verify that the node reports the error and continues using the previous values.
- Correct the file, send SIGHUP, and verify that the next reload succeeds.
The mutable useLedgerAfterSlot setting also matters for #89.
- Langage dominant
- Haskell
- Étoiles
- 2
- Forks
- 6
- Merge moyen
- 9 j 10 h
- PR mergées (30 j)
- 4
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de IntersectMBO/dmq-node
-
Tracer & metrics improvementsOuvertetracing
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
IntersectMBO/dmq-node#91 ·
-
Ordinary ledger peer discovery misses smaller pools by sampling the big ledger peer snapshotOuvertebig-ledger-peers bug peer-selection
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
IntersectMBO/dmq-node#89 · 1 commentaire ·
-
validation error countersOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 46/100
IntersectMBO/dmq-node#87 ·
-
Add tracersPeut-être à nouveau libre @coot l’a pris il y a 151 jours, et aucune pull request n’est ouverte. Ouverte
IntersectMBO/dmq-node#59 · 1 personne assignée ·
-
documentation
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
IntersectMBO/dmq-node#26 · 1 commentaire ·
Toutes les issues de IntersectMBO/dmq-node
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
haskell/bytestring#730 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
seal-harness/seal-harness#399 ·
Les mainteneurs répondent en général sous 1 jour
-
add previously overlooked rulesOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
reflex-frp/reflex#563 ·