Closed dcapwell closed 4 years ago
I built the JNI binding on CentOS 6 and confirmed that the minimum required version was glibc 2.2.5. However, I also found that the performance of the built JNI library was 27% slower than the latest lz4-java 1.7.1, probably because gcc in CentOS 6 was version 4.4.7, which is quite old. I am going to install a more recent version of gcc to CentOS 6 and will check the performance again.
I built the JNI binding on CentOS 6 with gcc 5.4.0 and confirmed that the throughput was the same as lz4-java-1.7.1. FYI, the one compiled with the latest gcc 9.2.0 was 5% slower, so I decided to use gcc 5.4.0, which is the same version as what I have been using.
Making sure I understand. Are you saying that native support won't happen for CentOS 6 environments or that the compiling with newer GCC was enough to get older environments to work with the latest gains?
The compiling with newer GCC was enough to get older environments to work with the latest gains. The master branch should run on CentOS 6 and still retains the same speed as before. The fix will be included in the next release.
Thats great, thanks!
The fix will be included in the next release.
Is there any update on a release? Apache Cassandra is at the RC stage for our 4.0 release, so it would be amazing if we can bump our lz4 version to work with OEL6 again.
Thanks @odaira !
OK, I'll release the next version by the end of this month.
Any update? Apache Cassandra is in-talks to release GA if no issues found in the next 2 weeks
Sorry, I ran into an issue at the last step in publishing a jar to the maven repo. I'll try to fix it this weekend.
Released 1.8.0.
Thanks so much!
For the purposes of Apache licensing and copyright, this reported issue is Not a Contribution.
The latest version currently requires GLIBC_2.14 but this is too new for some older environments such as CentOS 6 (as pointed out in https://github.com/lz4/lz4-java/issues/160); to aid in upgrading to the latest version it would be good to support 2.12.
This was found in Apache Cassandra where we were upgrading from 1.3 to 1.7