Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4995

CompactionSerializerTest fails to find jemalloc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0 beta 1
    • Legacy/CQL
    • None
    • Low

    Description

          [junit] Testcase: org.apache.cassandra.io.CompactSerializerTest:	Caused an ERROR
          [junit] Unable to load library 'jemalloc': libjemalloc.so: cannot open shared object file: No such file or directory
          [junit] java.lang.UnsatisfiedLinkError: Unable to load library 'jemalloc': libjemalloc.so: cannot open shared object file: No such file or directory
          [junit] 	at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
          [junit] 	at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
          [junit] 	at com.sun.jna.Library$Handler.<init>(Library.java:140)
          [junit] 	at com.sun.jna.Native.loadLibrary(Native.java:379)
          [junit] 	at com.sun.jna.Native.loadLibrary(Native.java:364)
          [junit] 	at org.apache.cassandra.io.util.JEMallocAllocator.<clinit>(JEMallocAllocator.java:32)
          [junit] 	at java.lang.Class.forName0(Native Method)
          [junit] 	at java.lang.Class.forName(Class.java:169)
          [junit] 	at org.apache.cassandra.io.CompactSerializerTest$1DirScanner.scan(CompactSerializerTest.java:109)
          [junit] 	at org.apache.cassandra.io.CompactSerializerTest$1DirScanner.scan(CompactSerializerTest.java:100)
          [junit] 	at org.apache.cassandra.io.CompactSerializerTest$1DirScanner.scan(CompactSerializerTest.java:100)
          [junit] 	at org.apache.cassandra.io.CompactSerializerTest$1DirScanner.scan(CompactSerializerTest.java:100)
          [junit] 	at org.apache.cassandra.io.CompactSerializerTest$1DirScanner.scan(CompactSerializerTest.java:100)
          [junit] 	at org.apache.cassandra.io.CompactSerializerTest$1DirScanner.scan(CompactSerializerTest.java:100)
          [junit] 	at org.apache.cassandra.io.CompactSerializerTest$1DirScanner.scan(CompactSerializerTest.java:100)
          [junit] 	at org.apache.cassandra.io.CompactSerializerTest.scanClasspath(CompactSerializerTest.java:142)
      

      If jemalloc is now the preferred allocator, we should add it to the debian packaging. However, I did install the lib and it still didn't work.

      Attachments

        Activity

          People

            vijay2win@yahoo.com Vijay
            brandon.williams Brandon Williams
            Vijay
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: