Having non-corda reference.conf files on classpath causes DriverDSLImp failure

Description

From external contributors:
https://github.com/corda/corda/issues/5881

To reproduce:
With a Corda 4.3 test that uses the DriverDSL add a file to the resources directory called reference.conf that includes a property (say 'akka').

Run the driver test.

Output:
ERROR 44:05 net.corda.testing.node.internal.DriverDSLImpl - Driver shutting down because of exception
java.lang.IllegalStateException: Unknown property 'akka': (keyName='akka', typeName='null', path=[akka])

Activity

Show:
Tamas Veingartner
June 2, 2020, 8:32 AM

depends on merge of

Matthew Nesbit
July 6, 2020, 8:46 AM

I don’t see how this relates. We need to rename reference.conf and change loading of the config file in node in both CordaCaplet.java and ConfigUtilities.kt see https://github.com/corda/enterprise/compare/release-V4.4...mnesbit-async-messaging44 for where I did this experimentally.

Tamas Veingartner
July 6, 2020, 3:38 PM

This was done in this change. It depended on that above change to include that newly introduced config value as well in the renamed file

Alexey Chernikov
July 23, 2020, 5:42 PM
Edited

Checked. All the tests are passed. The issue was reproduced using corda-4.3 and then re-checked in corda-4.6-HC01. It seems to be fixed.

Components/versions tested: corda-OS-4.6-HC01.jar, corda-ENT-4.6-HC01.jar

Logs and configs are attached.

 

Alexey Chernikov
September 7, 2020, 7:39 AM

Checked. All the tests are passed. The issue was reproduced using corda-4.3 and then re-checked in corda-4.6-RC04. It seems to be fixed.

Components/versions tested: corda-OS-4.6-RC04.jar, corda-ENT-4.6-RC04.jar

Logs and configs are attached.

 

Assignee

Alexey Chernikov

Reporter

David Rapacchiale

Sprint

Epic Link

None

Priority

Medium

Severity

Medium

CVSS Score

None

CVSS Vector

None

Due Date

None

Engineering Teams

Kernel

Fix versions

Affects versions

None

Ported to...

None

Story Points / Dev Days

0
Configure