O(n+1) Transaction failing to store correctly in tables, after O(n) transaction SQL failure

Description

Replicated using OS 3.2 branching off from https://github.com/roger3cev/obligation-cordapp/tree/release-V3

AB-Testing
Modified the obligation state with additional field called remark and added jpa schemas.

On 3.0

  1. Created an obligation linear state with remark with text larger than 256.

  2. Error is thrown in log.

  3. This tx was recorded in initiator's vault_states, NOT in vault_linear_states, not in obligation_states_table

  4. Nothing is recorded in responder's side.

  5. Created a new obligation linear state with remark with text LESS than 256.

  6. State created successfully.

  7. This tx was recorded in initiator's vault_states, NOT in vault_linear_states, not in obligation_states_table

  8. This tx was recorded in responder's vault_states, vault_linear_states, obligation_states_table

On 3.2

  1. Created an obligation linear state with remark with text larger than 256.

  2. Error is thrown in log.

  3. Nothing is recorded at initiator's side

  4. Nothing is recorded in responder's side.

  5. Created a new obligation linear state with remark with text LESS than 256.

  6. State created successfully.

  7. This tx was recorded in initiator's vault_states, NOT in vault_linear_states, not in obligation_states_table

  8. This tx was recorded in responder's vault_states, vault_linear_states, obligation_states_table

IT IS THE "NEXT" TRANSACTION AFTER THE FAILED TRANSACTION THAT IS THE ISSUE

Activity

Show:
Katelyn Baker
July 26, 2018, 11:27 AM

patch/release-V3.2.1847

Katelyn Baker
July 30, 2018, 12:22 PM

can you raise a backport PR into release-V3, it doesn't cherry pick clenaly from the 3.2 patch alas

Tudor Malene
July 30, 2018, 1:01 PM

, is that the v3.x branch?

Katelyn Baker
July 30, 2018, 2:57 PM

no, as requested it's the release-V3 branch

Katelyn Baker
August 6, 2018, 10:51 AM

Merged patch onto the release-V3 branch

Assignee

Tudor Malene

Reporter

Neal Shah

Labels

Sprint

None

Epic Link

None

Priority

High

Severity

Medium

CVSS Score

None

CVSS Vector

None

Due Date

None

Engineering Teams

None

Fix versions

Affects versions

Ported to...

None

Story Points / Dev Days

None
Configure