You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Patrik Modesto <pa...@gmail.com> on 2011/02/07 15:35:30 UTC

[0.7.1] more exceptions: Illegal mode

INFO 15:30:49,647 Compacted to
/www/foo/cassandra/data/foo/Url-tmp-f-767-Data.db.  4,199,999,762 to
4,162,579,242 (~99% of original) bytes for 379,179 keys.  Time:
137,149ms.
ERROR 15:30:49,699 Fatal exception in thread Thread[CompactionExecutor:1,1,main]
java.lang.RuntimeException: java.lang.IllegalArgumentException:
Illegal mode "w" must be one of "r", "rw", "rws", or "rwd"
        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: Illegal mode "w" must
be one of "r", "rw", "rws", or "rwd"
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:197)
        at org.apache.cassandra.io.util.BufferedRandomAccessFile.<init>(BufferedRandomAccessFile.java:116)
        at org.apache.cassandra.io.sstable.CacheWriter.saveCache(CacheWriter.java:48)
        at org.apache.cassandra.db.CompactionManager$9.runMayThrow(CompactionManager.java:746)
        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
        ... 6 more
ERROR 15:30:49,699 Fatal exception in thread Thread[CompactionExecutor:1,1,main]
java.lang.RuntimeException: java.lang.IllegalArgumentException:
Illegal mode "w" must be one of "r", "rw", "rws", or "rwd"
        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: Illegal mode "w" must
be one of "r", "rw", "rws", or "rwd"
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:197)
        at org.apache.cassandra.io.util.BufferedRandomAccessFile.<init>(BufferedRandomAccessFile.java:116)
        at org.apache.cassandra.io.sstable.CacheWriter.saveCache(CacheWriter.java:48)
        at org.apache.cassandra.db.CompactionManager$9.runMayThrow(CompactionManager.java:746)
        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
        ... 6 more

Re: [0.7.1] more exceptions: Illegal mode

Posted by Aaron Morton <aa...@thelastpickle.com>.
I noticed this as well in a machine that was left running with the current 0.7 branch code. 

Created https://issues.apache.org/jira/browse/CASSANDRA-2131

aaron


On 08 Feb, 2011,at 04:34 AM, Jake Luciani <ja...@gmail.com> wrote:

This sounds like a possible bug since the BRAF was re-written in 0.7.1. Could you open a ticket?

On Mon, Feb 7, 2011 at 10:32 AM, Patrik Modesto <pa...@gmail.com> wrote:
On Mon, Feb 7, 2011 at 15:42, Thibaut Britz
<th...@trendiction.com> wrote:
> I think this is related to a faulty disk.

I'm not sure thats the problem. Cassandra 0.7.0 didn't report any
problem. It started with Cassandra 0.7.1.

Patrik


Re: [0.7.1] more exceptions: Illegal mode

Posted by Jake Luciani <ja...@gmail.com>.
This sounds like a possible bug since the BRAF was re-written in 0.7.1.
Could you open a ticket?

On Mon, Feb 7, 2011 at 10:32 AM, Patrik Modesto <pa...@gmail.com>wrote:

> On Mon, Feb 7, 2011 at 15:42, Thibaut Britz
> <th...@trendiction.com> wrote:
> > I think this is related to a faulty disk.
>
> I'm not sure thats the problem. Cassandra 0.7.0 didn't report any
> problem. It started with Cassandra 0.7.1.
>
> Patrik
>

Re: [0.7.1] more exceptions: Illegal mode

Posted by Patrik Modesto <pa...@gmail.com>.
On Mon, Feb 7, 2011 at 15:42, Thibaut Britz
<th...@trendiction.com> wrote:
> I think this is related to a faulty disk.

I'm not sure thats the problem. Cassandra 0.7.0 didn't report any
problem. It started with Cassandra 0.7.1.

Patrik

Re: [0.7.1] more exceptions: Illegal mode

Posted by Thibaut Britz <th...@trendiction.com>.
I think this is related to a faulty disk.


On Mon, Feb 7, 2011 at 3:35 PM, Patrik Modesto <pa...@gmail.com> wrote:
> INFO 15:30:49,647 Compacted to
> /www/foo/cassandra/data/foo/Url-tmp-f-767-Data.db.  4,199,999,762 to
> 4,162,579,242 (~99% of original) bytes for 379,179 keys.  Time:
> 137,149ms.
> ERROR 15:30:49,699 Fatal exception in thread Thread[CompactionExecutor:1,1,main]
> java.lang.RuntimeException: java.lang.IllegalArgumentException:
> Illegal mode "w" must be one of "r", "rw", "rws", or "rwd"
>        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.IllegalArgumentException: Illegal mode "w" must
> be one of "r", "rw", "rws", or "rwd"
>        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:197)
>        at org.apache.cassandra.io.util.BufferedRandomAccessFile.<init>(BufferedRandomAccessFile.java:116)
>        at org.apache.cassandra.io.sstable.CacheWriter.saveCache(CacheWriter.java:48)
>        at org.apache.cassandra.db.CompactionManager$9.runMayThrow(CompactionManager.java:746)
>        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>        ... 6 more
> ERROR 15:30:49,699 Fatal exception in thread Thread[CompactionExecutor:1,1,main]
> java.lang.RuntimeException: java.lang.IllegalArgumentException:
> Illegal mode "w" must be one of "r", "rw", "rws", or "rwd"
>        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.IllegalArgumentException: Illegal mode "w" must
> be one of "r", "rw", "rws", or "rwd"
>        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:197)
>        at org.apache.cassandra.io.util.BufferedRandomAccessFile.<init>(BufferedRandomAccessFile.java:116)
>        at org.apache.cassandra.io.sstable.CacheWriter.saveCache(CacheWriter.java:48)
>        at org.apache.cassandra.db.CompactionManager$9.runMayThrow(CompactionManager.java:746)
>        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>        ... 6 more
>