Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Drill, mail # dev - Test failures


+
Prafulla 2013-08-15, 04:37
+
Jacques Nadeau 2013-08-15, 05:26
+
Prafulla 2013-08-15, 05:30
Copy link to this message
-
Re: Test failures
Prafulla 2013-08-16, 05:19
I tried simple program to check if Java's unsafe is available. It shows that it is available.
I even tried to  netty's PlatformDependent.hashUnsafe() in my simple test program and it returned True.
But somehow when it runs in "mvn install", it returns False.
Any insights how to fix this?

Here is my test program:

[prafulla] cat Test.java
import sun.misc.Unsafe;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
import io.netty.util.internal.PlatformDependent; 
public class Test
{
  public static void main(String[] args) throws Exception
  {
    Unsafe unsafe;
    Field unsafeField = Unsafe.class.getDeclaredField("theUnsafe");
    System.out.println("Hi "+ unsafeField);
    System.out.println("Hello world");
    System.out.println("Platform "+ PlatformDependent.hasUnsafe());
  }
}
----- Original Message -----
From: Jacques Nadeau <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; Prafulla <[EMAIL PROTECTED]>
Cc:
Sent: Wednesday, 14 August 2013 10:26 PM
Subject: Re: Test failures

Can you confirm the version of the JDK you're running on.  We assume
Java's Unsafe is available.  It looks like the platform you are on
doesn't have that.

thanks,
J

On Wed, Aug 14, 2013 at 9:37 PM, Prafulla <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to get "mvn install" working on my ubuntu (12.04) machine.
> I am facing following test failures on latest code base.
> One of the test case (org.apache.drill.exec.server.TestBitRpc) waits for something forever ( I guess some connection ).
> Also there are few failures
>
> testLittleEndian(org.apache.drill.exec.memory.TestEndianess)  Time elapsed: 0.002 sec  <<< ERROR!
> java.lang.UnsupportedOperationException: null
>         at io.netty.buffer.PoolArenaL$DirectArena.newByteBuf(PoolArenaL.java:400)
>         at io.netty.buffer.PoolArenaL.allocate(PoolArenaL.java:93)
>         at io.netty.buffer.PooledByteBufAllocatorL.newDirectBuffer(PooledByteBufAllocatorL.java:235)
>         at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:130)
>         at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:121)
>         at org.apache.drill.exec.memory.DirectBufferAllocator.buffer(DirectBufferAllocator.java:35)
>         at org.apache.drill.exec.memory.TestEndianess.testLittleEndian(TestEndianess.java:16)
>
> And lots of it.
> Full "mvn install" run log is uploaded at following location:
>
> https://www.dropbox.com/s/qx0xpobtptku4k3/build_no_dbg.txt
>
> Can anyone tell me if these test failures ( especially one with hang ) is because of my environment?
> Any workarounds?