sguggilam commented on a change in pull request #2627:
URL: https://github.com/apache/hbase/pull/2627#discussion_r520831984



##########
File path: 
hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestBytes.java
##########
@@ -58,7 +59,7 @@ private static void setUnsafe(boolean value) throws Exception 
{
     } finally {
       modifiersField.setInt(field, oldModifiers);
     }
-    assertEquals(Bytes.UNSAFE_UNALIGNED, value);
+    assertEquals(UnsafeAvailChecker.unaligned(), value);
   }
 

Review comment:
       @apurtell Added a test in the new commit. Added a resource in the 
classpath for the class to consume the flag during class loading in the static 
block. Please review and let me know your thoughts




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to