Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1671

Default method for RemoteConnection.submitAsync throws exception from submit on calling thread instead of failing the future

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.4
    • 3.2.5
    • process
    • None

    Description

      If a RemoteConnection implementation does not override submitAsync, the default method is used which simply wraps submit in a future.

      One downside of this is that if an exception is thrown by submit, the exception is thrown on the calling thread instead of failing the future.

      Failing the future would be more preferable for consistencies sake, otherwise client code would need to consider that an exception could be thrown on the calling thread or that the future may fail.

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              andrew.tolbert Andy Tolbert
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified