java.net.SocketException: Connection reset

The current version of spring-data-aerospike doesn’t use set truncate to delete all the records from the set. This will be included in the next release.

In the meantime, you can follow these instructions to manually truncate the set.