Skip to content

Commit

Permalink
Addressed the review comments 2.
Browse files Browse the repository at this point in the history
Signed-off-by: ishan16696 <[email protected]>
  • Loading branch information
ishan16696 committed Dec 21, 2024
1 parent d7c65f9 commit 38d10e8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions server/etcdmain/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ var (
"snapshot-count": "--snapshot-count is deprecated in 3.6 and will be decommissioned in 3.7.",
"max-snapshots": "--max-snapshots is deprecated in 3.6 and will be decommissioned in 3.7.",
"v2-deprecation": "--v2-deprecation is deprecated and scheduled for removal in v3.8. The default value is enforced, ignoring user input.",
"experimental-compact-hash-check-enabled": "--experimental-compact-hash-check-enabled is deprecated in 3.6 and will be decommissioned in 3.7. Use '--feature-gates=CompactHashCheck=true' instead.",
"experimental-compact-hash-check-time": "--experimental-compact-hash-check-time is deprecated in 3.6 and will be decommissioned in 3.7. Use '--compact-hash-check-time' instead.",
"experimental-compact-hash-check-enabled": "--experimental-compact-hash-check-enabled is deprecated in 3.6 and will be decommissioned in 3.7. Use '--feature-gates=CompactHashCheck=true' instead.",
"experimental-compact-hash-check-time": "--experimental-compact-hash-check-time is deprecated in 3.6 and will be decommissioned in 3.7. Use '--compact-hash-check-time' instead.",
"experimental-txn-mode-write-with-shared-buffer": "--experimental-txn-mode-write-with-shared-buffer is deprecated in v3.6 and will be decommissioned in v3.7. Use '--feature-gates=TxnModeWriteWithSharedBuffer=true' instead.",
}
)

Expand Down
2 changes: 1 addition & 1 deletion server/etcdmain/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ Experimental feature:
Duration of periodical watch progress notification.
--experimental-warning-apply-duration '100ms'
Warning is generated if requests take more than this duration.
--experimental-txn-mode-write-with-shared-buffer 'true'. It's deprecated, and will be decommissioned in v3.7. Use '--feature-gates=TxnModeWriteWithSharedBuffer=true' instead.
--experimental-txn-mode-write-with-shared-buffer 'true'. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--feature-gates=TxnModeWriteWithSharedBuffer=true' instead.
Enable the write transaction to use a shared buffer in its readonly check operations.
--experimental-bootstrap-defrag-threshold-megabytes
Enable the defrag during etcd server bootstrap on condition that it will free at least the provided threshold of disk space. Needs to be set to non-zero value to take effect.
Expand Down
8 changes: 4 additions & 4 deletions server/etcdserver/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func TestV2SetMemberAttributes(t *testing.T) {
cl := newTestClusterWithBackend(t, []*membership.Member{{ID: 1}}, be)

cfg := config.ServerConfig{
ServerFeatureGate: features.NewDefaultServerFeatureGate("TxnModeWriteWithSharedBuffer", nil),
ServerFeatureGate: features.NewDefaultServerFeatureGate("test", nil),
}

srv := &EtcdServer{
Expand Down Expand Up @@ -206,7 +206,7 @@ func TestV2SetClusterVersion(t *testing.T) {
cl := newTestClusterWithBackend(t, []*membership.Member{}, be)
cl.SetVersion(semver.New("3.4.0"), api.UpdateCapability, membership.ApplyBoth)
cfg := config.ServerConfig{
ServerFeatureGate: features.NewDefaultServerFeatureGate("TxnModeWriteWithSharedBuffer", nil),
ServerFeatureGate: features.NewDefaultServerFeatureGate("test", nil),
}

srv := &EtcdServer{
Expand Down Expand Up @@ -778,7 +778,7 @@ func TestSnapshotOrdering(t *testing.T) {
Logger: lg,
DataDir: testdir,
SnapshotCatchUpEntries: DefaultSnapshotCatchUpEntries,
ServerFeatureGate: features.NewDefaultServerFeatureGate("TxnModeWriteWithSharedBuffer", nil),
ServerFeatureGate: features.NewDefaultServerFeatureGate("test", lg),
}

s := &EtcdServer{
Expand Down Expand Up @@ -878,7 +878,7 @@ func TestConcurrentApplyAndSnapshotV3(t *testing.T) {
Logger: lg,
DataDir: testdir,
SnapshotCatchUpEntries: DefaultSnapshotCatchUpEntries,
ServerFeatureGate: features.NewDefaultServerFeatureGate("TxnModeWriteWithSharedBuffer", nil),
ServerFeatureGate: features.NewDefaultServerFeatureGate("test", lg),
},
r: *r,
v2store: st,
Expand Down
2 changes: 1 addition & 1 deletion server/features/etcd_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const (
// main PR: https://github.com/etcd-io/etcd/pull/18279
StopGRPCServiceOnDefrag featuregate.Feature = "StopGRPCServiceOnDefrag"
// TxnModeWriteWithSharedBuffer enables the write transaction to use a shared buffer in its readonly check operations.
// owner: @serathius
// owner: @wilsonwang371
// alpha: v3.6
// main PR: https://github.com/etcd-io/etcd/pull/12896
TxnModeWriteWithSharedBuffer featuregate.Feature = "TxnModeWriteWithSharedBuffer"
Expand Down

0 comments on commit 38d10e8

Please sign in to comment.