cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Bezget (JIRA)" <>
Subject [jira] Created: (CASSANDRA-1806) Exception thrown when running cassandra.bat
Date Thu, 02 Dec 2010 17:11:13 GMT
Exception thrown when running cassandra.bat

                 Key: CASSANDRA-1806
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.7.0 rc 1
         Environment: Windows XP SP3, jdk1.6.0_22
            Reporter: Jan Bezget
            Priority: Critical

I've followed the Getting Started instructions for a single node and it worked fine in cassandra-0.7beta2
and beta3 on default configuration. But when trying to do the same for cassandra-0.7rc1 it
spews out the following stack trace, when running the cassandra.bat file:
INFO 20:21:37,771 Starting up server gossip
 INFO 20:21:37,786 switching in a fresh Memtable for LocationInfo at CommitLogContext(file='/var/lib
/cassandra/commitlog\CommitLog-1290885697489.log', position=700)
 INFO 20:21:37,786 Enqueuing flush of Memtable-LocationInfo@29247351(227 bytes, 4 operations)
 INFO 20:21:37,786 Writing Memtable-LocationInfo@29247351(227 bytes, 4 operations)
ERROR 20:21:38,161 Fatal exception in thread Thread[FlushWriter:1,5,main] rename failed of D:\var\lib\cassandra\data\system\LocationInfo-e-1-Data.db
        at org.apache.cassandra.db.Memtable.writeSortedContents(
        at org.apache.cassandra.db.Memtable.access$000(
        at org.apache.cassandra.db.Memtable$1.runMayThrow(
        at java.util.concurrent.Executors$
        at java.util.concurrent.FutureTask$Sync.innerRun(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: rename failed of D:\var\lib\cassandra\data\system\LocationInfo-e-1-Data.db
        at org.apache.cassandra.utils.FBUtilities.renameWithConfirm(
        ... 12 more

It seems there's a problem, when cassandra is trying to rename the tmp files (e.g. LocationInfo-tmp-e-1-Data.db).
It happens in
public static void renameWithConfirm(String tmpFilename, String filename) throws IOException
        if (!new File(tmpFilename).renameTo(new File(filename)))
            throw new IOException("rename failed of " + filename);

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message