Skip to content

Instantly share code, notes, and snippets.

@ivanteoh
Created October 15, 2015 06:11
Show Gist options
  • Save ivanteoh/83e2dfc3f6510b7deacc to your computer and use it in GitHub Desktop.
Save ivanteoh/83e2dfc3f6510b7deacc to your computer and use it in GitHub Desktop.
stack trace for write on read in tick_and_dispatch request https://github.com/collective/collective.dancing/issues/24
==================================================================================================================================================================
DB write to <zc.queue._queue.BucketQueue object at 0x110611c80> (0x1fc3) from "/eggs/zc.queue-1.3-py2.7.egg/zc/queue/_queue.py", line 23
==================================================================================================================================================================
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 126, in publish
request, bind=1)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/mapply.py", line 77, in mapply
if debug is not None: return debug(object,args,context)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 46, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/collective.dancing/collective/dancing/browser/utils.py", line 45, in tick_and_dispatch
msg = self._tick_and_dispatch()
File "/collective.dancing/collective/dancing/browser/utils.py", line 64, in _tick_and_dispatch
status = channel.queue.dispatch()
File "/collective.singing/collective/singing/message.py", line 128, in dispatch
return self._dispatch()
File "/collective.singing/collective/singing/message.py", line 140, in _dispatch
message = queue.pull()
File "/collective.singing/collective/singing/queue.py", line 14, in pull
item = super(CompositeQueue, self).pull(index)
File "/eggs/zc.queue-1.3-py2.7.egg/zc/queue/_queue.py", line 196, in pull
q.pull(ix)
File "/eggs/zc.queue-1.3-py2.7.egg/zc/queue/_queue.py", line 23, in pull
self._data = self._data[:index] + self._data[index + 1:]
===============================================================================================================================================================================
DB write to <collective.singing.queue.CompositeQueue object at 0x110611aa0> (0x17ed) from "/eggs/zc.queue-1.3-py2.7.egg/zc/queue/_queue.py", line 200
===============================================================================================================================================================================
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 237, in publish_module_standard
response = publish(request, module_name, after_list, debug=debug)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 126, in publish
request, bind=1)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/mapply.py", line 77, in mapply
if debug is not None: return debug(object,args,context)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 46, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/collective.dancing/collective/dancing/browser/utils.py", line 45, in tick_and_dispatch
msg = self._tick_and_dispatch()
File "/collective.dancing/collective/dancing/browser/utils.py", line 64, in _tick_and_dispatch
status = channel.queue.dispatch()
File "/collective.singing/collective/singing/message.py", line 128, in dispatch
return self._dispatch()
File "/collective.singing/collective/singing/message.py", line 140, in _dispatch
message = queue.pull()
File "/collective.singing/collective/singing/queue.py", line 14, in pull
item = super(CompositeQueue, self).pull(index)
File "/eggs/zc.queue-1.3-py2.7.egg/zc/queue/_queue.py", line 200, in pull
self._data = tuple(q for q in self._data if q)
============================================================================================================================================================================
DB write to <BTrees.Length.Length object at 0x10fce4938> (0x17ec) from "/eggs/ZODB3-3.10.5-py2.7-macosx-10.4-x86_64.egg/BTrees/Length.py", line 51
============================================================================================================================================================================
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 443, in publish_module
environ, debug, request, response)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 237, in publish_module_standard
response = publish(request, module_name, after_list, debug=debug)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 126, in publish
request, bind=1)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/mapply.py", line 77, in mapply
if debug is not None: return debug(object,args,context)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 46, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/collective.dancing/collective/dancing/browser/utils.py", line 45, in tick_and_dispatch
msg = self._tick_and_dispatch()
File "/collective.dancing/collective/dancing/browser/utils.py", line 64, in _tick_and_dispatch
status = channel.queue.dispatch()
File "/collective.singing/collective/singing/message.py", line 128, in dispatch
return self._dispatch()
File "/collective.singing/collective/singing/message.py", line 153, in _dispatch
self._messages_sent.change(sent)
File "/eggs/ZODB3-3.10.5-py2.7-macosx-10.4-x86_64.egg/BTrees/Length.py", line 51, in change
self.value += delta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment