For the arithmetic transformer, when some thread use method _update_cache()
to update self.cache, and the same time the flush() method may be invoke
self.cache.pop(res_id) and raise "RuntimeError: dictionary changed size
during iteration"
Change-Id: I3ea89c7d3bfbdb661770b5d478188f8723c17716
Closes-bug: #1700875
(cherry picked from commit 91d11e7c7915fe8806af3e19064af0cd71b8fe76)
Reviewed: https:/ /review. openstack. org/489076 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=00d2f6faf28 645258f89b6858e 243d6432a23887
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 00d2f6faf286452 58f89b6858e243d 6432a23887
Author: xianbin <email address hidden>
Date: Wed Jun 28 11:13:02 2017 +0800
Fixed ceilometer arithmetic transformer bug
For the arithmetic transformer, when some thread use method _update_cache() cache.pop( res_id) and raise "RuntimeError: dictionary changed size
to update self.cache, and the same time the flush() method may be invoke
self.
during iteration"
Change-Id: I3ea89c7d3bfbdb 661770b5d478188 f8723c17716 806af3e19064af0 cd71b8fe76)
Closes-bug: #1700875
(cherry picked from commit 91d11e7c7915fe8