aerospike / aerospike-client-java

Aerospike Java Client Library
Other
237 stars 214 forks source link

Fixed compression #343

Closed tim-aero closed 2 weeks ago

tim-aero commented 2 weeks ago

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.