Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pkova
Copy link
Collaborator

@pkova pkova commented May 1, 2024

When testing %phoenix we discovered that a poke that the app sends when hearing about a breach was always dropped with a gall: missing message. This is because jael delivers breach notifications to gall the vane and gall agents in an undefined order.

Old behavior:

(sort `(list duct)`[[i=/gall/use/ping/0w3.psfYX/~dinleb-rambep/jael t=[i=/dill t=~[//term/1]]] [i=/gall/sys/era t=[i=/dill t=~[//term/1]]] ~] sorter)
~[[i=/gall/use/ping/0w3.psfYX/~dinleb-rambep/jael t=[i=/dill t=~[//term/1]]] [i=/gall/sys/era t=[i=/dill t=~[//term/1]]]]

New behavior:

(sort `(list duct)`[[i=/gall/use/ping/0w3.psfYX/~dinleb-rambep/jael t=[i=/dill t=~[//term/1]]] [i=/gall/sys/era t=[i=/dill t=~[//term/1]]] ~] sorter)
~[[i=/gall/sys/era t=[i=/dill t=~[//term/1]]] [i=/gall/use/ping/0w3.psfYX/~dinleb-rambep/jael t=[i=/dill t=~[//term/1]]]]

Here we fix jael to always notify the vane before notifying any agents by special casing the /sys wire.

@joemfb
Copy link
Collaborator

joemfb commented May 1, 2024

Vere segfaulted in CI. Retrying.

Copy link
Collaborator

@joemfb joemfb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a good catch

@pkova pkova merged commit eca32c4 into develop May 3, 2024
@pkova pkova deleted the pkova/jael-sort-gall branch May 3, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants