Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-792

zkpython memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.1
    • 3.3.2, 3.4.0
    • contrib-bindings
    • None
    • vmware workstation - guest OS:Linux python:2.4.3

    • Reviewed

    Description

      We recently upgraded zookeeper from 3.2.1 to 3.3.1, now we are seeing less client deadlock on session expiration, which is a definite plus!

      Unfortunately we are seeing memory leak that requires our zk clients to be restarted every half-day. Valgrind result:

      ==8804== 25 (12 direct, 13 indirect) bytes in 1 blocks are definitely lost in loss record 255 of 670
      ==8804== at 0x4021C42: calloc (vg_replace_malloc.c:418)
      ==8804== by 0x5047B42: parse_acls (zookeeper.c:369)
      ==8804== by 0x5047EF6: pyzoo_create (zookeeper.c:1009)
      ==8804== by 0x40786CC: PyCFunction_Call (in /usr/lib/libpython2.4.so.1.0)
      ==8804== by 0x40B31DC: PyEval_EvalFrame (in /usr/lib/libpython2.4.so.1.0)
      ==8804== by 0x40B4485: PyEval_EvalCodeEx (in /usr/lib/libpython2.4.so.1.0)

      Attachments

        1. ZOOKEEPER-792.patch
          1 kB
          Lei Zhang
        2. ZOOKEEPER-792.patch
          1 kB
          Henry Robinson
        3. ZOOKEEPER-792.patch
          1 kB
          Henry Robinson

        Activity

          People

            voyager Lei Zhang
            voyager Lei Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: