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

[ISSUE #9193]Optimized get sequential message lock logic #9194

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

3424672656
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #9193

Brief Description

How Did You Test This Change?

@codecov-commenter
Copy link

codecov-commenter commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.01%. Comparing base (98308f6) to head (6754baa).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9194      +/-   ##
=============================================
- Coverage      48.15%   48.01%   -0.14%     
+ Complexity     12112    12081      -31     
=============================================
  Files           1321     1321              
  Lines          93030    93024       -6     
  Branches       11923    11919       -4     
=============================================
- Hits           44796    44668     -128     
- Misses         42715    42824     +109     
- Partials        5519     5532      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


LockEntry lockEntry = groupValue.get(mq);
if (null == lockEntry) {
lockEntry = new LockEntry();
lockEntry.setClientId(clientId);
lockEntry.setLastUpdateTimestamp(System.currentTimeMillis());
Copy link
Contributor

Choose a reason for hiding this comment

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

It seem that lastUpdateTimestamp has been initialized when LockEntry is created.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In older versions, updatetime was not initialized here,After changing the logic, you can get the lock by default here and return success directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Remove invalid judgments and use atomicity functions
3 participants