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

Reproduce revision inconsistency issue #14724

Closed
wants to merge 2 commits into from

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Nov 10, 2022

Signed-off-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Benjamin Wang <wachao@vmware.com>
@codecov-commenter
Copy link

Codecov Report

Merging #14724 (d4f1c47) into main (ccec27b) will decrease coverage by 0.36%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #14724      +/-   ##
==========================================
- Coverage   75.65%   75.28%   -0.37%     
==========================================
  Files         457      457              
  Lines       37317    37317              
==========================================
- Hits        28232    28095     -137     
- Misses       7324     7443     +119     
- Partials     1761     1779      +18     
Flag Coverage Δ
all 75.28% <ø> (-0.37%) ⬇️

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

Impacted Files Coverage Δ
etcdutl/etcdutl/migrate_command.go 21.05% <0.00%> (-53.95%) ⬇️
server/etcdserver/api/v3election/election.go 59.09% <0.00%> (-9.10%) ⬇️
client/v3/leasing/util.go 91.66% <0.00%> (-6.67%) ⬇️
server/lease/lease.go 94.87% <0.00%> (-5.13%) ⬇️
client/v3/concurrency/session.go 88.63% <0.00%> (-4.55%) ⬇️
server/etcdserver/api/v3rpc/watch.go 82.53% <0.00%> (-4.45%) ⬇️
server/etcdserver/api/v3rpc/interceptor.go 73.43% <0.00%> (-4.17%) ⬇️
server/etcdserver/api/v3rpc/key.go 79.45% <0.00%> (-4.11%) ⬇️
client/v3/leasing/cache.go 87.77% <0.00%> (-3.89%) ⬇️
server/etcdserver/api/rafthttp/msgappv2_codec.go 71.30% <0.00%> (-3.48%) ⬇️
... and 21 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -33,7 +33,7 @@ type Traffic interface {
type putGetTraffic struct{}

func (t putGetTraffic) Run(ctx context.Context, c *recordingClient, limiter *rate.Limiter) {
maxOperationsPerClient := 1000000
maxOperationsPerClient := 10
Copy link
Member

Choose a reason for hiding this comment

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

Any reason to set this? This number is used to ensure each client write has unique value. This is done by shifting starting id value for each client and limiting number of writes. For example first client writes values 0...1000000, second client writes 1000000...2000000 and so forth.

Lowering this number just results in clients making 10 requests and finishing.

err := triggerFailpoints(ctx, t, clus, failpoint)
if err != nil {
t.Error(err)
}
}()
operations := simulateTraffic(ctx, t, clus, traffic)
clus.Close()
time.Sleep(10 * time.Second)
Copy link
Member

Choose a reason for hiding this comment

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

I would not recommend removing cluster.Stop here as this is needed to saftly copy out the data dir.

}

path, err := filepath.Abs(filepath.Join(resultsDirectory, strings.Replace(t.Name(), "/", "_", -1)+".html"))
path, err := filepath.Abs(filepath.Join("/Users/wachao/tmp/etcd/test/", strings.Replace(t.Name(), "/", "_", -1)+".html"))
Copy link
Member

Choose a reason for hiding this comment

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

You can just use RESULTS_DIR environment variable

@serathius
Copy link
Member

Strange that you are able to reproduce issue locally as I don't see any changes that influences the test itself.

@ahrtr
Copy link
Member Author

ahrtr commented Nov 11, 2022

This PR isn't targeting for merge. It's just show you how I reproduced the issue with simplified test case.

@ahrtr ahrtr closed this Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants