aerospike / aerospike-client-java

Aerospike Java Client Library
Other
236 stars 212 forks source link

AerospikeException is not serializable #141

Closed jrumbinas closed 5 years ago

jrumbinas commented 5 years ago

Throwable class implements Serializable, thus one would expect AerospikeException to be serializable as well. For one, it used to be serializable before node and policy fields were added.

Could we at least flag these fields as transient? I personally prefer loosing some exception message details to throwing NotSerializableException.

BrianNichols commented 5 years ago

Yes, the transient keyword will be added to node and policy in AerospikeException in the next client release.

jrumbinas commented 5 years ago

Will it make it to 4.4.6?

BrianNichols commented 5 years ago

Yes.