Skip to content

Conversation

@tim-aero
Copy link
Contributor

@tim-aero tim-aero commented Nov 6, 2024

A forum user (@sleshxdev) highlighted that the compression inside the Aerospike client did not work. This was reproduced in a test case. After extensive testing it was determined that under all circumstances

Deflater def = new Deflater();
def.setLevel(Deflater.BEST_SPEED);

results in no compression. The input data does not matter, nor does the level being set, providing it is different to the existing level.

However,

Deflater def = new Deflater(Deflater.BEST_SPEED);

always works with no issues. Updated the code to reflect this.

BrianNichols and others added 5 commits May 7, 2024 13:32
REL-2539 Java Client 8.1.2 for JDK21
Java Client 8.1.3 for JDK21
Java Client 8.1.4 for JDK21
A forum user (@sleshxdev) highlighted that the compression inside the Aerospike client did not work. This was reproduced in a test case. After extensive testing it was determined that under all circumstances
```
Deflater def = new Deflater();
def.setLevel(Deflater.BEST_SPEED);
```
results in no compression. The input data does not matter, nor does the level being set, providing it is different to the existing level. 

However,
```
Deflater def = new Deflater(Deflater.BEST_SPEED);
```
always works with no issues. Updated the code to reflect this.
@BrianNichols BrianNichols changed the base branch from master to stage November 6, 2024 15:32
@BrianNichols BrianNichols merged commit fc97081 into stage Nov 6, 2024
2 of 3 checks passed
@tim-aero tim-aero deleted the tim-compression-not-working branch July 31, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants