Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-585

Discovery sample did not check for exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.1.0
    • 5.2.0
    • None
    • None
    • MacBook Pro (15-inch, 2019)

    Description

      I tried to run `DiscoveryExample` to simulate service discovery, when I first entered list to see the list of registrations, I found that the process exited directly, I checked the code and found that the code threw `NoNodeException` but it was ignored.

      I think if there is no service registered, using `list` should tell me that no service is registered instead of just ignoring the exception and closing the connection, so I am asking this question, what do you think?

      Attachments

        Activity

          People

            eolivelli Enrico Olivelli
            iwangjie 王杰
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 10m
                2h 10m