We're updating the issue view to help you get more done. 

Unable to insert state into vault if notary was just started using Corda OS-4.0

Description

Transaction flow could throw SQL exception when Notary node connected to the network with a delay

 

Steps to reproduce:

  1. Register Notary node and a normal nodes

  2. Start normal node without Notary node and wait until node started

  3. Start Notary node and run the cash issue flow once Notary node started

 

After performing steps above using behave, following records inserted into normal node’s log

1 2 [ERROR] 12:10:39+0300 [Node thread-1] spi.SqlExceptionHelper.logExceptions - NULL not allowed for column "NOTARY_NAME"; SQL statement:insert into vault_states (constraint_data, constraint_type, consumed_timestamp, contract_state_class_name, lock_id, lock_timestamp, notary_name, recorded_timestamp, relevancy_status, state_status, output_index, transaction_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)

Behave .feature file could be found in attachments

This issue was reproduced in Corda version [OS-4.0]
Not reproducible in Corda versions [ENT-4.0], [OS-4.1-RC02], [ENT-4.1-RC02], [4.2-ER-20190723 ]

Status

Assignee

Unassigned

Reporter

Alexey Shirin

Priority

Medium

Labels

None

Severity

Medium

Fix versions

None

Ported to...

None

Feature Team

Notaries

Affects versions

Corda 4.0