Skip to content
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

Merged
merged 4 commits into from
May 16, 2019

Conversation

robskillington
Copy link
Collaborator

@robskillington robskillington commented May 16, 2019

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?:

Fixes ReturnUnfulfilledForCorruptCommitLogFiles config field not properly being propagated to the commit log bootstrapper options.

Does this PR require updating code package or user-facing documentation?:

NONE

@codecov
Copy link

codecov bot commented May 16, 2019

Codecov Report

Merging #1639 into master will decrease coverage by 6.3%.
The diff coverage is 23%.

Impacted file tree graph

@@           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
Flag Coverage Δ
#aggregator 69.3% <ø> (-13%) ⬇️
#cluster 84.1% <ø> (-1.7%) ⬇️
#collector 48% <ø> (-15.9%) ⬇️
#dbnode 71.2% <20.6%> (-9%) ⬇️
#m3em 68.4% <ø> (-4.9%) ⬇️
#m3ninx 69.9% <ø> (-4.3%) ⬇️
#m3nsch 51.1% <ø> (ø) ⬆️
#metrics 17.6% <ø> (ø) ⬆️
#msg 74.7% <ø> (ø) ⬆️
#query 66.5% <100%> (-0.7%) ⬇️
#x 79% <ø> (-8%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe8b9a5...f115bf4. Read the comment docs.

Rob Skillington added 2 commits May 16, 2019 16:21
Copy link
Contributor

@richardartoul richardartoul left a 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()))))
Copy link
Contributor

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
Copy link
Contributor

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"

@robskillington robskillington merged commit f0505d6 into master May 16, 2019
@robskillington robskillington deleted the r/plumb-return-unfulfilled-commitlog-options branch May 16, 2019 21:05
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.

2 participants