-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
Jenkins build for PR 1256 build 5 Build Successful: |
@@ -11,7 +11,6 @@ | |||
"name": "payload", | |||
"type": [ | |||
"net.corda.data.flow.event.StartFlow", | |||
"net.corda.data.flow.event.Wakeup", |
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.
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)
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 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", |
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
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