IBM / customer-loyalty-program

# WARNING: This repository is no longer maintained :warning: This pattern focuses on older technology (e.g. Hyperledger Fabric APIs prior to Fabric 1.4). Therefore, there is no support for this pattern and it will be archived on May 1, 2019. You are welcome to use up to that date, but we recommend that you begin working with the updated release found at https://developer.ibm.com/patterns/customer-loyalty-program-with-iks-saas-v2-fabric/.
https://developer.ibm.com/patterns/customer-loyalty-program-with-blockchain/
Apache License 2.0
64 stars 78 forks source link

Error code MVCC_READ_CONFLICT #13

Open gnurtcouq opened 5 years ago

gnurtcouq commented 5 years ago

Hi All,

I tried to do multiple transactions and have error below.

Error: Error trying invoke business network with transaction id 87c91cb2cd7e7a232466b20d017ad2c3417e6d87ed7aa8a8bef8a3f934526277. Error: Peer localhost:7051 has rejected transaction '87c91cb2cd7e7a232466b20d017ad2c3417e6d87ed7aa8a8bef8a3f934526277' with code MVCC_READ_CONFLICT

The scenario: when a Member earns Points through Purchase, there are 2 transactions:

I have added pointquota and balance in Partner model as: participant Partner identified by id { o String id o String name o Integer pointquota default=1000 o Integer balance }

Any idea how to fix this? If I simply separate 2 transactions by using GUI (click buttons in html page), the 2 transaction went thought.

Thx in advance.