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

Locking Not Working with DistributedIdQueue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0
    • Apache, Framework
    • None
    • Windows 7/Java 8

    Description

      The locking doesn't work with DistributedIdQeue.

      2015-06-18 17:19:47.859 INFO 18244 — [ TaskCache-0] com.pixia.gi.zookeeper.TaskLockingQueue : Path cache event: path=/task_queue/queue-|7qb89wjddu|0000000001, type=CHILD_REMOVED
      2015-06-18 17:19:47.864 INFO 18244 — [ TaskCache-0] com.pixia.gi.zookeeper.TaskLockingQueue : Path cache event: path=/task_queue/queue-0000000005, type=CHILD_ADDED

      When the DistributedQueue does the requeue, it recreates a new node path without the ID. The bug is in following code block,

      if ( requeue )

      { client.inTransaction() .delete().forPath(itemPath) .and() .create().withMode(CreateMode.PERSISTENT_SEQUENTIAL).forPath(makeItemPath(), bytes) .and() .commit(); }

      Should replace makeItemPath() with itemPath.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zhihong Zhihong Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: