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(274): listLeaseExpiredCmd ignore tasks those are no longer exist #709

Merged
merged 2 commits into from
Dec 10, 2023

Conversation

yeqown
Copy link
Contributor

@yeqown yeqown commented Jul 30, 2023

fix issue #274

@yeqown
Copy link
Contributor Author

yeqown commented Jul 30, 2023

For more detail information, I've put them into issue already.

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8b422c2) 68.37% compared to head (fe18dde) 68.37%.
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #709   +/-   ##
=======================================
  Coverage   68.37%   68.37%           
=======================================
  Files          27       27           
  Lines        3836     3836           
=======================================
  Hits         2623     2623           
  Misses        929      929           
  Partials      284      284           

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

@yeqown
Copy link
Contributor Author

yeqown commented Aug 1, 2023

What should I do with this codecov report? @kamikazechaser

@kamikazechaser
Copy link
Collaborator

codecov report

Personally, I think it is fine and would ignore it.

Though it would be good to know an easy way to reproduce this bug.

@yeqown
Copy link
Contributor Author

yeqown commented Aug 1, 2023

Further more, I found the root cause is in the Lua script listLeaseExpiredCmd. while a task key is deleted manually, but it is still in a asynq:{qname}:lease key, listLeaseExpiredCmd return values would contains a nil item, and then be processed which produces the ZERO TaskMessage.

@yeqown yeqown changed the title fix(274): ignore empty data to append to msgs fix(274): listLeaseExpiredCmd ignore tasks those are no longer exist Aug 1, 2023
@yeqown
Copy link
Contributor Author

yeqown commented Aug 2, 2023

@kamikazechaser Can you merge this?

@kamikazechaser
Copy link
Collaborator

I might need more info on how to reproduce the issue. From #274 it is not very clear on how this is encountered. But the change does look sensible in any case.

@darren128
Copy link

@kamikazechaser Can we get this merged?

Copy link
Collaborator

@kamikazechaser kamikazechaser left a comment

Choose a reason for hiding this comment

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

LGTM

@hibiken We can merge this

@kamikazechaser
Copy link
Collaborator

Possibly related to #730.

@hibiken hibiken merged commit 1e0bf88 into hibiken:master Dec 10, 2023
11 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.

4 participants