[
https://issues.apache.org/jira/browse/CASSANDRA-15555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Capwell updated CASSANDRA-15555:
--------------------------------------
Description:
When the test finds a issue and attempts to shrink, a ton of garbage is
generated which cause the test to then fail with GC issues. Since the test is
a quick theories test, we can rewrite the generates to reuse memory rather than
creating new objects for each iteration. This will also let us move away from
String which requires multiple copies in the test and gets rid of the
getBytes() call which is dependent on the system its called on.
|[Circle CI|https://circleci.com/gh/dcapwell/cassandra/tree/quickTheoryMemory]|
was:When the test finds a issue and attempts to shrink, a ton of garbage is
generated which cause the test to then fail with GC issues. Since the test is
a quick theories test, we can rewrite the generates to reuse memory rather than
creating new objects for each iteration. This will also let us move away from
String which requires multiple copies in the test and gets rid of the
getBytes() call which is dependent on the system its called on.
> Lower the amount of garbage ChecksummingTransformerTest generates by reusing
> memory
> -----------------------------------------------------------------------------------
>
> Key: CASSANDRA-15555
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15555
> Project: Cassandra
> Issue Type: Sub-task
> Components: Test/unit
> Reporter: David Capwell
> Assignee: David Capwell
> Priority: Normal
> Labels: pull-request-available
> Fix For: 4.0-alpha
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When the test finds a issue and attempts to shrink, a ton of garbage is
> generated which cause the test to then fail with GC issues. Since the test
> is a quick theories test, we can rewrite the generates to reuse memory rather
> than creating new objects for each iteration. This will also let us move
> away from String which requires multiple copies in the test and gets rid of
> the getBytes() call which is dependent on the system its called on.
> |[Circle
> CI|https://circleci.com/gh/dcapwell/cassandra/tree/quickTheoryMemory]|
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]