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

Relax SQL exception constraints in ReadOnlySqlLedger #7675

Merged
merged 1 commit into from
Oct 16, 2020

Conversation

tudor-da
Copy link
Contributor

@tudor-da tudor-da commented Oct 13, 2020

Relax SQL exception constraints in ReadOnlySqlLedger

This was motivated by the fact that PostgreSQL errors do not inherit from java.sql.SQLNonTransientException. We do not want to rely on database implementations throwing specific errors.

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

@tudor-da tudor-da requested a review from a user October 13, 2020 19:15
@tudor-da tudor-da force-pushed the relax-retry-predicate-jdbc-exceptions branch from af4af7d to c7d03c9 Compare October 13, 2020 19:20
@tudor-da tudor-da force-pushed the relax-retry-predicate-jdbc-exceptions branch from c7d03c9 to 5bff05d Compare October 13, 2020 19:23
@tudor-da tudor-da force-pushed the relax-retry-predicate-jdbc-exceptions branch from 5bff05d to b979abd Compare October 14, 2020 06:13
@tudor-da tudor-da changed the title Switch to blacklisting non-retriable errors in ReadOnlySqlLedger Relax SQL exception constraints in ReadOnlySqlLedger Oct 14, 2020
Copy link
Contributor

@fabiotudone-da fabiotudone-da left a comment

Choose a reason for hiding this comment

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

On second thought, can you double-check HikariJdbcConnectionProvider.scala?

Also, I think some unit tests are failing https://dev.azure.com/digitalasset/daml/_build/results?buildId=57951&view=logs&j=0da5d1d9-276d-5173-c4c4-9d4d4ed14fdb&t=f58be928-45a1-58e7-c1ad-04869565b3f4&l=4481

@tudor-da
Copy link
Contributor Author

/AzurePipelines run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@tudor-da
Copy link
Contributor Author

On second thought, can you double-check HikariJdbcConnectionProvider.scala?

Also, I think some unit tests are failing https://dev.azure.com/digitalasset/daml/_build/results?buildId=57951&view=logs&j=0da5d1d9-276d-5173-c4c4-9d4d4ed14fdb&t=f58be928-45a1-58e7-c1ad-04869565b3f4&l=4481

It seems that the failure is occasional and not related (a ticket is already open for this #7521)

@tudor-da tudor-da merged commit 6bfe215 into master Oct 16, 2020
@tudor-da tudor-da deleted the relax-retry-predicate-jdbc-exceptions branch October 16, 2020 08:35
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.

3 participants