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

Fix session ID generation #5916

Merged
merged 6 commits into from
Aug 8, 2024
Merged

Fix session ID generation #5916

merged 6 commits into from
Aug 8, 2024

Conversation

Aiee
Copy link
Contributor

@Aiee Aiee commented Aug 6, 2024

Use random uint64 instead of timestamp as the session ID to prevent ID duplication when creating sessions with a high concurrency.

Verified manually by @Nicole00 .

@Aiee Aiee added ready-for-testing PR: ready for the CI test ready for review labels Aug 6, 2024
@Aiee Aiee requested review from dutor and Nicole00 August 6, 2024 10:16
dutor
dutor previously approved these changes Aug 6, 2024
Copy link
Contributor

@dutor dutor left a comment

Choose a reason for hiding this comment

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

LGTM.

@Aiee Aiee requested a review from codesigner August 6, 2024 10:24
@dutor dutor requested review from critical27 and removed request for codesigner August 6, 2024 10:24
@Aiee Aiee requested a review from codesigner August 6, 2024 10:25
Nicole00
Nicole00 previously approved these changes Aug 6, 2024
@Shinji-IkariG Shinji-IkariG added ready for review ready-for-testing PR: ready for the CI test and removed ready for review ready-for-testing PR: ready for the CI test labels Aug 7, 2024
@Aiee Aiee dismissed stale reviews from Nicole00 and dutor via 7ef1f17 August 7, 2024 04:42
@Aiee Aiee requested review from Nicole00 and dutor August 7, 2024 10:40
@dutor dutor merged commit c078c6c into vesoft-inc:master Aug 8, 2024
3 of 5 checks passed
@Aiee Aiee deleted the sessionID branch August 8, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants