Closed noam-ma-ma closed 2 months ago
Thanks for your feedback. That's inadvertent and an oversight. All those fields will be exported in the next release next week.
Fixed in v7.3.0 release. Sorry for the long lead time, this change ended up tangled with another significant release.
When using Batch write, the returned
BatchWrite
result fields are not sufficient for clients to understand what happen.Given the Map Bin:
and 2 batch write operations with filter expressions pseudo code
Given these operations - the result will be:
The first batch write was filtered out, while the second executed.
Aerospike client returns:
[](aerospike.BatchRecordIfc|*BatchWrite)
with very minimal exported fields - mostly the Key and the Err.In our example - we can notify:
"primaryKey1: success, primaryKey1: filtered out"
, without any notion of what was filtered out.Why does all the fields in the
BatchWrite, Expressions, Operation
struct are unexported? Clients want to know more details about what exactly failed using the data on theBatchWrite
likepolicy
andops
fields (and their nested structs).