Search code examples
springaerospike

Aerospike Error Code 21


Can I maximize bin name length greater then 14?

Error while saving data in Aerospike :

org.springframework.dao.RecoverableDataAccessException: Aerospike Error: Error Code 21: Bin name length greater than 14 characters or maximum bins exceeded; nested exception is com.aerospike.client.AerospikeException: Error Code 21: Bin name length greater than 14 characters or maximum bins exceeded


Solution

  • No. It is a hardcoded fixed size allocation (15 bytes - 14 max plus null). Bin name is stored with every record on SSDs. Using bin names smaller than 14 characters will not save storage space either.