python-riak-client: 3 unit tests failed

Mikhail Sobolev mss at mawhrin.net
Thu Apr 21 15:49:38 EDT 2011


Hi,

(I'm not sure if this is a correct list for posting questions about
python-riak-client.  If it's not, please direct me to the correct
forum.)

I downloaded:
    * latest version of Riak (0.14.0-1 for Debian/32)
    * the latest master of python-riak-client (git clone)

And run 'nosetests -v'.  The outcome -- 3 failed test cases -- is a bit
alarming (see below).  Could anyone suggest what to look at?

Kind Regards,

--
Misha

PS  Just in case, it's python 2.6.6 on Ubuntu 10.10.

--- failed test cases ---
======================================================================
ERROR: test_search_integration (riak.tests.test_all.RiakHttpTransportTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mss/projects/derek/riak-python-client/riak/tests/test_all.py", line 395, in test_search_integration
    results = self.client.search("searchbucket", "foo:one OR foo:two").run()
  File "/home/mss/projects/derek/riak-python-client/riak/mapreduce.py", line 185, in run
    result = t.mapred(self._inputs, query, timeout)
  File "/home/mss/projects/derek/riak-python-client/riak/transports/http.py", line 198, in mapred
    result = json.loads(response[1])
  File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

======================================================================
ERROR: test_search_integration (riak.tests.test_all.RiakPbcTransportTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mss/projects/derek/riak-python-client/riak/tests/test_all.py", line 395, in test_search_integration
    results = self.client.search("searchbucket", "foo:one OR foo:two").run()
  File "/home/mss/projects/derek/riak-python-client/riak/mapreduce.py", line 185, in run
    result = t.mapred(self._inputs, query, timeout)
  File "/home/mss/projects/derek/riak-python-client/riak/transports/pbc.py", line 300, in mapred
    msg_code, resp = self.recv_msg()
  File "/home/mss/projects/derek/riak-python-client/riak/transports/pbc.py", line 349, in recv_msg
    self.recv_pkt()
  File "/home/mss/projects/derek/riak-python-client/riak/transports/pbc.py", line 390, in recv_pkt
    format(nmsglen))
RiakError: Socket returned short packet length  - expected 4

======================================================================
ERROR: test_store_of_missing_object (riak.tests.test_all.RiakPbcTransportTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mss/projects/derek/riak-python-client/riak/tests/test_all.py", line 369, in test_store_of_missing_object
    o = o.store()
  File "/home/mss/projects/derek/riak-python-client/riak/riak_object.py", line 277, in store
    Result = t.put(self, w, dw, return_body)
  File "/home/mss/projects/derek/riak-python-client/riak/transports/pbc.py", line 190, in put
    msg_code, resp = self.recv_msg()
  File "/home/mss/projects/derek/riak-python-client/riak/transports/pbc.py", line 349, in recv_msg
    self.recv_pkt()
  File "/home/mss/projects/derek/riak-python-client/riak/transports/pbc.py", line 390, in recv_pkt
    format(nmsglen))
RiakError: Socket returned short packet length  - expected 4

----------------------------------------------------------------------
Ran 54 tests in 1.526s

FAILED (errors=3)




More information about the riak-users mailing list