Skip to content

ZooKeeper Service Discovery Fails to Detect Node Shutdown #206

Description

@coder-jeffery

case 1:

Issue:
ZooKeeper service discovery fails to detect service instances going offline — Critical

Root cause:
In registry/zookeeper/src/lib.rs, the second loop within the diff() function queries the wrong map:

As a result, removed_hosts remains empty, and consumers continue to send requests to "zombie" nodes after the provider has gone offline.

case 2:

Issue:
Incorrect operator precedence in TLS conditional expression — Critical

Root cause:
!self.keys.len() != 0 always evaluates to true; this causes a panic due to remove(0) when certificates are present but keys are missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions