relation-set --app peer causes the leader to wake up again
Bug #1904196 reported by
John A Meinel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
It seems that if a leader decides to set application data of a peer relation, it then gets a relation-changed event for the peer relation to let it know that there is new app data.
This has been determined to only happen if you set genuinely new data (eg, relation-set --app foo=bar, relation-set --app foo=bar will only trigger 1 relation-changed event.)
It still feels suboptimal and charms shouldn't plan on abusing this feature.
Changed in juju: | |
importance: | High → Medium |
description: | updated |
To post a comment you must log in.
https:/ /pastebin. canonical. com/p/jyvCYnwJv b/
Would hint that this is actually just that if there is any application data in a peer relation, we never stop firing relation-changed. AFAICT that hook is not actually setting new data in the event.