cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Meyer (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-6043) Unable to compact sstables after running sstablesplit without restarting node
Date Tue, 17 Sep 2013 19:14:58 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-6043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13769810#comment-13769810
] 

Daniel Meyer edited comment on CASSANDRA-6043 at 9/17/13 7:14 PM:
------------------------------------------------------------------

sstablesplit should only be used offline.  I suspect it might be good to have a warning or
something for users, but I accept that the issue as stated is not a bug.
                
      was (Author: dmeyer):
    sstablesplit should only be used offline.  I suspect it might be good to have a warning
or something for users, but I accept that the the issues as stated is not a bug.
                  
> Unable to compact sstables after running sstablesplit without restarting node
> -----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-6043
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6043
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: java version "1.7.0_40"
> Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
> Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
>            Reporter: Daniel Meyer
>            Priority: Minor
>
> repro steps:
> 1) Create single node cluster with ccm
> 2) ccm node1 stress -n 10000000 -o insert
> 3) ccm node1 compact
> Observe sstables compacted into single sstable
> 4) <path2bin>/sstablesplit <path2sstable from step 3>
> 5) ccm node1 compact (or <path2bin>/nodetool compact Keyspace1 Standard1
> Expected: sstables should be recompacted into a single large sstable
> Observed:
> Error occurred during compaction
> java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.io.FileNotFoundException:
/Users/danielmeyer/.ccm/sstablesplit-1.2/node1/data/Keyspace1/Standard1/Keyspace1-Standard1-ic-19-Data.db
(No such file or directory)
> 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> 	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> 	at org.apache.cassandra.db.compaction.CompactionManager.performMaximal(CompactionManager.java:331)
> 	at org.apache.cassandra.db.ColumnFamilyStore.forceMajorCompaction(ColumnFamilyStore.java:1691)
> 	at org.apache.cassandra.service.StorageService.forceTableCompaction(StorageService.java:2168)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
> 	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
> 	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
> 	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
> 	at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
> 	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
> 	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:177)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:174)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
> 	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:724)
> Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /Users/danielmeyer/.ccm/sstablesplit-1.2/node1/data/Keyspace1/Standard1/Keyspace1-Standard1-ic-19-Data.db
(No such file or directory)
> 	at org.apache.cassandra.io.util.ThrottledReader.open(ThrottledReader.java:53)
> 	at org.apache.cassandra.io.sstable.SSTableReader.openDataReader(SSTableReader.java:1212)
> 	at org.apache.cassandra.io.sstable.SSTableScanner.<init>(SSTableScanner.java:54)
> 	at org.apache.cassandra.io.sstable.SSTableReader.getDirectScanner(SSTableReader.java:1032)
> 	at org.apache.cassandra.io.sstable.SSTableReader.getDirectScanner(SSTableReader.java:1044)
> 	at org.apache.cassandra.db.compaction.AbstractCompactionStrategy.getScanners(AbstractCompactionStrategy.java:157)
> 	at org.apache.cassandra.db.compaction.AbstractCompactionStrategy.getScanners(AbstractCompactionStrategy.java:163)
> 	at org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:117)
> 	at org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48)
> 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
> 	at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:58)
> 	at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:60)
> 	at org.apache.cassandra.db.compaction.CompactionManager$6.runMayThrow(CompactionManager.java:352)
> 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	... 3 more
> Caused by: java.io.FileNotFoundException: /Users/danielmeyer/.ccm/sstablesplit-1.2/node1/data/Keyspace1/Standard1/Keyspace1-Standard1-ic-19-Data.db
(No such file or directory)
> 	at java.io.RandomAccessFile.open(Native Method)
> 	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241)
> 	at org.apache.cassandra.io.util.RandomAccessReader.<init>(RandomAccessReader.java:67)
> 	at org.apache.cassandra.io.util.ThrottledReader.<init>(ThrottledReader.java:35)
> 	at org.apache.cassandra.io.util.ThrottledReader.open(ThrottledReader.java:49)
> 	... 18 more
> Note:  Restarting the node will allow you to run compaction; however, the user experience
could be better here.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message