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: expirer pending requests #1843

Merged
merged 5 commits into from
Jan 6, 2023
Merged

Conversation

ganchoradkov
Copy link
Member

Description

An issue was identified with pending requests where on approving/rejecting a request was logging{context: 'core'} {context: 'core/expirer'} 'No matching key. expirer: topic:id:1672999835033891'.
The problem was caused by formatTarget being called twice on the same key in expirer.del flow thus prepending the topic:.. & id:... to the key

Additionally, the expiration calculation was incorrect for pending requests and is also resolved in the PR

How Has This Been Tested?

dogfooding
additional test for the expirer

Due Dilligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@ganchoradkov ganchoradkov requested a review from bkrem January 6, 2023 13:05
@ganchoradkov ganchoradkov self-assigned this Jan 6, 2023
@arein arein added the accepted label Jan 6, 2023
@ganchoradkov ganchoradkov added type: bug Something isn't working and removed accepted labels Jan 6, 2023
Copy link
Member

@bkrem bkrem left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for identifying and adding initial expirer coverage 🙏 💯

@ganchoradkov ganchoradkov merged commit 6f8302d into v2.0 Jan 6, 2023
@ganchoradkov ganchoradkov deleted the fix/expirer-pending-requests branch January 6, 2023 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants