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

Namespace is not stripped off events generated via a NamspaceFacade

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.0-incubating
    • 2.3.0
    • Framework
    • Should be reproducable in any environment. Has been reproduced running on Windows 7 and Solaris 10.

    Description

      When a namespace is defined via the CuratorFrameworkFactory.Builder methods, paths for events generated by the CuratorFramework have the namespace stripped off them.

      When using a NamespaceFacade, the paths for generated event paths include the namespace.

      This appears to be due to the implementation of the Watcher() interface in the constructor of the CuratorFrameworkImpl class. It attempts to remove the namespace from events before passing them to CuratorListener instances. In the case where the namespace is defined by the builder (and is thus part of the base CuratorFramework instance) this works fine. In the case where a NamespaceFacade is being used then the namespace of the base CuratorFramework instance is used instead of the namespace of the NamespaceFacade).

      I will attach a simple test case to reproduce

      Attachments

        1. NamespaceTest.java
          3 kB
          Cam McKenzie

        Activity

          People

            randgalt Jordan Zimmerman
            cammckenzie Cam McKenzie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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