You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Sandeep Guggilam (Jira)" <ji...@apache.org> on 2020/11/06 01:06:00 UTC
[jira] [Created] (HBASE-25251) Enable configuration based
enable/disable of Unsafe package usage
Sandeep Guggilam created HBASE-25251:
----------------------------------------
Summary: Enable configuration based enable/disable of Unsafe package usage
Key: HBASE-25251
URL: https://issues.apache.org/jira/browse/HBASE-25251
Project: HBase
Issue Type: Improvement
Reporter: Sandeep Guggilam
Assignee: Sandeep Guggilam
We need a provide away for clients to disable Unsafe package usage . Currently there is no way for clients to specify that they don't want to use Unsafe conversion for Bytes conversion.
As a result there could be some issues with missing methods of Unsafe when client is on JDK 11 . So the clients can disable Unsafe package use and use normal conversion if they want to.
Also we use static references to Unsafe Availability in Bytes class assuming that the Unsafe availability is set during class loading and no one can ever override it later. Now that we plan to expose a util for clients to override the availability if required, we need to avoid the static references for computing the availability whenever we do the comparisions
--
This message was sent by Atlassian Jira
(v8.3.4#803005)