Releases: aerospike/aerospike-client-java
Releases · aerospike/aerospike-client-java
6.1.3
Release Date: October 19, 2022
Bug Fixes
- Throw exception when a read operation is used in a background query (execute()) or any operation is used in a foreground query (query()). [CLIENT-1842]
- Throw exception in estimateSizeUtf8() when the string is malformed. [CLIENT-1860]
- Use Charset “StandardCharsets.UTF_8” instead or charset name “UTF8” in UTF8 conversion methods. [CLIENT-1860]
- Validate that asyncMaxConnsPerNode >= event loop count. [CLIENT-1861]
Full Changelog: 6.1.2...6.1.3
6.1.2
Release Date: September 08, 2022
New Features
- Add functions for CDT context conversion to/from bytes/base64 encoded string. [CLIENT-1806]
- Add operate() example that reads multiple bins.
Bug Fixes
- Handle background and aggregation queries with set names that do not exist on server nodes. The client now terminates a background/aggregation query when the server returns KEY_NOT_FOUND_ERROR on non-existent sets. Previous versions would timeout by default because the client was waiting for the INFO3_LAST bit to be set, which is not returned by the server. [CLIENT-1813]
- Prevent division by zero if the node array is empty in getRandomNode().
- Add Filter colType and packedCtx fields to equals() and hashCode().
- Update default values in run_benchmark usage.
- Align Value factory method with the primitive char.
Full Changelog: 6.1.1...6.1.2
6.1.1
Release Date: August 18, 2022
New Features
- Add "Value.ReturnMapForKeyValue" boolean. If true, the client will always return a map when "MapReturnType.KEY_VALUE" is specified in a map read operation and the server returns a list of key/value pairs. The default is false. [CLIENT-1805]
Bug Fixes
- Remove check for 0x04 map extension bit in unpackMap() because the server never sends it.
- Remove link to non-existent screenshot in examples readme.
- Add constraint "indexBitCount + minHashBitCount must be <= 64" to HLL api doc. [DOCS-633]
- Improve api doc for "BatchPolicy.maxConcurrentThreads". [DOCS-766]
- Mention that PartitionFilter is both a filter and a cursor in api doc.
- Extend api doc for MapExp.put().
Full Changelog: 6.1.0...6.1.1
6.1.0
Release Date: July 12, 2022
New Features
- Support creating a secondary index on elements within a CDT using context. This feature requires server version 6.1+. [CLIENT-1780]
- Add "Expression.fromBase64(byte[])" and "Expression.fromBase64(String)". [CLIENT-1766]
- Add "Value.DisableDeserializer". If set to true, disable default java object deserialization. [CLIENT-1786]
- Change client configuration defaults. [CLIENT-1772]
- Set maxConnsPerNode default from 300 to 100. [CLIENT-1772]
- Set asyncMaxConnsPerNode default from 300 to 100 via defaulting to maxConnsPerNode. [CLIENT-1772]
- Set maxSocketIdle default from 55 to 0 sec. [CLIENT-1772]
- Set maxErrorRate default from 0 to 100. [CLIENT-1772]
- Set totalTimeout default from 0 to 1000 ms for all commands except scan/query. [CLIENT-1772]
- Allow buffers to be managed by descendants of Command.
- Support CodeQL and Dependabot github actions.
Bug Fixes
- Assume background query is complete when the server 6.0+ returns "not found" in "query-show" info command. Keep old behavior when using server versions less than 6.0. [CLIENT-1758]
- Set correct batch read operation attribute for operations that do not include a bin name (ie Operation.get()). [CLIENT-1759]
- Allow read all bins operation (Operation.get()) to be used in batch operations. Disable respondAllOps policy when read all bins operation is used. [CLIENT-1768]
- Set scan/query iteration on each scan/query node sub-exception. The sub-exceptions are then displayed in the final scan/query exception message. [CLIENT-1767]
- Do not obfuscate aggregation query errors when client side lua packages fail to load.
- Auto close input output streams.
Full Changelog: 6.0.1...6.1.0
6.0.1
Release Date: June 02, 2022
New Features
- Set new flag bit on batch commands to instruct the server to return the key specific error code on an error that stops a response. [CLIENT-1720]
- Add ListReturnType.EXISTS and MapReturnType.EXISTS. This feature requires server version 6.1+. [CLIENT-1733]
- Add "Value.DisableSerializer". If set to true, disable default java object serialization. [CLIENT-1741]
Bug Fixes
- Fail on cluster initialization if the seed node is valid, but all seed node peers are not reachable and failIfNotConnected is true. This scenario occurs in AWS installations when peer nodes are configured with AWS internal IP addresses and the client is external to AWS. [CLIENT-1704]
- Prevent the possibility of skipping an active node in getRandomNode() when accessing concurrently.
- Do not expect duplicate records to exist in query examples because server version 6.1+ dedups query records.
- Fix warnings generated by java 17.
Full Changelog: 6.0.0...6.0.1
6.0.0
Release Date: March 31, 2022
New Features
- Support partition query. This feature requires server version 6.0+. [CLIENT-1654]
- Support batch write, batch UDF execute and batch delete. This feature requires server version 6.0+. [CLIENT-1653]
- Support udf-admin, sindex-admin and truncate privileges. This feature requires server version 6.0+. [CLIENT-1652]
- Remove old deprecated PredExp. See Incompatible API change. [CLIENT-1677]
Bug Fixes
- Set Netty TLS handshake timeout when a timeout is defined. [CLIENT-1656]
- Add scan/query partition errors from multiple threads under lock. [CLIENT-1688]
- Add RegexFlag to public docs.
Full Changelog: 5.3.0...6.0.0
4.4.20
Release Date: January 05, 2021
Bug Fixes
- Continue processing scans when "partition unavailable" errors occur. "partition unavailable" is not a fatal error for partition scans and the server will continue sending back results for other partitions. Previous clients aborted the scan and put the connection back into the pool which might cause unprocessed results to be sent to a different transaction. [CLIENT-1637]
Full Changelog: 4.4.18...4.4.20
5.1.11
Release Date: December 07, 2021
Bug Fixes
- Continue processing scans when "partition unavailable" errors occur. "partition unavailable" is not a fatal error for partition scans and the server will continue sending back results for other partitions. Previous clients aborted the scan and put the connection back into the pool which might cause unprocessed results to be sent to a different transaction. [CLIENT-1637]
Full Changelog: 5.1.10...5.1.11
5.1.10
Release Date: November 19, 2021
- A bug affecting this version of the Java client has been identified. If your application uses scans, we strongly recommend that you upgrade to Java client 5.1.11 at the earliest opportunity.
Bug Fixes
- Create a new NettyTlsContext for each AerospikeClient instance by default when using netty and TLS. Also, allow NettyTlsContext to be shared across AerospikeClient instances via a new TlsPolicy field, "nettyContext". [CLIENT-1622]
Full Changelog: 5.1.9...5.1.10
5.1.9
Release Date: November 11, 2021
- A bug affecting this version of the Java client has been identified. If your application uses scans, we strongly recommend that you upgrade to Java client 5.1.11 at the earliest opportunity.
New Features
- Add async getClusterStats(ClusterStatsListener listener) to provide more accurate statistics when running both in/out of eventloop threads.
- Add Exp.expr() to merge precompiled expressions into a greater expression.
- Add ScanResume example.
- Add url, organization and license tags to pom.xml.
Bug Fixes
- Set partition's last digest received only after the scan callback returns. If the scan callback throws an exception, the last digest will not be set and that record will be returned again if the scan is resumed at a later time. [CLIENT-1611]
- If getClusterStats() is called from an eventloop thread, do not block and use cross-thread references instead.
- Add EventLoops.next() comments regarding non-atomic sequence counter implementations.
- Remove old deprecated PredExp tests.
Full Changelog: 5.1.8...5.1.9