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

testsessionid parameter is not taken into account while running sgload #73

Open
nl opened this issue Jun 15, 2017 · 1 comment
Open
Labels

Comments

@nl
Copy link

nl commented Jun 15, 2017

looks like # testsessionid parameter is not taken into account while running sgload.

sgload always generates a new uuid, regardless of my specifying a session id when wanting to reuse old users/channels/scenarios.

time ./sgload writeload --sg-url http://localhost:4984/db/ --batchsize 50 --numchannels 10 --numdocs 100 --numwriters 10 --createwriters --testsessionid foo4 --statsdenabled
INFO[06-15|12:27:09] Attempting to expose expvars             port=9876
INFO[06-15|12:27:09] Setting loglevel                         level=info
INFO[06-15|12:27:09] Waiting for writers to finish            numwriters=10
INFO[06-15|12:27:11] Created SG user                          username=writer-user-1-25f72080-3339-44f2-80ac-497fc432b870 channels=[*]

The user-provided value is always overridden by https://github.com/couchbaselabs/sgload/blob/master/cmd/common.go#L86

	loadSpec.TestSessionID = sgload.NewUuid()
@tleyden
Copy link
Contributor

tleyden commented Jun 15, 2017

Yes, that looks like a valid bug. Thanks for reporting!

@djpongh djpongh added icebox and removed backlog labels Nov 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants