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/489075 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=40b36e0e2e0 75ff796603fd1f8 9a36524e8f616f
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit 40b36e0e2e075ff 796603fd1f89a36 524e8f616f
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