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

refactor: add the standard flag --replication-factor #553

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

ijsong
Copy link
Member

@ijsong ijsong commented Jul 31, 2023

What this PR does

Previously varlogadm and varlogmr defined the flag for replication factor, respectively, which made strings for the flag different.
This change adds a new standard flag, --replication-factor. It also sets the type of replication factor to an integer.

@ijsong ijsong requested a review from hungryjang as a code owner July 31, 2023 08:37
@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2023

Codecov Report

❗ No coverage uploaded for pull request base (grpc_server_codec@5e1f344). Click here to learn what that means.
Patch coverage: 88.88% of modified lines in pull request are covered.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@                 Coverage Diff                  @@
##             grpc_server_codec     #553   +/-   ##
====================================================
  Coverage                     ?   61.10%           
====================================================
  Files                        ?      143           
  Lines                        ?    19081           
  Branches                     ?        0           
====================================================
  Hits                         ?    11660           
  Misses                       ?     6841           
  Partials                     ?      580           
Files Changed Coverage Δ
internal/metarepos/config.go 67.30% <ø> (ø)
internal/admin/admin.go 61.58% <50.00%> (ø)
internal/admin/config.go 85.85% <100.00%> (ø)
internal/flags/cluster.go 100.00% <100.00%> (ø)
tests/it/testenv.go 34.54% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Previously varlogadm and varlogmr defined the flag for replication factor, respectively, which made
strings for the flag different.
This change adds a new standard flag, `--replication-factor`. It also sets the type of replication
factor to an integer.
@ijsong
Copy link
Member Author

ijsong commented Oct 4, 2023

Merge Activity

  • Oct 4, 3:30 AM: @ijsong started a stack merge that includes this pull request via Graphite.
  • Oct 4, 3:32 AM: @ijsong merged this pull request with Graphite.

Base automatically changed from grpc_server_codec to main October 4, 2023 07:32
@ijsong ijsong merged commit f494c98 into main Oct 4, 2023
@ijsong ijsong deleted the common_repfactor_from_uint_to_int branch October 4, 2023 07:32
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