hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [2/3] hbase git commit: Amend HBASE-15322 Operations using Unsafe path broken for platforms not having sun.misc.Unsafe
Date Sat, 12 Mar 2016 01:45:41 GMT
Amend HBASE-15322 Operations using Unsafe path broken for platforms not having sun.misc.Unsafe

"Object cannot be cast to boolean" in UnsafeAvailChecker


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/b6b9910e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b6b9910e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b6b9910e

Branch: refs/heads/master
Commit: b6b9910e2c768b78c8b734a40e16604d82b8de72
Parents: eea8b38
Author: Andrew Purtell <apurtell@apache.org>
Authored: Fri Mar 11 17:33:44 2016 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Fri Mar 11 17:39:52 2016 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/util/UnsafeAvailChecker.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/b6b9910e/hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAvailChecker.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAvailChecker.java
b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAvailChecker.java
index 2e140c4..90e6ec8 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAvailChecker.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAvailChecker.java
@@ -56,7 +56,7 @@ public class UnsafeAvailChecker {
         Class<?> clazz = Class.forName("java.nio.Bits");
         Method m = clazz.getDeclaredMethod("unaligned");
         m.setAccessible(true);
-        unaligned = (boolean) m.invoke(null);
+        unaligned = (Boolean) m.invoke(null);
       } catch (Exception e) {
         LOG.warn("java.nio.Bits#unaligned() check failed."
             + "Unsafe based read/write of primitive types won't be used", e);


Mime
View raw message