Graceful reconnect feature of RPC causes exception to drop connection

Description

From External contributors:
https://github.com/corda/corda/issues/5908

I have some RPC client code that calls the RPC call uploadAttachmentWithMetadata. If the attachment already exists, I catch the DuplicateAttachmentException and just return the hash. Here is the Scala code that does that:

When NOT using the new graceful reconnect feature, this works fine (as it did in 4.2). However, if I use the graceful reconnect feature when connecting to RPC, the DuplicateAttachmentException is never caught and causes the RPC connection to drop. The log then shows repeated attempts to reconnect but is never successful.
This is how we connect without graceful reconnect:

This is how we connect with graceful reconnect:

Activity

Show:
ryan.fowler
February 4, 2020, 9:34 PM

I’m pretty sure there’s a support ticket to go along with this. So I suspect it will need to be fixed in CE4.3 as well

ryan.fowler
February 11, 2020, 4:02 PM

Misnamed the branch for this. It’s here:

Dmitry Toropov
February 27, 2020, 3:04 PM

Passed.

Components: Corda OS 4.3, Corda OS/ENT 4.4 RC03, CENM 1.1

 

Assignee

Dmitry Toropov

Reporter

David Rapacchiale

Sprint

None

Epic Link

None

Priority

Medium

Severity

Medium

CVSS Score

None

CVSS Vector

None

Due Date

None

Engineering Teams

Kernel

Affects versions

None

Ported to...

Corda 4.4
Corda Enterprise 4.4
Corda 4.5

Story Points / Dev Days

0
Configure