New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some tests in test/cql-pytest/ fail on Cassandra #16027
Comments
@Deexie I'm having some trouble with In particular I noticed (this is probably an incomplete list):
|
0-1 restriction is mentioned in docs https://github.com/scylladb/scylladb/blob/master/docs/cql/compaction.rst.
Here, an exception was thrown even before the validation. BTW. the option isn't mentioned in docs (neither oss nor enterprise). |
It is mentioned in our documentation, but not in Cassandra's: https://cassandra.apache.org/doc/4.1/cassandra/operating/compaction/index.html I agree that this limitation makes sense, but for some reason in this Cassandra unit test, they checked that 5.5 works, deliberately. I don't know why they wanted it to work. Perhaps we should look at their code to see what 5.5 does - I'm guessing it does the same as 1.0 and it's not really useful, but it's worth checking.
But again, In any case, if we decide that
Right - we added the timestamp_resolution feature in 0c72781 but allowed only MILLISECOND (which was apparently used by KairosDB) , instead of allowing all the Java units. But the problem in this test (which you added in commit 14598fd) is that it assumes that "SECONDS" shouldn't work? Why? In Java it does. Arguably it should in Scylla too even if we never implemented. If you want to check an obvious error in units, use "DOGS", not "SECONDS" :-) |
Opened issue #16057 about the missing support for |
I don't think there's any reason to. The ability to run tests against Cassandra is useful for debugging the tests themselves - to check that the tests are verifying some really expecting behavior, rather than enshrining some misunderstood behavior of the code. We usually only run tests against Cassandra while developing new tests, or new features - on master. I never cared about doing this in old branches. |
In issue #15969 I noticed that some tests in
test/cql-pytest/test_permissions.py
fail on Cassandra 4.1.It appears that it's been a while since we tried to run these tests on Cassandra, and there are additional test files with tests that fail on Cassandra:
test_compaction_strategy_validation.py
test_describe.py
test_guardrail_replication_strategy.py
test_keyspace.py
test_materialized_view.py
test_secondary_index.py
cassandra_tests/validation/operations/compact_storage_test.py
cassandra_tests/validation/operations/select_single_column_relation_test.py
There isn't a lot to fix - most of these have just one failing test and most of the fixes are probably trivial. But we should do it.
The text was updated successfully, but these errors were encountered: