Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-23466

ZK registry base should remove only specific instance instead of host

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 4.0.0
    • None
    • None
    • None

    Description

      When ZKRegistryBase detects new ZK nodes it maintains path based cache and host based cache. The host based cached already handles multiple instances running in same host. But even if single instance is removed all instances belonging to the host are removed. 

      Another issue is that, if single host has multiple instances it returns a Set with no ordering. Ideally, we want the newest instance to be top of the set (use TreeSet maybe?). 

      Attachments

        1. HIVE-23466.1.patch
          10 kB
          Prasanth Jayachandran
        2. HIVE-23466.2.patch
          10 kB
          Attila Magyar
        3. HIVE-23466.3.patch
          10 kB
          Attila Magyar

        Issue Links

          Activity

            People

              amagyar Attila Magyar
              prasanth_j Prasanth Jayachandran
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: