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

[tests] Remove a few more usages of NoOpAllBootstrapper from tests #3314

Merged
merged 2 commits into from
Mar 3, 2021

Conversation

vpranckaitis
Copy link
Collaborator

What this PR does / why we need it:

Removes a few more usages of NoOpAllBootstrapper from integration tests

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:

NONE

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

NONE

@codecov
Copy link

codecov bot commented Mar 2, 2021

Codecov Report

Merging #3314 (13bd67f) into master (13bd67f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3314   +/-   ##
=======================================
  Coverage    72.5%    72.5%           
=======================================
  Files        1099     1099           
  Lines      101530   101530           
=======================================
  Hits        73616    73616           
  Misses      22836    22836           
  Partials     5078     5078           
Flag Coverage Δ
aggregator 76.4% <0.0%> (ø)
cluster 84.9% <0.0%> (ø)
collector 84.3% <0.0%> (ø)
dbnode 78.9% <0.0%> (ø)
m3em 74.4% <0.0%> (ø)
m3ninx 73.6% <0.0%> (ø)
metrics 19.9% <0.0%> (ø)
msg 74.2% <0.0%> (ø)
query 67.4% <0.0%> (ø)
x 80.5% <0.0%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 13bd67f...5b30dbc. Read the comment docs.

now := nodes[0].NowFn()()

for _, node := range nodes {
node.SetOpts(node.Opts().SetNumShards(numShards))
for _, ns := range node.Namespaces() {
// write empty data files to disk so nodes could bootstrap
writeTestDataToDisk(ns, node, generate.SeriesBlocksByStart{}, 0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is needed because UninitializedTopology would not work here?
I'm afraid this workaround might become what NoOpAllBootstrapper was, let's discuss this offline.

@vpranckaitis vpranckaitis merged commit be8ad04 into master Mar 3, 2021
@vpranckaitis vpranckaitis deleted the vilius/noop_all_part_6 branch March 3, 2021 07:33
soundvibe added a commit that referenced this pull request Mar 3, 2021
* master:
  [aggregator] Move placement checks to a background job (#3315)
  [tests] Remove a few more usages of NoOpAllBootstrapper from tests (#3314)
  [coordinator] make drop timestamp apply to the metric rather than specific rule (#3310)
  Update server.go (#3298)
  Fix Data Race in checkoutSeriesWithLock (#3300)
  [query] Allow configuration of placement options (#3304)
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