cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Desimpel, Ignace" <>
Subject Migration LCS from 1.2.X to 2.0.x exception
Date Tue, 24 Sep 2013 13:57:41 GMT
Tested on WINDOWS : On startup of the 2.0.0 version from 1.2.x files I get an error as listed

This is due to the code in LeveledManifest:: mutateLevel. The method already has a comment
saying that it is scary ...
On windows, one cannot use the File::rename if the target file name already exists.
Also, even on Linux, I'm not sure if a rename would actually 'overwrite/implicit-delete' the
content of the target file.

Anyway, adding code (below) before the FileUtils.renameWithConfirm should work in both cases
(maybe even rename the fromFile to be able to recover...)
File oTo = new File(filename);
                if ( oTo.exists() ) oTo.delete();

java.lang.RuntimeException: Failed to rename\Function-ic-10-Statistics.db-tmp to\Function-ic-10-Statistics.db
                at org.apache.cassandra.db.compaction.LeveledManifest.mutateLevel(
                at org.apache.cassandra.db.compaction.LegacyLeveledManifest.migrateManifests(
                at org.apache.cassandra.service.CassandraDaemon.setup(
                at org.apache.cassandra.service.CassandraDaemon.activate(


Ignace Desimpel

View raw message