cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-9555) Don't let offline tools run while cassandra is running
Date Sat, 16 Apr 2016 10:57:25 GMT


Robert Stupp commented on CASSANDRA-9555:

I've put something together for these offline tools:
* sstableloader / BulkLoader
* sstableexpiredblockers / SSTableExpiredBlockers
* sstabledump / SSTableExport
* sstablelevelreset / SSTableLevelResetter
* sstablemetadata / SSTableMetadataViewer
* sstableofflinerelevel / SSTableOfflineRelevel
* sstablerepairedset / SSTableRepairedAtSetter
* sstablescrub / StandanloneScrubber
* sstablesplit / StandaloneSplitter
* sstableutil / StandaloneSSTableUtil
* sstableupgrade / StandaloneUpgrader
* sstableverify / StandaloneVerifier

These tools take a new option {{--run-even-if-cassandra-is-running}}. If these already had
a similar option, I've reused that. If those tools have a corresponding nodetool command,
that is then mentioned in the error message.

The check is performed against storage port, storage SSL port, rpc port, native port, native
SSL port using the configuration in {{cassandra.yaml}} to work even if some of the ports are
temporarily disabled. Detecting whether the JMX port is open, is a bit difficult since the
JMX configuration is not available in the offline tools and including {{}} is
probably not a good idea.

Most of the tools modify sstables, which will cause errors in Cassandra like snapshots no
longer working, repair failing and more.
Other tools seem to just read data, but these are designed to work correctly as long as the
set of referenced sstables is not change (same situation just the other way around) - but
a running Cassandra daemon will do that.

Such a message looks like this:
$ bin/sstablescrub system_schema tables
Storage/Gossip port at localhost/ is accepting connections, assuming Cassandra
is running.
It is strongly recommended to NOT run sstablescrub while Cassandra is running!

Consider using 'nodetool scrub'.

> Don't let offline tools run while cassandra is running
> ------------------------------------------------------
>                 Key: CASSANDRA-9555
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Marcus Eriksson
>            Assignee: Robert Stupp
>            Priority: Minor
>             Fix For: 3.x
> We should not let offline tools that modify sstables run while Cassandra is running.

This message was sent by Atlassian JIRA

View raw message