Skip to content

ZooReaderWriter.putData may create data, timeout, then fail #1007

Description

@keith-turner

ZooUtil.putData() accepts an option to fail on create if a node exists. I am not completely sure but I think the following can happen.

  • Call to Zookeeper to create data timesout, but it was created by on the ZK server side AND it didn't exist
  • Timeout exception causes a retry
  • Retry fails because the node exists.

I noticed this while reviewing #1005

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions