[
https://issues.apache.org/jira/browse/CASSANDRA-3706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273355#comment-13273355
]
Brandon Williams commented on CASSANDRA-3706:
---------------------------------------------
I'm getting the following exception upon modifying a config and restarting:
{noformat}
INFO 15:26:57,770 Opening
/var/lib/cassandra/data/system_configuration/Configuration/system_configuration-Configuration-ia-1
(23286 bytes)
ERROR 15:26:57,788 Exception encountered during startup
java.lang.AssertionError
at
org.apache.cassandra.db.SystemTable.getCurrentLocalNodeId(SystemTable.java:582)
at
org.apache.cassandra.utils.NodeId$LocalNodeIdHistory.<init>(NodeId.java:194)
at org.apache.cassandra.utils.NodeId$LocalIds.<clinit>(NodeId.java:42)
at org.apache.cassandra.utils.NodeId.localIds(NodeId.java:49)
at org.apache.cassandra.utils.NodeId.getLocalId(NodeId.java:54)
at
org.apache.cassandra.db.SystemTable.saveConfiguration(SystemTable.java:340)
at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:184)
at
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:355)
at
org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:105)
java.lang.AssertionError
at
org.apache.cassandra.db.SystemTable.getCurrentLocalNodeId(SystemTable.java:582)
at
org.apache.cassandra.utils.NodeId$LocalNodeIdHistory.<init>(NodeId.java:194)
at org.apache.cassandra.utils.NodeId$LocalIds.<clinit>(NodeId.java:42)
at org.apache.cassandra.utils.NodeId.localIds(NodeId.java:49)
at org.apache.cassandra.utils.NodeId.getLocalId(NodeId.java:54)
at
org.apache.cassandra.db.SystemTable.saveConfiguration(SystemTable.java:340)
at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:184)
at
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:355)
at
org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:105)
Exception encountered during startup: null
{noformat}
Also, it would be nice to log at INFO when a new config is being saved.
> Back up configuration files on startup
> --------------------------------------
>
> Key: CASSANDRA-3706
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3706
> Project: Cassandra
> Issue Type: New Feature
> Components: Tools
> Reporter: Jonathan Ellis
> Assignee: Dave Brosius
> Priority: Minor
> Labels: lhf
> Fix For: 1.1.1
>
> Attachments: save_configuration.diff, save_configuration_2.diff,
> save_configuration_3.diff, save_configuration_4.diff,
> save_configuration_6.diff, save_configuration_7.diff,
> save_configuration_8.diff, save_configuration_9.diff
>
>
> Snapshot can backup user data, but it's also nice to be able to have
> known-good configurations saved as well in case of accidental snafus or even
> catastrophic loss of a cluster. If we check for changes to cassandra.yaml,
> cassandra-env.sh, and maybe log4j-server.properties on startup, we can back
> them up to a columnfamily that can then be handled by normal snapshot/backup
> procedures.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira