Bug 227392 - [NEW PORT] java/ohc: Off-heap cache library for Java
Summary: [NEW PORT] java/ohc: Off-heap cache library for Java
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL: https://github.com/snazy/ohc
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2018-04-09 16:21 UTC by Angelo Polo
Modified: 2024-01-30 11:01 UTC (History)
2 users (show)

See Also:
language.devel: maintainer-feedback+


Attachments
New port java/ohc shar archive (12.82 KB, text/plain)
2018-04-09 16:21 UTC, Angelo Polo
no flags Details
Shar archive for v0.7.0 (9.93 KB, text/plain)
2020-06-04 20:35 UTC, Angelo Polo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Angelo Polo 2018-04-09 16:21:13 UTC
Created attachment 192364 [details]
New port java/ohc shar archive

New port for OHC, an off-heap cache library for Java. It was originally developed for and is still used by the Cassandra database.

WWW: https://github.com/snazy/ohc
Comment 1 Nathan 2018-08-26 22:26:50 UTC
Newest version is 0.7.0
Comment 2 Angelo Polo 2018-08-27 10:45:13 UTC
Hi Nathan,

The raison d'être for this port is to provide a jar for Cassandra:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226377

The Cassandra port is currently v3.11.2, which uses OHC v0.4.4.

Angelo
Comment 3 Angelo Polo 2018-09-24 14:03:21 UTC
If anyone wants to use or test the port, for now you can manually download the Maven repository "ohc-0.4.4-maven-repository.tar.gz" to /usr/ports/distfiles from here:

https://drive.google.com/open?id=1vmp3R_BfYC0XtsRIB4nCzhIBCADolHwc
Comment 4 Lapo Luchini 2019-11-08 10:50:54 UTC
Since this is an older version useful only for Cassandra, it might make sense to include it directly into cassandra's port for its own usage?
(recent Cassandra 3.11.5 still points to OHC 0.4.4)
Comment 5 Angelo Polo 2019-12-20 12:33:47 UTC
(In reply to Lapo Luchini from comment #4)
Could do, but I see that as more work for less benefit. Cassandra's HEAD uses v0.5.1, so I'll be updating this port for Cassandra 4.0 when it's released. Can also submit a version 0.7.0 so anyone using it independently of Cassandra will have the latest and greatest.

In the words of the creators (https://github.com/snazy/ohc/#history):
"OHC was developed in 2014/15 for Apache Cassandra ... But it turned out that OHC alone might also be usable for other projects - that's why OHC is a separate library."
Comment 6 Angelo Polo 2020-06-04 20:35:28 UTC
Created attachment 215236 [details]
Shar archive for v0.7.0

Updated for v0.7.0.

Tested on Java 8 and 11, amd64 and i386.
Tested with databases/cassandra4.

Maven repository:
https://drive.google.com/uc?id=1H2tUDo70LCW_BPtEmwDyupJTIFvcqYxB
Comment 7 Lapo Luchini 2020-10-23 13:07:53 UTC
By any chance, was this also tested with PR 250167 (version 4.0-beta2)?
Comment 8 Angelo Polo 2020-10-26 12:28:05 UTC
(In reply to Lapo Luchini from comment #7)
This hasn't been tested with the update in bug #250167 yet.
Comment 9 Lapo Luchini 2024-01-30 11:01:39 UTC
New releases of Cassandra might (drop Java8) and depend on OHC 0.7.4 instead of 0.5.1.

https://issues.apache.org/jira/projects/CASSANDRA/issues/CASSANDRA-18799

https://github.com/apache/cassandra/pull/2636