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

Enhance commit error info in case of failure

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • None
    • None
    • None

    Description

      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

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: