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

CORE-16860 counterparty info refactor #1256

Merged
merged 6 commits into from
Sep 21, 2023

Conversation

LWogan
Copy link
Contributor

@LWogan LWogan commented Sep 20, 2023

To request counterparty info when it has not already been exchanged, send a SessionCounterpartyInfoRQ.
Include SessionInit payload to start the remote flow.
If data has already been exchanged SessionCounterpartyInfoRQ wont be sent.
Respond with SessionCounterpartyInfoRS session event payload. Blank fields as contextSessionProperties are set on SessionEvent
SequenceNumber will be set to null for both payload types. Only SessionData and SessionClose payloads will have sequence numbers set on SessionEvent

@LWogan LWogan requested a review from a team as a code owner September 20, 2023 09:22
@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented Sep 20, 2023

Jenkins build for PR 1256 build 5

Build Successful:
Jar artifact version produced by this PR: 5.1.0.21-alpha-1695310843286

@@ -11,7 +11,6 @@
"name": "payload",
"type": [
"net.corda.data.flow.event.StartFlow",
"net.corda.data.flow.event.Wakeup",
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a remote edge case, but removing types like this could be a problem when upgrading from 5.0 to 5.1, need to check with @simon-johnson-r3, also worth adding an avro upgrade test to validate the change (see existing tests for an example)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think upgrade guarantees are just that you won't need to recompile your application. In particular I don't think we're guaranteeing that in flight flows will work across an upgrade, so any events of these types present in the system will need to be cleared before the upgrade can go ahead.

@@ -50,8 +50,8 @@
{
"name": "payload",
"type": [
"net.corda.data.flow.event.session.SessionInit",
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@JamesHR3 JamesHR3 merged commit 28ffabb into release/os/5.1 Sep 21, 2023
@JamesHR3 JamesHR3 deleted the CORE-16860/counterparty-info branch September 21, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants