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

change the status to concurrent query failed #405

Conversation

NatSau02
Copy link
Contributor

@NatSau02 NatSau02 commented Mar 1, 2024

Description

#404

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Checklist

  • Linter passes correctly
  • Add tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

Does this introduce a breaking change?

  • Yes
  • No

Further comments

return r.updateTransactionState(key, []byte{uint8(transactionCompleted)})
}

func (r *redisTransactionRegistry) Fail(key *Key, reason string) error {
func (r *redisTransactionRegistry) Fail(key *Key, statusCode int, reason string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

becareful because you don't serialize the statusCode in redis.
Therefore, your fix won't always work (depending on the configuration used). If you start changing the serialization, you also take into account the backward compatibility

@mga-chka
Copy link
Collaborator

I'm pinging you just in case you didn't see the comments @NatSau02

@mga-chka
Copy link
Collaborator

mga-chka commented Apr 8, 2024

since I accepted the PR #407, I'm removing this one, cf the previous discussions

@mga-chka mga-chka closed this Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants