You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (JIRA)" <ji...@apache.org> on 2012/11/27 05:11:58 UTC

[jira] [Created] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Brandon Williams created CASSANDRA-4995:
-------------------------------------------

             Summary: CompactionSerializerTest fails to find jemalloc
                 Key: CASSANDRA-4995
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
             Project: Cassandra
          Issue Type: Bug
          Components: API
            Reporter: Brandon Williams
            Assignee: Vijay
             Fix For: 1.1.7


{noformat}
    [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)
{noformat}

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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Posted by "Vijay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504426#comment-13504426 ] 

Vijay commented on CASSANDRA-4995:
----------------------------------

Hi Jonathan,

{quote}
Constructor initializing a static field 
{quote}
attached patch doesn't initialize the static field.... it was moved from static to non-static... 
{code}
-    private static final JEMLibrary instance = (JEMLibrary) Native.loadLibrary("jemalloc", JEMLibrary.class);
+    private final JEMLibrary instance;
{code}
not sure if we are talking about the same thing :) (May be the name caused the confusion?)
                
> CompactionSerializerTest fails to find jemalloc
> -----------------------------------------------
>
>                 Key: CASSANDRA-4995
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Brandon Williams
>            Assignee: Vijay
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>         Attachments: 0001-CASSANDRA-4995.patch
>
>
> {noformat}
>     [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)
> {noformat}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brandon Williams updated CASSANDRA-4995:
----------------------------------------

    Priority: Minor  (was: Major)
    
> CompactionSerializerTest fails to find jemalloc
> -----------------------------------------------
>
>                 Key: CASSANDRA-4995
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Brandon Williams
>            Assignee: Vijay
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>
> {noformat}
>     [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)
> {noformat}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Posted by "Vijay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vijay updated CASSANDRA-4995:
-----------------------------

    Fix Version/s:     (was: 1.2.0 rc1)
                   1.3
    
> CompactionSerializerTest fails to find jemalloc
> -----------------------------------------------
>
>                 Key: CASSANDRA-4995
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Brandon Williams
>            Assignee: Vijay
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: 0001-CASSANDRA-4995.patch
>
>
> {noformat}
>     [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)
> {noformat}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Posted by "Vijay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vijay updated CASSANDRA-4995:
-----------------------------

    Attachment:     (was: 0001-CASSANDRA-4995.patch)
    
> CompactionSerializerTest fails to find jemalloc
> -----------------------------------------------
>
>                 Key: CASSANDRA-4995
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Brandon Williams
>            Assignee: Vijay
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>         Attachments: 0001-CASSANDRA-4995.patch
>
>
> {noformat}
>     [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)
> {noformat}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504442#comment-13504442 ] 

Jonathan Ellis commented on CASSANDRA-4995:
-------------------------------------------

I must be more jet lagged than I thought.  LGTM.
                
> CompactionSerializerTest fails to find jemalloc
> -----------------------------------------------
>
>                 Key: CASSANDRA-4995
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Brandon Williams
>            Assignee: Vijay
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>         Attachments: 0001-CASSANDRA-4995.patch
>
>
> {noformat}
>     [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)
> {noformat}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Posted by "Vijay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vijay updated CASSANDRA-4995:
-----------------------------

    Attachment: 0001-CASSANDRA-4995.patch

JEMalloc is not default, looks like this is because the Directory scanner scans for all the files in the class path and initializes it which will cause the static variable to get intialized.
                
> CompactionSerializerTest fails to find jemalloc
> -----------------------------------------------
>
>                 Key: CASSANDRA-4995
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Brandon Williams
>            Assignee: Vijay
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>         Attachments: 0001-CASSANDRA-4995.patch
>
>
> {noformat}
>     [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)
> {noformat}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504421#comment-13504421 ] 

Jonathan Ellis commented on CASSANDRA-4995:
-------------------------------------------

Constructor initializing a static field makes my OCD go crazy. :)

Should we just make the field non-static?  Or use a inner class static initializer + static instance() method like in MessagingService.
                
> CompactionSerializerTest fails to find jemalloc
> -----------------------------------------------
>
>                 Key: CASSANDRA-4995
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Brandon Williams
>            Assignee: Vijay
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>         Attachments: 0001-CASSANDRA-4995.patch
>
>
> {noformat}
>     [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)
> {noformat}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Posted by "Vijay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vijay updated CASSANDRA-4995:
-----------------------------

    Attachment: 0001-CASSANDRA-4995.patch
    
> CompactionSerializerTest fails to find jemalloc
> -----------------------------------------------
>
>                 Key: CASSANDRA-4995
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Brandon Williams
>            Assignee: Vijay
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>         Attachments: 0001-CASSANDRA-4995.patch
>
>
> {noformat}
>     [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)
> {noformat}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-4995) CompactionSerializerTest fails to find jemalloc

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brandon Williams updated CASSANDRA-4995:
----------------------------------------

    Fix Version/s:     (was: 1.1.7)
                   1.2.0 rc1
    
> CompactionSerializerTest fails to find jemalloc
> -----------------------------------------------
>
>                 Key: CASSANDRA-4995
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4995
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>            Reporter: Brandon Williams
>            Assignee: Vijay
>             Fix For: 1.2.0 rc1
>
>
> {noformat}
>     [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)
> {noformat}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira