fabric icon indicating copy to clipboard operation
fabric copied to clipboard

Error:Failed to execute transaction or query

Open dongmingh opened this issue 8 years ago • 5 comments

Description

commit level: master branch from Gerrit commit f1b6762f569852f1fa75bd9a280507c3178fbe6d

issue: 4-peer network with PBFT-batch, security and privacy enabled chaincode: example02 transactions generated from SoapUI to query the same key, say a, repeatedly with 1 thread only, no error message with multi-threads, say 100, see the following message frequently:

14:16:17.153 [rest] processChaincodeInvokeOrQuery -> ERRO 5483 Error when querying chaincode: Error:Failed to execute transaction or query(Error sending QUERY: txid:ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb exists)

The same error message shown on the log if use jMeter.

Describe How to Reproduce

  1. use local_fabric.sh to setup a 4-peer network pbft-batch, security and privacy enabled
  2. use and application, e.g., SoapUI or jMeter, to generate query with multi-thread
  3. check logs for the error message.

dongmingh avatar Aug 09 '16 14:08 dongmingh

http://gerrit.hyperledger.org/r/313 makes TXIDs no longer unique but one side effect of this is concurrent queries will fail

dongmingh avatar Aug 09 '16 14:08 dongmingh

You should deploy chaincode with security and privacy.

ghost avatar Aug 09 '16 17:08 ghost

@scorpiovn : security and privacy enabled on peers. Seems this is a new issue after merge http://gerrit.hyperledger.org/r/313 patchset. @muralisrini do you have any inputs on this?

rameshthoomu avatar Aug 10 '16 03:08 rameshthoomu

@dongmingh we've migrated to using Jira for issue tracking, please open an issue there and close this one. You'll need a Linux Foundation ID to login. Thanks

christo4ferris avatar Aug 21 '16 19:08 christo4ferris

Is this issue still open? I'm hitting the same problem in 0.6. Can anyone point me to the related JIRA issue please?

nickmelis avatar Apr 05 '17 10:04 nickmelis