Aerospike Database 6 is here, loaded with new developer features - partitioned queries, query pagination, batch anything and more.
We have breaking changes in this 6.0 version, which we’ll dig into here. More information is in the release notes and the special upgrade instructions.
Configuration Parameters
The following configuration parameters have been renamed:
scan-max-done
renamed toquery-max-done
.scan-threads-limit
renamed toquery-threads-limit
.background-scan-max-rps
renamed tobackground-query-max-rps
.single-scan-threads
renamed tosingle-query-threads
.
These config param pairs are equivalent. If you have any of these scan related ones in your configuration file, all you need to do is rename them.
The following configuration items have been removed:
query-threads
query-worker-threads
query-microbenchmark
query-batch-size
query-in-transaction-thread
query-long-q-max-size
query-priority
query-priority-sleep-us
query-rec-count-bound
query-req-in-query-thread
query-short-q-max-size
query-threshold
query-untracked-time-ms
All of the above are related to the server 5.x query subsystem. These do not have a meaning in server 6.0, so you just need to remove them.
Finally, batch-without-digest
, which was defaulted to false in server 4.9 (2020-04-08) and deprecated in server 5.7 (2021-09-27), has been removed. Any clients that require server 4.9 or higher will be compatible with this change.
Stats
Due to the new unified query subsystem, several statistics have been renamed or removed.
Global Context
The following table shows changes to statistics related to the statistics info command.
Pre 6.0 | Aerospike 6.0 |
| - removed - |
| - removed - |
|
|
The queries_active
stat is shared by both primary index (PI) queries (formerly known as scans) and secondary index (SI) queries.
Namespace Context
The following table shows changes to statistics related to the namespace info command.
Pre 6.0 | Aerospike 6.0 |
| - removed - |
| - removed - |
|
|
|
|
|
|
| |
| |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| - removed - |
| - removed - |
| - removed - |
| - removed - |
| - removed - |
| - removed - |
| - removed - |
|
|
|
|
|
|
| - removed - |
| |
| |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| - removed - |
Sindex Context
The following table shows changes to statistics related to the sindex info command.
Pre 6.0 | Aerospike 6.0 |
| - removed - |
| - removed - |
| - removed - |
| |
| - removed - |
| - removed - |
| - removed - |
| - removed - |
|
|
| - removed - |
| - removed - |
| - removed - |
| - removed - |
| - removed - |
Info Commands
The following info commands are typically used by tools such as asadm and asinfo.
Pre 6.0 | Aerospike 6.0 |
|
instead. |
Deprecated in 6.0 Output Changes:
only in
|
Applies to both PI and SI queries. Output Changes:
only in
|
|
|
|
|
| |
|
|
| - removed - |
Logs
The following are log line changes.
Log Histograms
Added PI and SI query histogram log lines to the 'namespace' context.
Pre 6.0 | Aerospike 6.0 |
| |
| |
| |
|
Scan Context
The different log lines in the 'scan' context have been removed in server 6.0.
Ticker
Ticker lines for query and scan have been replaced with SI query and PI query ones. The new ticker lines show separate ticker data for short and long queries.
Pre 6.0 | Aerospike 6.0 |
|
|
|
|
Audit Trail
An audit trail log line with action: scan
will now show action: query
.
Pre 6.0:
Sep 01 2021 18:37:56 GMT: INFO (audit): (security.c:7608) permitted | client: 127.0.0.1:51380 | authenticated user: user2 | action: scan | detail: rps:5,read-quota:10
Aerospike 6.0:
Sep 01 2021 18:37:56 GMT: INFO (audit): (security.c:7608) permitted | client: 127.0.0.1:51380 | authenticated user: user2 | action: query | detail: rps:5,read-quota:10
Error Codes
The following error codes have changed and may affect applications.
Pre 6.0 Error Code | Aerospike 6.0 Error Code |
210 | 15
Was named |
211 | 22 |
212 | 9 Only for short PI and SI queries. |
213 | - removed - |
214 | - removed - |
215 | 4 |