Details
-
Sub-task
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
sstableutil_test.py:SSTableUtilTest.abortedcompaction_test and sstableutil_test.py:SSTableUtilTest.compaction_test fail on Windows:
http://cassci.datastax.com/view/win32/job/cassandra-3.0_dtest_win32/100/testReport/sstableutil_test/SSTableUtilTest/abortedcompaction_test/
http://cassci.datastax.com/view/win32/job/cassandra-3.0_dtest_win32/100/testReport/sstableutil_test/SSTableUtilTest/compaction_test/
This is a pretty simple failure – looks like the underlying behavior is ok, but string comparison fails when the leading d in the filename is lowercase as returned by sstableutil (see the _invoke_sstableutil test function), but uppercase as returned by glob.glob (see the _get_sstable_files test function).
Do I understand correctly that Windows filenames are case-insensitive, including the drive portion? If that's the case, then we can just lowercase the file names in the test helper functions above when the tests are run on Windows. JoshuaMcKenzie can you confirm? I'll fix this in the tests if so. If I'm wrong, and something in sstableutil needs to be fixed, could you find an assignee?