cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Motta (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-12478) cassandra stress still uses CFMetaData.compile()
Date Wed, 28 Sep 2016 18:17:20 GMT


Paulo Motta commented on CASSANDRA-12478:

The new patch still has the problem:
org.apache.cassandra.exceptions.ConfigurationException: Unable to check disk space available
to tools/bin/../../data/commitlog. Perhaps the Cassandra user does not have the necessary
	at org.apache.cassandra.config.DatabaseDescriptor.applySimpleConfig(
	at org.apache.cassandra.config.DatabaseDescriptor.toolInitialization(
	at org.apache.cassandra.config.DatabaseDescriptor.toolInitialization(
	at org.apache.cassandra.stress.Stress.main(
Caused by: java.nio.file.AccessDeniedException: tools/bin/../../data/commitlog
	at sun.nio.fs.UnixException.translateToIOException(
	at sun.nio.fs.UnixException.rethrowAsIOException(
	at sun.nio.fs.UnixException.rethrowAsIOException(
	at sun.nio.fs.UnixFileStore.devFor(
	at sun.nio.fs.UnixFileStore.<init>(
	at sun.nio.fs.LinuxFileStore.<init>(
	at sun.nio.fs.LinuxFileSystemProvider.getFileStore(
	at sun.nio.fs.LinuxFileSystemProvider.getFileStore(
	at sun.nio.fs.UnixFileSystemProvider.getFileStore(
	at java.nio.file.Files.getFileStore(
	at org.apache.cassandra.config.DatabaseDescriptor.guessFileStore(
	at org.apache.cassandra.config.DatabaseDescriptor.applySimpleConfig(
	... 4 more

Perhaps you need to change from {{toolInitialization}} to {{clientInitialization}}, as suggested
by [~snazy]. But I think that even in tool mode, we shouldn't be checking commit log space,
so I think the correct fix is to skip that check if in client or tool mode. WDYT [~snazy]?

> cassandra stress still uses CFMetaData.compile()
> ------------------------------------------------
>                 Key: CASSANDRA-12478
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Denis Ranger
>              Labels: stress
>             Fix For: 3.0.x
>         Attachments: 0001-Replaced-using-CFMetaData.compile-in-cassandra-stres.patch,
cassandra-stress-trunk.patch, cassandra-stress-v2.patch
> Using CFMetaData.compile() on a client tool causes permission problems. To reproduce:
> * Start cassandra under user _cassandra_
> * Run {{chmod -R go-rwx /var/lib/cassandra}} to deny access to other users.
> * Use a non-root user to run {{cassandra-stress}} 
> This produces an access denied message on {{/var/lib/cassandra/commitlog}}.
> The attached fix uses client-mode functionality.

This message was sent by Atlassian JIRA

View raw message