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

migrate --experimental-txn-mode-write-with-shared-buffer flag to feature gate. #19078

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

ishan16696
Copy link
Contributor

This PR migrate --experimental-txn-mode-write-with-shared-buffer flag to use feature gate.

Fixes: #19063

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

@k8s-ci-robot
Copy link

Hi @ishan16696. Thanks for your PR.

I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.82%. Comparing base (b5c620a) to head (c73b3d1).
Report is 19 commits behind head on main.

Additional details and impacted files
Files with missing lines Coverage Δ
server/embed/config.go 79.43% <100.00%> (-0.04%) ⬇️
server/embed/etcd.go 75.73% <100.00%> (-0.05%) ⬇️
server/etcdmain/config.go 67.76% <ø> (ø)
server/etcdserver/server.go 82.27% <100.00%> (-0.15%) ⬇️
server/etcdserver/txn/txn.go 93.80% <100.00%> (+1.10%) ⬆️
server/etcdserver/v3_server.go 73.56% <100.00%> (+0.65%) ⬆️
server/features/etcd_features.go 60.00% <ø> (ø)

... and 20 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #19078      +/-   ##
==========================================
+ Coverage   68.81%   68.82%   +0.01%     
==========================================
  Files         420      420              
  Lines       35640    35640              
==========================================
+ Hits        24524    24530       +6     
+ Misses       9689     9684       -5     
+ Partials     1427     1426       -1     

Continue to review full report in Codecov by Sentry.

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

@ishan16696 ishan16696 force-pushed the migrate/flagTofeatureGate branch from 0dd7768 to fb62034 Compare December 18, 2024 05:13
@ahrtr
Copy link
Member

ahrtr commented Dec 18, 2024

/ok-to-test

@ishan16696
Copy link
Contributor Author

/retest

1 similar comment
@ishan16696
Copy link
Contributor Author

/retest

@ishan16696
Copy link
Contributor Author

Right now, TestV2SetMemberAttributes unit tests is failing in pkg/etcdserver/server_test.go due to server config is not containing feature flag, due to that it's got fatal error as func srv.NewUberApplier() requires a bool for this s.Cfg.ServerFeatureGate.Enabled(features.TxnModeWriteWithSharedBuffer).

	srv := &EtcdServer{
		lgMu:         new(sync.RWMutex),
		lg:           zaptest.NewLogger(t),
		v2store:      mockstore.NewRecorder(),
		cluster:      cl,
		consistIndex: cindex.NewConsistentIndex(be),
		w:            wait.New(),
	}

Will fix it.

server/etcdmain/help.go Outdated Show resolved Hide resolved
server/features/etcd_features.go Outdated Show resolved Hide resolved
@ahrtr
Copy link
Member

ahrtr commented Dec 19, 2024

Please follow #19053

server/etcdserver/server_test.go Outdated Show resolved Hide resolved
server/etcdserver/server_test.go Outdated Show resolved Hide resolved
server/etcdserver/server_test.go Outdated Show resolved Hide resolved
@siyuanfoundation
Copy link
Contributor

siyuanfoundation commented Dec 20, 2024

A few nits, and +1 to @ahrtr comments.
Otherwise lgtm.

Thank you @ishan16696 Great work!

@ishan16696
Copy link
Contributor Author

ishan16696 commented Dec 21, 2024

Take care of the case of configFile

I didn't get this, do I need to follow this PR: #19053 and make appropriate changes here ?

@ahrtr
Copy link
Member

ahrtr commented Dec 21, 2024

Take care of the case of configFile

I didn't get this, do I need to follow this PR: #19053 and make appropriate changes here ?

It has already been processed correctly, so no any action in this PR. Sorry for the confusion.

etcd/server/embed/config.go

Lines 842 to 844 in 9fa35e5

for flg := range cfgMap {
cfg.FlagsExplicitlySet[flg] = true
}

Please resolve the minor comment in #19078 (comment) before we merge this PR. Thanks

@ahrtr
Copy link
Member

ahrtr commented Dec 21, 2024

Please also squash the commits.

@ishan16696 ishan16696 force-pushed the migrate/flagTofeatureGate branch from 38d10e8 to c73b3d1 Compare December 21, 2024 18:16
@ishan16696
Copy link
Contributor Author

Please resolve the minor comment in #19078 (comment) before we merge this PR. Thanks

done

Please also squash the commits.

done

@ishan16696
Copy link
Contributor Author

/test pull-etcd-unit-test-386

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, ishan16696, serathius

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ahrtr ahrtr merged commit e30a4ab into etcd-io:main Dec 21, 2024
34 checks passed
@ishan16696 ishan16696 deleted the migrate/flagTofeatureGate branch December 21, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

migrate experimental-txn-mode-write-with-shared-buffer flag to feature gate
5 participants