[ https://issues.apache.org/jira/browse/CASSANDRA-7475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14082382#comment-14082382 ]
Philip Thompson edited comment on CASSANDRA-7475 at 8/1/14 3:56 PM: -------------------------------------------------------------------- I made a few improvements to the tests. The errors were related to running cqlsh instead of cqlsh.bat and with starting cqlsh before the nodes were up. test_simple_insert is now passing. test_eat_glass and test_with_empty_values are both now failing on the validations. {code} test_simple_insert (cqlsh_tests.TestCqlsh) ... SUCCESS: The process with PID 9652 has been terminated. ok test_with_empty_values (cqlsh_tests.TestCqlsh) ... FAIL Error saving log: 'module' object has no attribute 'symlink' SUCCESS: The process with PID 9412 has been terminated. ====================================================================== FAIL: test_eat_glass (cqlsh_tests.TestCqlsh) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\Users\Philip\cstar\cassandra-dtest\cqlsh_tests.py", line 279, in test_eat_glass self.assertEquals(output.count('Можам да јадам стакло, а не ме штета.'), 16) AssertionError: 0 != 16 -------------------- >> begin captured logging << -------------------- dtest: DEBUG: cluster ccm directory: d:\users\philip\appdata\local\temp\dtest-9rsf2x --------------------- >> end captured logging << --------------------- ====================================================================== FAIL: test_with_empty_values (cqlsh_tests.TestCqlsh) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\Users\Philip\cstar\cassandra-dtest\cqlsh_tests.py", line 361, in test_with_empty_values self.assertTrue(expected in output, "Output \n {%s} \n doesn't contain expected\n {%s}" % (output, expected)) AssertionError: Output { intcol | bigintcol | varintcol -------------+----------------------+----------------------------- -12 | 1234567890123456789 | 10000000000000000000000000 2147483647 | 9223372036854775807 | 9 0 | 0 | 0 -2147483648 | -9223372036854775808 | -10000000000000000000000000 | | (5 rows) } doesn't contain expected { intcol | bigintcol | varintcol -------------+----------------------+----------------------------- -12 | 1234567890123456789 | 10000000000000000000000000 2147483647 | 9223372036854775807 | 9 0 | 0 | 0 -2147483648 | -9223372036854775808 | -10000000000000000000000000 | | (5 rows)} {code} was (Author: philipthompson): I made a few improvements to the tests. The errors were related to running cqlsh instead of cqlsh.bat and with starting cqlsh before the nodes were up. test_simple_insert is now passing. test_eat_glass and test_with_empty_values are both now failing on the validations. > Dtest: Windows - various cqlsh_tests errors > ------------------------------------------- > > Key: CASSANDRA-7475 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7475 > Project: Cassandra > Issue Type: Bug > Components: Tests > Environment: win7x64 SP1, Cassandra 3.0 / trunk > Reporter: Joshua McKenzie > Assignee: Philip Thompson > Priority: Minor > Labels: Windows > > Have a few windows-specific failures in this test. > {code:title=test_eat_glass} > ====================================================================== > ERROR: test_eat_glass (cqlsh_tests.TestCqlsh) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "C:\src\cassandra-dtest\cqlsh_tests.py", line 158, in test_eat_glass > """.encode("utf-8")) > File "build\bdist.win32\egg\ccmlib\node.py", line 613, in run_cqlsh > p.stdin.write(cmd + ';\n') > IOError: [Errno 22] Invalid argument > {code} > {code:title=test_simple_insert} > ====================================================================== > ERROR: test_simple_insert (cqlsh_tests.TestCqlsh) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "C:\src\cassandra-dtest\cqlsh_tests.py", line 35, in test_simple_insert > cursor.execute("select id, value from simple.simple"); > File "c:\src\cassandra-dbapi2\cql\cursor.py", line 80, in execute > response = self.get_response(prepared_q, cl) > File "c:\src\cassandra-dbapi2\cql\thrifteries.py", line 77, in get_response > return self.handle_cql_execution_errors(doquery, compressed_q, compress, > cl) > File "c:\src\cassandra-dbapi2\cql\thrifteries.py", line 98, in > handle_cql_execution_errors > raise cql.ProgrammingError("Bad Request: %s" % ire.why) > ProgrammingError: Bad Request: Keyspace simple does not exist > {code} > {code:title=test_with_empty_values} > ====================================================================== > ERROR: test_with_empty_values (cqlsh_tests.TestCqlsh) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "C:\src\cassandra-dtest\cqlsh_tests.py", line 347, in > test_with_empty_values > output = self.run_cqlsh(node1, "select intcol, bigintcol, varintcol from > CASSANDRA_7196.has_all_types where num in (0, 1, 2, 3, 4)") > File "C:\src\cassandra-dtest\cqlsh_tests.py", line 373, in run_cqlsh > p = subprocess.Popen([ cli ] + args, env=env, stdin=subprocess.PIPE, > stderr=subprocess.PIPE, stdout=subprocess.PIPE) > File "C:\Python27\lib\subprocess.py", line 710, in __init__ > errread, errwrite) > File "C:\Python27\lib\subprocess.py", line 958, in _execute_child > startupinfo) > WindowsError: [Error 193] %1 is not a valid Win32 application > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)