-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-20867 add a flow retry topic to handle retries of transient RPC …
…calls (#1710) (#1712) Add new FlowEvent payload type to capture the details required to generates an external event retry request for transient errors. Co-authored-by: Lorcan Wogan <[email protected]>
- Loading branch information
1 parent
8cf7d72
commit f2d9a46
Showing
6 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...src/main/resources/avro/net/corda/data/flow/event/external/ExternalEventRetryRequest.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "record", | ||
"name": "ExternalEventRetryRequest", | ||
"namespace": "net.corda.data.flow.event.external", | ||
"doc": "This event captures the details of the external event request to allow it to be polled from the bus and retried.", | ||
"fields": [ | ||
{ | ||
"name": "requestId", | ||
"type": "string", | ||
"doc": "The requestId of the external event request to retry." | ||
}, | ||
{ | ||
"name": "timestamp", | ||
"type": { | ||
"type": "long", | ||
"logicalType": "timestamp-millis" | ||
}, | ||
"doc": "Time ([Instant]) in milliseconds when the request was created. Ensures each request is unique for replay logic." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,4 +89,3 @@ topics: | |
producers: | ||
- flow | ||
config: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters