New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BalancedConsumer watcher callback fails over weakref #345

Closed
yungchin opened this Issue Nov 11, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@yungchin
Contributor

yungchin commented Nov 11, 2015

As reported by @amontalenti and most likely introduced by #329:

ERROR:kazoo.recipe.watchers:unbound method wrapped() must be called with BalancedConsumer instance as first argument (got weakproxy instance instead)
Traceback (most recent call last):
  File "/home/am/.pyenv/versions/ist/lib/python2.7/site-packages/kazoo/recipe/watchers.py", line 333, in _get_children
    result = self._func(children)
TypeError: unbound method wrapped() must be called with BalancedConsumer instance as first argument (got weakproxy instance instead)
DEBUG:kazoo.client:Received response(xid=4): [u'1-1', u'1-0', u'3-2']

@yungchin yungchin self-assigned this Nov 11, 2015

@yungchin

This comment has been minimized.

Contributor

yungchin commented Nov 11, 2015

On closer inspection, this only happens after BalancedConsumer.__del__() so it is not a terrible problem. I'll leave this open though because I'd like to come up with a solution that makes the error message less alarming.

@yungchin yungchin removed the bug label Nov 11, 2015

emmett9001 added a commit that referenced this issue Nov 17, 2015

@emmett9001 emmett9001 assigned emmett9001 and unassigned yungchin Nov 17, 2015

@emmett9001 emmett9001 added in progress and removed backlog labels Nov 17, 2015

@emmett9001 emmett9001 removed the in progress label Nov 18, 2015

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