hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [1/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:40 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 95421d276 -> e8063d4f1
  refs/heads/branch-1.2 149dc79d8 -> 193b77202
  refs/heads/master eea8b38df -> b6b9910e2


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/e8063d4f
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e8063d4f
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e8063d4f

Branch: refs/heads/branch-1
Commit: e8063d4f1721cd9748e86e5e5dc187b1ed9a95cf
Parents: 95421d2
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:37:39 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/e8063d4f/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