[
https://issues.apache.org/jira/browse/CASSANDRA-10051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14694132#comment-14694132
]
Paulo Motta commented on CASSANDRA-10051:
-----------------------------------------
There were two problems here:
* ccm was using platform-dependent python library shlex to start json2sstable
tool (fix in this [ccm PR351|https://github.com/pcmanus/ccm/pull/351])
* even after the ccm fix, the test was failing sometimes, due to timing
differences in periodic commit log synchronization. in order to avoid this, I
forced the test to use the synchronous-batch commit log in this
[cassandra-dtest PR458|https://github.com/riptano/cassandra-dtest/pull/458]
** during investigation of the previous point, I also created a dtest to
validate commit log replay, since I didn't find any dtest on this ([cassandra
dtest PR459|https://github.com/riptano/cassandra-dtest/pull/459]).
> Windows dtest: json_tools_test.TestJson.json_tools_test
> --------------------------------------------------------
>
> Key: CASSANDRA-10051
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10051
> Project: Cassandra
> Issue Type: Sub-task
> Reporter: Paulo Motta
> Assignee: Paulo Motta
> Fix For: 2.2.x
>
>
> Failing with following message:
> {noformat}
> File "C:\tools\python2\lib\unittest\case.py", line 329, in run
> testMethod()
> File
> "D:\jenkins\workspace\cassandra-2.2_dtest_win32\cassandra-dtest\json_tools_test.py",
> line 85, in json_tools_test
> node1.run_json2sstable(f, "test", "users")
> File "D:\jenkins\workspace\cassandra-2.2_dtest_win32\ccm\ccmlib\node.py",
> line 807, in run_json2sstable
> subprocess.call(args, env=env)
> File "C:\tools\python2\lib\subprocess.py", line 522, in call
> return Popen(*popenargs, **kwargs).wait()
> File "C:\tools\python2\lib\subprocess.py", line 710, in __init__
> errread, errwrite)
> File "C:\tools\python2\lib\subprocess.py", line 958, in _execute_child
> startupinfo)
> '[Error 2] The system cannot find the file specified\n-------------------- >>
> begin captured logging << --------------------\ndtest: DEBUG: cluster ccm
> directory: d:\\temp\\dtest-ykvjn4\ndtest: DEBUG: Starting cluster...\ndtest:
> DEBUG: Version: 2.2.0\ndtest: DEBUG: Getting CQLSH...\ndtest: DEBUG:
> Inserting data...\ndtest: DEBUG: Flushing and stopping cluster...\ndtest:
> DEBUG: Exporting to JSON file...\ndtest: DEBUG: Deleting cluster and creating
> new...\ndtest: DEBUG: Inserting data...\ndtest: DEBUG: Importing JSON
> file...\n--------------------- >> end captured logging <<
> ---------------------'
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)