tribbloid commented on issue #860: Unit tests fail when run on IBM SDK
URL: https://github.com/apache/incubator-hudi/issues/860#issuecomment-526413598
 
 
   Also affects me
   
   @vinothchandar thanks a lot for the hint! You are right it is indeed caused 
by ObjectSizeCalculator. After I swap it out with the following dummy code:
   
   ```
     public static long getObjectSize(Object obj) throws 
UnsupportedOperationException {
       return obj == null ? 0 : (1024L * 1024L);
   //        new 
ObjectSizeCalculator(CurrentLayout.SPEC).calculateObjectSize(obj);
     }
   ```
   
   All test failure disappeared. (I'm also testing on IBM JVM but am planning 
to switch to GraalVM shortly)
   
   I'm wondering if we can improve this twitter class such that it degrades 
smoothly to something a bit slower?
   
   e.g. Java Instrumentation API `java.lang.instrument.Instrumentation` that is 
supported by all JVM implementations, as indicated in the following post:
   
   
https://stackoverflow.com/questions/52353/in-java-what-is-the-best-way-to-determine-the-size-of-an-object/30021105

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to