-
Notifications
You must be signed in to change notification settings - Fork 205
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
Support rollback nodes in PostCommitValidation #9501
Conversation
With that and the other in-flight PRs, #9400 now passes against Daml on SQL. changelog_begin changelog_end
48fb708
to
efb4c0b
Compare
case ((created, ids), _) => (created, ids) | ||
} | ||
referred.diff(createdInTransaction) | ||
transaction.inputContracts.diff(divulged) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is a one-liner used only in one place I'd suggest to just inline it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered it but it seemed easier for review at least to only replace the implementation but leave it in a separate definition. Don’t feel strongly though so happy to inline it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call as a first step. 🙇🏻
...ntegration-api/src/main/scala/platform/store/appendonlydao/events/PostCommitValidation.scala
Outdated
Show resolved
Hide resolved
...ntegration-api/src/main/scala/platform/store/appendonlydao/events/PostCommitValidation.scala
Outdated
Show resolved
Hide resolved
case ((created, ids), _) => (created, ids) | ||
} | ||
referred.diff(createdInTransaction) | ||
transaction.inputContracts.diff(divulged) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, I'd recommend to just inline this.
...ticipant-integration-api/src/main/scala/platform/store/dao/events/PostCommitValidation.scala
Outdated
Show resolved
Hide resolved
...ticipant-integration-api/src/main/scala/platform/store/dao/events/PostCommitValidation.scala
Outdated
Show resolved
Hide resolved
…re/appendonlydao/events/PostCommitValidation.scala Co-authored-by: Stefano Baghino <[email protected]>
…re/appendonlydao/events/PostCommitValidation.scala Co-authored-by: Stefano Baghino <[email protected]>
…re/dao/events/PostCommitValidation.scala Co-authored-by: Stefano Baghino <[email protected]>
…re/dao/events/PostCommitValidation.scala Co-authored-by: Stefano Baghino <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...ntegration-api/src/main/scala/platform/store/appendonlydao/events/PostCommitValidation.scala
Outdated
Show resolved
Hide resolved
...ntegration-api/src/main/scala/platform/store/appendonlydao/events/PostCommitValidation.scala
Outdated
Show resolved
Hide resolved
...ntegration-api/src/test/suite/scala/platform/store/dao/events/PostCommitValidationSpec.scala
Outdated
Show resolved
Hide resolved
...ntegration-api/src/test/suite/scala/platform/store/dao/events/PostCommitValidationSpec.scala
Outdated
Show resolved
Hide resolved
...ntegration-api/src/test/suite/scala/platform/store/dao/events/PostCommitValidationSpec.scala
Outdated
Show resolved
Hide resolved
...ntegration-api/src/test/suite/scala/platform/store/dao/events/PostCommitValidationSpec.scala
Outdated
Show resolved
Hide resolved
Co-authored-by: Miklos <[email protected]>
This PR has been created by a script, which is not very smart and does not have all the context. Please do double-check that the version prefix is correct before merging. @nickchapman-da is in charge of this release. Commit log: ``` e1e878a Simplify opt-in/out of Oracle when building (#9515) d761853 KVL-874 Add unit tests for Telemetry (#9500) c567680 Support rollback nodes in PostCommitValidation (#9501) a335ee8 Support rollback nodes in KeyValueCommitting.submissionOutputs (#9512) 8747b3d Support rollback nodes in TransactionIndexing (#9506) c4cf3c9 kvutils: Log a missing input state warning without the stack trace. (#9513) 4e712a0 add oracle option for json-api perf runner (#9492) 8cd3658 Switch to an environment variable for enabling Oracle tests. (#9511) e39c20e update GPG public key (#9488) 782109d update LATEST (#9508) 3e66611 Nest stakeholders in contracts table as JSON arrays (#9484) aecdc2a update NOTICES file (#9507) ``` Changelog: ``` - [JSON-API Perf] ``--query-store-index=postgres`` must be passed to select PostgreSQL query store performance testing; ``true`` and ``yes`` are no longer supported. See `issue #9492 <https://github.com/digital-asset/daml/pull/9492>`__. ``` CHANGELOG_BEGIN CHANGELOG_END
With that and the other in-flight PRs, #9400 now passes against Daml
on SQL.
changelog_begin
changelog_end
Pull Request Checklist
CHANGELOG_BEGIN
andCHANGELOG_END
tagsNOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with
/AzurePipelines run
totrigger the build.