new lz4 library doesn't like handling empty binary. if we kill
agent during computation of aggregates, the unaggregated object
might have been created (in ceph/redis case) but it may not have saved
unaggregated measures leaving the object blank.
this patch returns None and let's workflow proceed as if new if
object is empty since in scenario above, the original raw measures
will not have been cleared from unprocessed so they will still be
processed again.
also, fixes redis issue where passing in None makes the redis actually
store 'None'.
Reviewed: https:/ /review. openstack. org/450439 /git.openstack. org/cgit/ openstack/ gnocchi/ commit/ ?id=4ac9d53383b 0db8fd07f8073df 63d61334e22cd6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4ac9d53383b0db8 fd07f8073df63d6 1334e22cd6
Author: gord chung <email address hidden>
Date: Mon Mar 27 19:54:57 2017 +0000
don't raise error if unaggregated empty
new lz4 library doesn't like handling empty binary. if we kill
agent during computation of aggregates, the unaggregated object
might have been created (in ceph/redis case) but it may not have saved
unaggregated measures leaving the object blank.
this patch returns None and let's workflow proceed as if new if
object is empty since in scenario above, the original raw measures
will not have been cleared from unprocessed so they will still be
processed again.
also, fixes redis issue where passing in None makes the redis actually
store 'None'.
Change-Id: I358e50ccadff72 1348630688c4754 4db6553e96b
Closes-Bug: #1676519