Node does not raise any errors in the log if we are trying to initiate a flow from it to another node with a revoked certificate.

Description

Test template: https://r3-cev.atlassian.net/browse/R3T-890

In accordance with the test template, we expect an error in the log of node from which we are trying to initiate a flow to another node with a revoked certificate. But in fact, we only see messages with exception details at the "INFO" log level:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [INFO ] 2019-10-02T14:58:05,244Z [Node thread-1] statemachine.TransitionExecutorImpl. - Error while executing SendInitial(destination=O=Bank A, L=London, C=GB, initialise=InitialSessionMessage(initiatorSessionId= SessionId(toLong=4440478602045047625), initiationEntropy=-1270774274043853868, initiatorFlowClassName=net.corda.finance.flows.CashPaymentFlow, appName=corda-finance-workflows-4.3-RC01, firstPayload=class net.cord a.core.serialization.SerializedBytes), deduplicationId=SenderDeduplicationId(deduplicationId=DeduplicationId(toString=N-R-4440478602045047625--1270774274043853868-1-0), senderUUID=29655dfb-8558-4593-af86-8695fb80 3e9c)), erroring state {actor_id=demo, actor_owning_identity=O=BankOfCorda, L=New York, C=US, actor_store_id=NODE_CONFIG, fiber-id=10000003, flow-id=52fa8407-1f22-4e7c-8157-e79620cda1c4, invocation_id=2861910a-a3 1d-4d25-b823-9d86f2841018, invocation_timestamp=2019-10-02T14:58:05.208Z, origin=demo, session_id=a02ca3e1-edd3-4e6e-83e1-b1c8197ffd4a, session_timestamp=2019-10-02T14:55:16.650Z, thread-id=128} java.lang.IllegalArgumentException: Don't know about O=Bank A, L=London, C=GB at net.corda.node.services.statemachine.FlowMessagingImpl.sendSessionMessage(FlowMessaging.kt:66) ~[corda-node-4.3-RC01.jar:?] ... [INFO ] 2019-10-02T14:58:05,253Z [Node thread-1] statemachine.StaffedFlowHospital. - Error 1 of 1: {actor_id=demo, actor_owning_identity=O=BankOfCorda, L=New York, C=US, actor_store_id=NODE_CONFIG, fiber-id=10000 003, flow-id=52fa8407-1f22-4e7c-8157-e79620cda1c4, invocation_id=2861910a-a31d-4d25-b823-9d86f2841018, invocation_timestamp=2019-10-02T14:58:05.208Z, origin=demo, session_id=a02ca3e1-edd3-4e6e-83e1-b1c8197ffd4a, session_timestamp=2019-10-02T14:55:16.650Z, thread-id=128} java.lang.IllegalArgumentException: Don't know about O=Bank A, L=London, C=GB at net.corda.node.services.statemachine.FlowMessagingImpl.sendSessionMessage(FlowMessaging.kt:66) ~[corda-node-4.3-RC01.jar:?] ... [INFO ] 2019-10-02T14:58:05,258Z [Node thread-1] statemachine.StaffedFlowHospital. - Flow error allowed to propagate {actor_id=demo, actor_owning_identity=O=BankOfCorda, L=New York, C=US, actor_store_id=NODE_CONFIG, fiber-id=10000003, flow-id=52fa8407-1f22-4e7c-8157-e79620cda1c4, invocation_id=2861910a-a31d-4d25-b823-9d86f2841018, invocation_timestamp=2019-10-02T14:58:05.208Z, origin=demo, session_id=a02ca3e1-edd3-4e6e-83e1-b1c8197ffd4a, session_timestamp=2019-10-02T14:55:16.650Z, thread-id=128} java.lang.IllegalArgumentException: Don't know about O=Bank A, L=London, C=GB at net.corda.node.services.statemachine.FlowMessagingImpl.sendSessionMessage(FlowMessaging.kt:66) ~[corda-node-4.3-RC01.jar:?]

followed by a warning message:

1 [WARN ] 2019-10-02T14:58:05,272Z [Node thread-1] statemachine.ActionExecutorImpl. - Propagating error {actor_id=demo, actor_owning_identity=O=BankOfCorda, L=New York, C=US, actor_store_id=NODE_CONFIG, fiber-id=10000003, flow-id=52fa8407-1f22-4e7c-8157-e79620cda1c4, invocation_id=2861910a-a31d-4d25-b823-9d86f2841018, invocation_timestamp=2019-10-02T14:58:05.208Z, origin=demo, session_id=a02ca3e1-edd3-4e6e-83e1-b1c8197ffd4a, session_timestamp=2019-10-02T14:55:16.650Z, thread-id=128}

Probably it relates to https://r3-cev.atlassian.net/browse/CORDA-2757 change.

Could you please confirm if the behavior above is expected.

Logs attached.

Status

Assignee

Viktor Kolomeyko

Reporter

Alexey Panfilov

Labels

None

Priority

Medium

Fix versions

None

Ported to...

None

Feature Team

Select team

Severity

Medium

Affects versions

Corda 4.3 RC01
Configure