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

Wrong exception when a SessionedClient is initialized with no available host

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.2.1
    • 3.1.4, 3.2.2
    • driver
    • None

    Description

      When a SessionedClient is initialized and no host is available in the cluster,
      We got an indexOutOfBoundsException instead of a proper Exception like when we try to contact a closed client.

      Attachments

        Issue Links

          Activity

            githubbot ASF GitHub Bot added a comment -

            GitHub user davidclement90 opened a pull request:

            https://github.com/apache/tinkerpop/pull/392

            TINKERPOP-1419 : Throw a proper exception when no available host in a SessionedClient

            When a SessionedClient is initialized and no host is available in the cluster,
            A proper exception is thrown instead of an IndexOutOfBoundsException

            You can merge this pull request into a Git repository by running:

            $ git pull https://github.com/davidclement90/tinkerpop TINKERPOP-1419

            Alternatively you can review and apply these changes as the patch at:

            https://github.com/apache/tinkerpop/pull/392.patch

            To close this pull request, make a commit to your master/trunk branch
            with (at least) the following in the commit message:

            This closes #392


            commit a50546397d05f53a64717e7c4ed9535c27dd3eed
            Author: davidclement90 <david.clement90@laposte.net>
            Date: 2016-08-29T09:30:49Z

            Throw a proper exception when no available host

            When a SessionedClient is initialized and no host is available in the cluster,
            A proper exception is thrown instead of an IndexOutOfBoundsException


            githubbot ASF GitHub Bot added a comment - GitHub user davidclement90 opened a pull request: https://github.com/apache/tinkerpop/pull/392 TINKERPOP-1419 : Throw a proper exception when no available host in a SessionedClient When a SessionedClient is initialized and no host is available in the cluster, A proper exception is thrown instead of an IndexOutOfBoundsException You can merge this pull request into a Git repository by running: $ git pull https://github.com/davidclement90/tinkerpop TINKERPOP-1419 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tinkerpop/pull/392.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #392 commit a50546397d05f53a64717e7c4ed9535c27dd3eed Author: davidclement90 <david.clement90@laposte.net> Date: 2016-08-29T09:30:49Z Throw a proper exception when no available host When a SessionedClient is initialized and no host is available in the cluster, A proper exception is thrown instead of an IndexOutOfBoundsException
            githubbot ASF GitHub Bot added a comment -

            Github user spmallette commented on the issue:

            https://github.com/apache/tinkerpop/pull/392

            Thanks for this. Merged via CTR to tp31 and then master.

            githubbot ASF GitHub Bot added a comment - Github user spmallette commented on the issue: https://github.com/apache/tinkerpop/pull/392 Thanks for this. Merged via CTR to tp31 and then master.
            githubbot ASF GitHub Bot added a comment -

            Github user asfgit closed the pull request at:

            https://github.com/apache/tinkerpop/pull/392

            githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/tinkerpop/pull/392

            People

              spmallette Stephen Mallette
              davidclement90 David Clement
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: