[
https://issues.apache.org/jira/browse/CASSANDRA-9897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14640859#comment-14640859
]
Joshua McKenzie commented on CASSANDRA-9897:
--------------------------------------------
We're regexing in 'cp %path \{tmp_commitlog\}/%name' which obviously won't work
on Windows. As usual it's not as simple as a straight replacement to 'copy /Y'
since "copy" is technically an environment-specific sub-component of cmd.exe,
so I'm tinkering with 'cmd /c "copy /Y ..."'. Getting some pathing errors but
should be close, and this ought to tidy up another 5 failures.
Once it's cleaned up I'll add a comment to commitlog_archiving.properties with
a windows-specific example accounting for "copy" being *"special"*.
> 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)