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

Sync with inBackground doesnt complete if curator client is closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.1
    • None
    • Client, Framework
    • None

    •     Version: 4.0.1
          Platform: linux
          Subsystem: ubuntu
    • Important

    Description

      Calling sync with a callback on a closed client doesnt fail synchronously. Nor is the callback invoked with failure details.

      Following is the code snippet to reproduce the issue:

      client.close();

      client.sync().inBackground(callback, executor).forPath(path);

       

      This works correctly for other api calls like `getData` etc where the call fails synchronously.

      Expected Behaviour:

      Callback should have been called with IllegalStateException or any other appropriate failure. Or attempt to call sync on a closed client should have failed synchronously. But neither does the api fail nor is the callback invoked unlike it is for all other types of calls.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shiveshranjan1 shivesh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: