-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broker: drop -k-ary option, rename tbon.arity attribute to tbon.fanout #3796
Conversation
Problem: attribute code does not check 'attr' argument for NULL before using. Fail with EINVAL if attr argument is NULL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a commit message comment. I also noticed "arity" is in the doc spelling file, dunno if we want to remove it there just in case we ever try to use it again in a doc.
@@ -7,7 +7,7 @@ TimeoutStopSec=90 | |||
KillMode=mixed | |||
ExecStart=@X_BINDIR@/flux broker \ | |||
--config-path=@X_SYSCONFDIR@/flux/system/conf.d \ | |||
--k-ary=256 \ | |||
-Stbon.fanout=256 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the commit message header be "rename tbon.arity"? Preferable is "rename tbon.arity to tbon.fanout", but I assume that would make the line too long.
Problem: there is an immutable tbon.arity attribute and a -k broker option. Since many attributes are settable on the broker command line with -S, it is confusing to have an attribute that can only be set with an option. Also, tbon.arity is a strange name for the TBON fanout. Drop -k,--k-ary=N broker option. Rename tbon.arity to tbon.fanout. Allow tbon.fanout to be set on the command line. Update users, including tests, the systemd unit file, and flux-sharness.sh. Fixes flux-framework#3795
Problem: docs refer to -k option and tbon.arity attribute, but those have been renamed. Update flux-broker(1) and flux-broker-attributes(7). Drop 'arity' from the dictionary.
Force pushed a change that drops "arity" from the dictonary and tweaks the commit messages slightly per @chu11. |
Codecov Report
@@ Coverage Diff @@
## master #3796 +/- ##
==========================================
+ Coverage 83.31% 83.33% +0.01%
==========================================
Files 342 342
Lines 50948 50967 +19
==========================================
+ Hits 42447 42473 +26
+ Misses 8501 8494 -7
|
LGTM |
Huh, I may have been confused. Fluxion is working OK with this change. |
Coverage test got canceled after 30m. Restarting. |
I have noticed that sometimes 30m is not quite long enough for coverage tests. We may have to bump this time limit up soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
As noted in #3795, it is confusing that the
tbon.arity
attribute can only be changed with the broker--k-ary
option. Also we seem to be using "fanout", "arity", and "k" for the same thing.Drop the option, make the attribute settable, and rename the attribute to
tbon.fanout
(which seems to me the most clear of the three names).This will require a fluxion update.