-
Notifications
You must be signed in to change notification settings - Fork 455
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
Fix ReturnUnfulfilledForCorruptCommitLogFiles not propagating to bootstrapper options #1639
Fix ReturnUnfulfilledForCorruptCommitLogFiles not propagating to bootstrapper options #1639
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1639 +/- ##
========================================
- Coverage 72.1% 65.8% -6.4%
========================================
Files 959 840 -119
Lines 79817 72541 -7276
========================================
- Hits 57594 47762 -9832
- Misses 18469 21407 +2938
+ Partials 3754 3372 -382
Continue to review full report at Codecov.
|
….com:m3db/m3 into r/plumb-return-unfulfilled-commitlog-options
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
// BootstrapFilesystemConfiguration specifies config for the fs bootstrapper. | ||
type BootstrapFilesystemConfiguration struct { | ||
// NumProcessorsPerCPU is the number of processors per CPU. | ||
NumProcessorsPerCPU float64 `yaml:"numProcessorsPerCPU" validate:"min=0.0"` | ||
} | ||
|
||
func (c BootstrapFilesystemConfiguration) numCPUs() int { | ||
return int(math.Ceil(float64(c.NumProcessorsPerCPU * float64(runtime.NumCPU())))) |
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.
Can you break this up into a few vars, took me a minute to unpack it
|
||
// BootstrapConfigurationValidator can be used to validate the option sets | ||
// that the bootstrap configuration builds. | ||
// Useful for tests and perhaps verifying same options set across multiple |
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.
"the same options are set"
What this PR does / why we need it:
Fixes ReturnUnfulfilledForCorruptCommitLogFiles config field not properly being propagated to the commit log bootstrapper options.
Special notes for your reviewer:
Does this PR introduce a user-facing and/or backwards incompatible change?:
Does this PR require updating code package or user-facing documentation?: