aerospike-client-python icon indicating copy to clipboard operation
aerospike-client-python copied to clipboard

Fix exception log noise in Python 3.13

Open abbasyadollahi opened this issue 10 months ago • 1 comments

Running into client exceptions causes additional log noise when using aerospike 16.0.0 and Python 3.13. Seems like this issue was brought up in #629 but hasn't yet been addressed.

Small example below where the first line is the extra log noise:

Exception ignored in PyObject_HasAttrString(); consider using PyObject_HasAttrStringWithError(), PyObject_GetOptionalAttrString() or PyObject_GetAttrString():
Traceback (most recent call last):
  File "/var/task/src/demo.py", line 173, in process_something
    aerospike_client.operate(key, operations, meta={"ttl": int(ttl.total_seconds())})
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
exception.TimeoutError: (9, 'Client timeout: socket=30000 total=1000 iterations=1 lastNode=127.0.0.0:3000', 'src/main/aerospike/as_command.c', 875, True)

abbasyadollahi avatar Mar 14 '25 01:03 abbasyadollahi

Hi @abbasyadollahi , we'll fix this in the next release.

juliannguyen4 avatar Mar 14 '25 16:03 juliannguyen4