Skip to content

Instantly share code, notes, and snippets.

@bloodeagle40234
Created September 20, 2016 05:27
Show Gist options
  • Save bloodeagle40234/1645bc22703e335eab61529f700e4b17 to your computer and use it in GitHub Desktop.
Save bloodeagle40234/1645bc22703e335eab61529f700e4b17 to your computer and use it in GitHub Desktop.
git reset --hard 44a861787a60346aded8be2a54ef4e16accccbb6
git reset HEAD^
git add swift/obj test swift/common # add only tests and related changes w/o proxy object controller change
git commit -m 'add only tests'
git stash
nosetests test/unit/proxy/controllers/test_obj.py:TestECObjController.test_GET_with_duplicate_but_sufficient_frag_indexes
test_GET_with_duplicate_but_sufficient_frag_indexes (test.unit.proxy.controllers.test_obj.TestECObjController) ... FAIL
======================================================================
FAIL: test_GET_with_duplicate_but_sufficient_frag_indexes (test.unit.proxy.controllers.test_obj.TestECObjController)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2698, in test_GET_with_duplicate_but_sufficient_frag_indexes
self.assertEqual(resp.status_int, 200)
AssertionError: 500 != 200
-------------------- >> begin captured stdout << ---------------------
proxy-server ERROR: Error decoding fragments for '/a/c/o':
Traceback (most recent call last):
File "/opt/stack/swift/swift/proxy/controllers/obj.py", line 1291, in _decode_segments_from_fragments
segment = self.policy.pyeclib_driver.decode(fragments)
File "/usr/local/lib/python2.7/dist-packages/pyeclib/ec_iface.py", line 253, in decode
force_metadata_checks)
File "/usr/local/lib/python2.7/dist-packages/pyeclib/core.py", line 88, in decode
ranges, force_metadata_checks)
ECInsufficientFragments: pyeclib_c_decode ERROR: Insufficient number of fragments. Please inspect syslog for liberasurecode error report. (txn: tx66704c4ca5884f96bce5d-0057e0c718)
proxy-server ERROR: ERROR Unhandled exception in request:
Traceback (most recent call last):
File "/opt/stack/swift/swift/proxy/server.py", line 414, in handle_request
return handler(req)
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 268, in wrapped
return func(*a, **kw)
File "/opt/stack/swift/swift/proxy/controllers/obj.py", line 201, in GET
return self.GETorHEAD(req)
File "/opt/stack/swift/swift/proxy/controllers/obj.py", line 189, in GETorHEAD
resp = self._get_or_head_response(req, node_iter, partition, policy)
File "/opt/stack/swift/swift/proxy/controllers/obj.py", line 1986, in _get_or_head_response
app_iter.kickoff(req, resp)
File "/opt/stack/swift/swift/proxy/controllers/obj.py", line 958, in kickoff
self.stashed_iter = reiterate(self._real_iter(req, resp.headers))
File "/opt/stack/swift/swift/common/utils.py", line 3271, in reiterate
chunk = next(iterator)
File "/opt/stack/swift/swift/common/utils.py", line 3870, in string_along
for x in useful_iter:
File "/opt/stack/swift/swift/proxy/controllers/obj.py", line 1227, in _iter_one_range
for i, next_seg in enumerate(segment_iter):
File "/opt/stack/swift/swift/proxy/controllers/obj.py", line 1291, in _decode_segments_from_fragments
segment = self.policy.pyeclib_driver.decode(fragments)
File "/usr/local/lib/python2.7/dist-packages/pyeclib/ec_iface.py", line 253, in decode
force_metadata_checks)
File "/usr/local/lib/python2.7/dist-packages/pyeclib/core.py", line 88, in decode
ranges, force_metadata_checks)
ECInsufficientFragments: pyeclib_c_decode ERROR: Insufficient number of fragments. Please inspect syslog for liberasurecode error report. (txn: tx66704c4ca5884f96bce5d-0057e0c718)
--------------------- >> end captured stdout << ----------------------
'500 != 200' = '%s != %s' % (safe_repr(500), safe_repr(200))
'500 != 200' = self._formatMessage('500 != 200', '500 != 200')
>> raise self.failureException('500 != 200')
----------------------------------------------------------------------
Ran 1 test in 0.155s
FAILED (failures=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment