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

[tools] Allow reading all the shards in the directory in read_data_files #3857

Merged
merged 2 commits into from
Oct 20, 2021

Conversation

vpranckaitis
Copy link
Collaborator

What this PR does / why we need it:

Add option to read_data_files for reading all the shards in the directory.

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

if err != nil {
log.Fatalf("unable to open reader: %v", err)
}
for _, shard := range shards {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@linasm linasm left a comment

Choose a reason for hiding this comment

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

LGTM just one comment re: default value.

optShard = getopt.Uint32Long("shard", 's', 0, "Shard [expected format uint32]")
optPathPrefix = getopt.StringLong("path-prefix", 'p', "", "Path prefix [e.g. /var/lib/m3db]")
optNamespace = getopt.StringLong("namespace", 'n', "default", "Namespace [e.g. metrics]")
optShard = getopt.IntLong("shard", 's', 0,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should default to allShards and not 0 now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@vpranckaitis vpranckaitis enabled auto-merge (squash) October 20, 2021 06:38
@vpranckaitis vpranckaitis merged commit 14cecb7 into master Oct 20, 2021
@vpranckaitis vpranckaitis deleted the vilius/read_data_files_all_shards branch October 20, 2021 06:55
soundvibe pushed a commit that referenced this pull request Oct 26, 2021
* master:
  Remove unused message-read-error metric (#3869)
  Add p75/p25 as aggregation options (#3867)
  [aggregator] track dirty values to consume instead of scanning all within buffer past (#3847)
  [rules] Correctly match rollup tags for excludeBy operations (#3865)
  [dbnode] Create empty warm index fileset (#3859)
  [aggregator] Allow wait during tick to be interrupted on close (#3861)
  [aggregator] Add support for default configuration (#3856)
  [dbnode] Add WriteAttempt integration test index helper method (#3860)
  [tools] Allow reading all the shards in the directory in read_data_files (#3857)
  [tests] Add test for in-process aggregator writes
  [tools] Add annotation_checker tool (#3854)
  [tests] Convert docker-integration-tests/simple/test.sh to in-process test (#3850)
  [documentation] Update rollup rules documentation to provide an example of aggregating gauges (#3852)
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