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

Dev-2790 > Fixed retrying on transaction #21

Merged
merged 2 commits into from
Jul 31, 2018

Conversation

jettcalleja
Copy link
Contributor

Ticket references

Summary of changes

  • Fix retrying when using transaction
  • Retries count reset for every query in transaction

Checklist

  • bugfix
  • new feature
  • breaking change
  • added unit tests
  • changes introduced has been discussed and approved
  • requires manual testing
  • documentation has been updated

Testing

@coveralls
Copy link

coveralls commented Jul 26, 2018

Coverage Status

Coverage increased (+0.9%) to 84.014% when pulling e93141b on dev-2790-transaction-retrying-not-working into 3095851 on master.

@jettcalleja jettcalleja changed the title Fixed retrying on transaction Dev-2790 > Fixed retrying on transaction Jul 26, 2018
test/test.js Outdated
(err) => {
err.should.exist;
}
)

Choose a reason for hiding this comment

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

Also test running with a valid query and follow by an invalid query?

test/test.js Outdated
)
.commit(err => {
err.should.exist;
err.code.should.be.equal('ER_MAX_RETRIES')

Choose a reason for hiding this comment

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

Should also validate how many times the retry happens?

test/test.js Outdated
err.should.exist;
err.code.should.be.equal('ER_MAX_RETRIES')
done();
});

Choose a reason for hiding this comment

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

Should also test

  1. retry failed with max retry
  2. verify retry is reset for next query
  3. adjust retry and is able to fail with max retry again

@wildtron wildtron merged commit f9902db into master Jul 31, 2018
@wildtron wildtron deleted the dev-2790-transaction-retrying-not-working branch July 31, 2018 03:54
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.

None yet

4 participants