cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua McKenzie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-9897) Windows dtest: snapshot_test.py failures
Date Mon, 27 Jul 2015 17:31:04 GMT

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

Joshua McKenzie commented on CASSANDRA-9897:
--------------------------------------------

After dealing with escaping and the fact that c:\temp explodes on the archiver (since \t is
an escape character), I'm now wrestling with the fact that subprocess.communicate() is blocking
indefinitely during node.nodetool in ccm *if called from dtests* on Windows. Running "ccm
node1 nodetool flush" from a command-prompt works fine, but blocks on .communicate during
the chain of calls to try and force a flush during snapshot tests:

{code}
if capture_output:
    p = subprocess.Popen(args, env=env, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    stdout, stderr = p.communicate()
{code}

[~philipthompson] / [~tjake]: Either of you have any ideas on this one? I'm stumped. Logs
from the node shows that it's flushing and returning as one would expect but the dtest just
hangs there and never gets past p.communicate()

> Windows dtest: snapshot_test.py failures
> ----------------------------------------
>
>                 Key: CASSANDRA-9897
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9897
>             Project: Cassandra
>          Issue Type: Sub-task
>            Reporter: Joshua McKenzie
>            Assignee: Joshua McKenzie
>              Labels: Windows
>             Fix For: 2.2.1
>
>
> System call is linux-specific:
> {noformat}
> ERROR [CommitLogArchiver:1] 2015-07-24 13:26:39,622 CassandraDaemon.java:181 - Exception
in thread Thread[CommitLogArchiver:1,5,main]
> java.lang.RuntimeException: java.io.IOException: Exception while executing the command:
cp c:\temp\dtest-phi4wd\test\node1\commitlogs\CommitLog-5-1437758795056.log c:  emp     mpkzsvkb/CommitLog-5-1437758795056.log,
command error Code: 1, command output: cp: accessing `c:\temp\tmpkzsvkb/CommitLog-5-1437758795056.log':
Invalid argument
>         at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-16.0.jar:na]
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:32) ~[main/:na]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_45]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_45]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
~[na:1.8.0_45]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_45]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message