Problem Description
A client (can also be asrestore) reports an error during operation:
Error while storing record - code 22: AEROSPIKE_ERR_FAIL_FORBIDDEN at src/main/aerospike/as_command.c:594Explanation
This error indicates that the record cannot be written. There can be different situations that cause this issue. The most common causes when seeing this on a namespace that is configured to be strongly consistent with solutions are covered below.
Solution
If non-durable deletes are issued against a strong consistency enabled namespace while strong-consistency-allow-expunge is set to false (default).
-
Solution: If deletes are ok to be non-durable, configure strong-consistency-allow-expunge to be true. Otherwise, consider Durable Deletes. Refer to Consistency page for further details.