Can't delete objects from Riak KV

2016-04-13 Thread Alex De la rosa
Hi there,

I'm trying to delete objects from riak with the python library and is
timing out, any ideas? (this example is from a simple object, but also have
issues with bucket types with map objects, etc...)... Just I seem to unable
to delete anything, just times out.

























*>>> import riak>>> RIAK = riak.RiakClient(protocol = 'pbc', nodes =
[{'host': '', 'http_port': 8098, 'pb_port': 8087}])>>> x =
RIAK.bucket('test').get('something')>>> print x.data{"something":"here"}>>>
x.delete()Traceback (most recent call last):  File "", line 1, in
  File
"/usr/local/lib/python2.7/dist-packages/riak/riak_object.py", line 329, in
deletetimeout=timeout)  File
"/usr/local/lib/python2.7/dist-packages/riak/client/transport.py", line
196, in wrapperreturn self._with_retries(pool, thunk)  File
"/usr/local/lib/python2.7/dist-packages/riak/client/transport.py", line
138, in _with_retriesreturn fn(transport)  File
"/usr/local/lib/python2.7/dist-packages/riak/client/transport.py", line
194, in thunkreturn fn(self, transport, *args, **kwargs)  File
"/usr/local/lib/python2.7/dist-packages/riak/client/operations.py", line
744, in deletepw=pw, timeout=timeout)  File
"/usr/local/lib/python2.7/dist-packages/riak/transports/pbc/transport.py",
line 283, in deleteriak.pb.messages.MSG_CODE_DEL_RESP)  File
"/usr/local/lib/python2.7/dist-packages/riak/transports/pbc/connection.py",
line 34, in _requestreturn self._recv_msg(expect)  File
"/usr/local/lib/python2.7/dist-packages/riak/transports/pbc/connection.py",
line 165, in _recv_msgraise
RiakError(bytes_to_str(err.errmsg))riak.riak_error.RiakError: 'timeout'*

My Riak version is 2.1.4

My Python library is (installed via pip):
Name: riak
Version: 2.2.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: six, pyOpenSSL, riak-pb

Thanks,
Alex
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


[ANN] Riak KV 2.1.4

2016-04-13 Thread Seema Jethani
Riak Users,

Riak 2.1.4 has been released and can be downloaded from the downloads
page[1]. This release contains fixes for the Riak init file Product
Advisory and the leveldb segfault Product Advisory. Please review the
Release Notes [2] for more details before upgrading.

[1] *http://docs.basho.com/riak/kv/2.1.4/downloads/
*[2]
*http://docs.basho.com/riak/kv/2.1.4/release-notes/
*


-- 
Seema Jethani
Director of Product Management, Basho 
4083455739 | @seemaj 
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Basho Product Alert: LevelDB SEGV in Riak KV 2.1.3

2016-04-13 Thread Seema Jethani
 Overview

Riak KV (aka Riak / Riak EE) 2.1.3 has a race condition with opening
LevelDB databases and may crash with a segmentation violation (SIGSEGV).
LevelDB databases are opened on primary or fallback vnode startup and
during AAE expiration The issue is possible but much less likely on the
Riak TS 2.0, Riak KV 2.0 and earlier Riak KV 2.1 series.

Description

Beginning with Riak KV 2.1.3, a list of opened databases is used by the
GroomingCompactions feature to look for databases with low write activity
that can benefit from being compacted.

The race condition occurs because newly opened databases are added to the
list before their initialization is complete. Scanning for
GroomedCompaction candidates takes place once every minute or whenever one
completes. If the initializing database is accessed during initialization,
it may reference uninitialized memory and crash with a segmentation
violation.

The open database list was originally added to support the FlexCache
feature in Riak 2.0. There is a much smaller chance this race condition
will occur in Riak 2.0, since it requires more than one database to open or
close at the same time.

This issue is corrected by ensuring that the list of open databases is
updated after the initialization of the database is complete. The
correction is shipped within Riak KV 2.0.7, Riak KV 2.1.4, and Riak TS
1.3.0

Affected Users

- Users running Riak KV 2.1.3 with the LevelDB backend, with or without AAE
enabled.

- Users running Riak KV 2.1.3 with other backends (multi, memory, bitcask)
and AAE enabled could also hit this issue.

- Users running Riak KV 2.0.0 and higher with AAE enabled are also
affected, but the likelihood of hitting the race condition is much lower.

- Users running Riak TS 1.0.0 and higher are also affected, but the
likelihood of hitting the race condition is much lower.

Impact

An affected node will reference uninitialized memory and will likely exit
with a segmentation violation. It may be logged by the operating system as
a crash by the beam.smp process.

Mitigation Strategy

Upgrade to a release of Riak KV at 2.0.7⁄2.1.4 or later to resolve the
issue, or patch the eleveldb.so shared library.

Riak KV 2.1.4 is the same as Riak KV 2.1.3 with a corrected version of the
eleveldb.so library. Riak KV 2.1.4 is available at our downloads site here:
http://docs.basho.com/riak/kv/2.1.4/downloads/

Riak KV 2.0.7 is a regular patch release that is in progress and will be
released in the next few weeks.

If you are unable to upgrade/patch, the occurrence can be reduced by
temporarily disabling AAE until the node is upgraded or patched.

Instructions

Installation and upgrade instructions can be found here
http://docs.basho.com/community/productadvisories/leveldbsegfault/

-- 
Seema Jethani
Director of Product Management, Basho 
4083455739 | @seemaj 
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com