[
https://issues.apache.org/jira/browse/CASSANDRA-10313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefania resolved CASSANDRA-10313.
----------------------------------
Resolution: Duplicate
The dtest was fixed by forcing the timezone to UTC (CASSANDRA-9304).
CASSANDRA-10397 will provide a way for users to change the default timezone
provided they have the correct python library installed ({{pytz}}).
> cqlsh_tests.cqlsh_copy_tests.CqlshCopyTest.test_all_datatypes_read fails
> locally
> --------------------------------------------------------------------------------
>
> Key: CASSANDRA-10313
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10313
> Project: Cassandra
> Issue Type: Test
> Environment: Linux
> Reporter: Stefania
> Assignee: Stefania
> Labels: cqlsh
>
> I get this failure on my box with TZ at GMT+08:
> {code}
> ======================================================================
> FAIL: test_all_datatypes_read (cqlsh_tests.cqlsh_copy_tests.CqlshCopyTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/home/stefi/git/cstar/cassandra-dtest/cqlsh_tests/cqlsh_copy_tests.py", line
> 674, in test_all_datatypes_read
> self.assertCsvResultEqual(self.tempfile.name, results)
> File
> "/home/stefi/git/cstar/cassandra-dtest/cqlsh_tests/cqlsh_copy_tests.py", line
> 137, in assertCsvResultEqual
> raise e
> AssertionError: Element counts were not equal:
> First has 1, Second has 0: ['ascii', '1099511627776', '0xbeef', 'True',
> '3.140000000000000124344978758017532527446746826171875', '2.444', '1.1',
> '127.0.0.1', '25',
> '\xe3\x83\xbd(\xc2\xb4\xe3\x83\xbc\xef\xbd\x80)\xe3\x83\x8e', '2005-07-14
> 12:30:00', '30757c2c-584a-11e5-b2d0-9cebe804ecbe',
> '2471e7de-41e4-478f-a402-e99ed779be76', 'asdf', '36893488147419103232']
> First has 0, Second has 1: ['ascii', '1099511627776', '0xbeef', 'True',
> '3.140000000000000124344978758017532527446746826171875', '2.444', '1.1',
> '127.0.0.1', '25',
> '\xe3\x83\xbd(\xc2\xb4\xe3\x83\xbc\xef\xbd\x80)\xe3\x83\x8e', '2005-07-14
> 04:30:00', '30757c2c-584a-11e5-b2d0-9cebe804ecbe',
> '2471e7de-41e4-478f-a402-e99ed779be76', 'asdf', '36893488147419103232']
> -------------------- >> begin captured logging << --------------------
> dtest: DEBUG: cluster ccm directory: /tmp/dtest-8VAvBl
> dtest: DEBUG: Importing from csv file: /tmp/tmpGwW8yB
> dtest: WARNING: Mismatch at index: 10
> dtest: WARNING: Value in csv: 2005-07-14 12:30:00
> dtest: WARNING: Value in result: 2005-07-14 04:30:00
> --------------------- >> end captured logging << ---------------------
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)