Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
-
Low
Description
BatchlogManager#countAllBatches doesn't actually swap strings for the query and so yields an Error in the BatchLogManager unit test:
[junit] Testcase: testReplay(org.apache.cassandra.db.BatchlogManagerTest): Caused an ERROR [junit] Error validating SELECT count(*) FROM %s.%s [junit] java.lang.RuntimeException: Error validating SELECT count(*) FROM %s.%s [junit] at org.apache.cassandra.cql3.QueryProcessor.executeInternal(QueryProcessor.java:274) [junit] at org.apache.cassandra.db.BatchlogManager.countAllBatches(BatchlogManager.java:102) [junit] at org.apache.cassandra.db.BatchlogManagerTest.testReplay(BatchlogManagerTest.java:60) [junit] Caused by: org.apache.cassandra.exceptions.SyntaxException: line 1:24 no viable alternative at character '%'
Attaching patch that uses a formatted string to replace the %s with the actual ks.cf pair.
Attachments
Attachments
Issue Links
- is duplicated by
-
CASSANDRA-7295 BatchlogManagerTest unit test failing in 2.1 & trunk
- Resolved