bereng commented on code in PR #1891:
URL: https://github.com/apache/cassandra/pull/1891#discussion_r1123064166
##########
test/unit/org/apache/cassandra/utils/CassandraGenerators.java:
##########
@@ -99,7 +100,7 @@
private static final Gen<SinglePartitionReadCommand>
SINGLE_PARTITION_READ_COMMAND_GEN = gen(rnd -> {
TableMetadata metadata = TABLE_METADATA_GEN.generate(rnd);
- int nowInSec = (int) rnd.next(Constraint.between(1,
Integer.MAX_VALUE));
+ long nowInSec = rnd.next(Constraint.between(1,
Cell.MAX_DELETION_TIME));
Review Comment:
Our codebase will now be limited to 2186. So you want to test/use values up
to that rather than only up to `Integer.MAX_VALUE` as `nowInSec` is now a
`long` instead of an `int`. Am I answering your question?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]