Skip to content

Wrong exception if slab arena is full #40

@bigbes

Description

@bigbes

tarantool log:

2014-10-07 16:52:38.883 [16796] 102/iproto salloc.cc:378 E> ER_MEMORY_ISSUE: Failed to allocate 38 bytes in slab allocator for tuple
2014-10-07 16:52:42.351 [16796] 102/iproto salloc.cc:378 E> ER_MEMORY_ISSUE: Failed to allocate 38 bytes in slab allocator for tuple

traceback:

Traceback (most recent call last):
  File "load.py", line 23, in <module>
    r.save(validate=True)
  File "/home/sergeyorlov/work/tarantism/tarantism/model.py", line 74, in save
    self.insert(data)
  File "/home/sergeyorlov/work/tarantism/tarantism/model.py", line 81, in insert
    return self.get_space().insert(values)
  File "/home/sergeyorlov/.virtualenvs/tarantism/local/lib/python2.7/site-packages/tarantool/space.py", line 89, in insert
    BOX_RETURN_TUPLE if return_tuple else 0) | BOX_ADD)
  File "/home/sergeyorlov/.virtualenvs/tarantism/local/lib/python2.7/site-packages/tarantool/connection.py", line 278, in _insert
    return self._send_request(request, space_name)
  File "/home/sergeyorlov/.virtualenvs/tarantism/local/lib/python2.7/site-packages/tarantool/connection.py", line 227, in _send_request
    request, space_name, field_defs, default_type)
  File "/home/sergeyorlov/.virtualenvs/tarantism/local/lib/python2.7/site-packages/tarantool/connection.py", line 169, in _send_request_wo_reconnect
    self, header, body, space_name, field_defs, default_type)
  File "/home/sergeyorlov/.virtualenvs/tarantism/local/lib/python2.7/site-packages/tarantool/response.py", line 138, in __init__
    self._unpack_body(body)
  File "/home/sergeyorlov/.virtualenvs/tarantism/local/lib/python2.7/site-packages/tarantool/response.py", line 237, in _unpack_body
    "<%ds" % (tuple_size), buff, offset + 4)[0]
struct.error: unpack_from requires a buffer of at least 1948279913 bytes

must be DatabaseError

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions