Uploaded image for project: 'jsonrpc'
  1. jsonrpc
  2. JSONRPC-27

Enhance commit error info in case of failure

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

      JsonRpcTX can provide more info when commit failed. Current implementation :

      final Throwable failure = new TransactionCommitFailedException(
                          "Commit of transaction " + getIdentifier() + " failed");
                  listeners.forEach(txListener -> txListener.onFailure(this, failure));
                  return FluentFutures.immediateFailedFluentFuture(failure);

       

      We can instead attempt to call error RPC to get more details

            rkosegi Richard Kosegi
            rkosegi Richard Kosegi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: