[
https://issues.apache.org/jira/browse/BEAM-10471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17168576#comment-17168576
]
Etienne Chauchot edited comment on BEAM-10471 at 7/31/20, 9:40 AM:
-------------------------------------------------------------------
just submitted this PR: [https://github.com/apache/beam/pull/12432] that
updates the internal cassandra size estimates after insertion. If it does not
give consistent sizes over time, I'll change the acceptance condition is the
test to size > 0
was (Author: echauchot):
just submitted this PR: [https://github.com/apache/beam/pull/12432] that
updates the internal cassandra size estimates after insertion. If it does not
give consistent results over time, I'll change the acceptance condition is the
test to size > 0
> Failure / flake in CassandraIOTest > testEstimatedSizeBytes
> -----------------------------------------------------------
>
> Key: BEAM-10471
> URL: https://issues.apache.org/jira/browse/BEAM-10471
> Project: Beam
> Issue Type: Bug
> Components: io-java-cassandra
> Reporter: Kenneth Knowles
> Priority: P1
> Labels: flake
> Time Spent: 50m
> Remaining Estimate: 0h
>
> https://ci-beam.apache.org/job/beam_PreCommit_Java_Commit/12328/testReport/junit/org.apache.beam.sdk.io.cassandra/CassandraIOTest/testEstimatedSizeBytes/
> {{AssertionError}} with no error message. Please give a meaningful error
> message. Preferably do not use {{assertTrue}} and other less meaningful
> asserters.
> Digging into the code, it is a bounds check that the estimated bytes are +/-
> 10% of expected, since the result is nondeterministic. It fell outside of the
> range but since the assertion is written as {{assertTrue}} we do not see the
> actual value.
> https://github.com/apache/beam/blob/66bcc9a967746cad12dfdeed473fb60c77033514/sdks/java/io/cassandra/src/test/java/org/apache/beam/sdk/io/cassandra/CassandraIOTest.java#L291
--
This message was sent by Atlassian Jira
(v8.3.4#803005)