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

refactor getty module #746

Merged
merged 26 commits into from
Dec 21, 2024
Merged

refactor getty module #746

merged 26 commits into from
Dec 21, 2024

Conversation

No-SilverBullet
Copy link
Contributor

What this PR does:
Refactoring the getty module:

  1. The logic of newSession is adjusted to sessionManager, all the logic of rpcClient is moved to sessionManager, and rpcClient is removed;
  2. The sessionManager member in gettyClientHandler is removed
  3. gettyRemoting cancels the singleton, as a member variable of gettyRemotingClient, gettyRemotingClient continues to maintain the singleton to provide communication capabilities for the upper layer
  4. Added the function of removing the session after the heartbeat fails and the maximum number of retries is exceeded

Which issue(s) this PR fixes:
#695
#694
#740

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


No-SilverBullet and others added 26 commits November 10, 2024 13:06
feat:change golangclilint version to 1.57.x to support more linter
feat:adjust lint conf and adjust the code to pass the check
feat:close session when send heart beat message failed
style: format some code; fix: some sql statement or rows was not been…
>
>
Co-authored-by: marsevilspirit <[email protected]>
Co-authored-by: solisamicus <[email protected]>
Co-authored-by: No-SilverBullet  <[email protected]>
Co-authored-by: marsevilspirit <[email protected]>
Co-authored-by: solisamicus <[email protected]>
Co-authored-by: No-SilverBullet  <[email protected]>
@luky116 luky116 merged commit 8ce1006 into apache:master Dec 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants