Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodetool broken with java-11-openjdk-11.0.10.0.9-0.fc33.x86_64 #235

Open
avikivity opened this issue Mar 17, 2021 · 1 comment
Open

nodetool broken with java-11-openjdk-11.0.10.0.9-0.fc33.x86_64 #235

avikivity opened this issue Mar 17, 2021 · 1 comment

Comments

@avikivity
Copy link
Member

I see error messages like

Cannot initialize optimized memory deallocator. Some data, both in-memory and on-disk, may live longer due to garbage collection.
error: null
-- StackTrace --
java.lang.NullPointerException
    at org.apache.cassandra.config.DatabaseDescriptor.getDiskFailurePolicy(DatabaseDescriptor.java:1860)
    at org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable(JVMStabilityInspector.java:82)
    at org.apache.cassandra.io.util.FileUtils.<clinit>(FileUtils.java:104)
    at org.apache.cassandra.utils.FBUtilities.getToolsOutputDirectory(FBUtilities.java:824)
    at org.apache.cassandra.tools.NodeTool.printHistory(NodeTool.java:213)
    at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:179)
@avikivity
Copy link
Member Author

Cassandra 3.11 appears to handle it better:

    static
    {
        boolean canClean = false;
        try
        {
            ByteBuffer buf = ByteBuffer.allocateDirect(1);
            ((DirectBuffer) buf).cleaner().clean();
            canClean = true;
        }
        catch (Throwable t)
        {
            logger.error("Cannot initialize un-mmaper.  (Are you using a non-Oracle JVM?)  Compacted data files will not be removed promptly.  Consider using an Oracle JVM or using standard disk access mode", t);
            JVMStabilityInspector.inspectThrowable(t);
        }
        isCleanerAvailable = canClean;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant