[
https://issues.apache.org/jira/browse/AVRO-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16661817#comment-16661817
]
Raymie Stata edited comment on AVRO-2244 at 10/24/18 6:51 AM:
--------------------------------------------------------------
{{If there's any doubt about this issue being resolved, I just got the
following error:}}
{{
testAbilityToReadJsr310RecordWrittenAsJodaRecord(org.apache.avro.specific.TestSpecificLogicalTypes)
Time elapsed: 0.085 sec <<< FAILURE!}}
{{ java.lang.AssertionError:}}{{Expected: is "23:43:30.800"}}
{{ but: was "23:43:30.8"}}
{{ at
org.apache.avro.specific.TestSpecificLogicalTypes.testAbilityToReadJsr310RecordWrittenAsJodaRecord(TestSpecificLogicalTypes.java:150)}}
{{ Personally, I would revert AVRO-2241 and figure out how to get
`TestSpecificLogicalTypes.testAbilityToReadJsr310RecordWrittenAsJodaRecord` to
output zero-padded, three-digit time stamps for the Jsr310 case.}}
was (Author: raymie):
If there's any doubt about this issue being resolved, I just got the following
error:
```
testAbilityToReadJsr310RecordWrittenAsJodaRecord(org.apache.avro.specific.TestSpecificLogicalTypes)
Time elapsed: 0.085 sec <<< FAILURE!
java.lang.AssertionError:
Expected: is "23:43:30.800"
but: was "23:43:30.8"
at
org.apache.avro.specific.TestSpecificLogicalTypes.testAbilityToReadJsr310RecordWrittenAsJodaRecord(TestSpecificLogicalTypes.java:150)
```
Personally, I would revert AVRO-2241 and figure out how to get
`TestSpecificLogicalTypes.testAbilityToReadJsr310RecordWrittenAsJodaRecord` to
output zero-padded, three-digit time stamps for the Jsr310 case.
> Problems with
> TestSpecificLogicalTypes.testAbilityToReadJsr310RecordWrittenAsJodaRecord:148
> -------------------------------------------------------------------------------------------
>
> Key: AVRO-2244
> URL: https://issues.apache.org/jira/browse/AVRO-2244
> Project: Avro
> Issue Type: Bug
> Components: logical types
> Reporter: Raymie Stata
> Priority: Major
>
> I've seen an intermittent test failure that looks like this:
> {{Failed tests:}}
> {{
> TestSpecificLogicalTypes.testAbilityToReadJsr310RecordWrittenAsJodaRecord:148}}
> {{Expected: is "20:35:18.720"}}
> {{ but: was "20:35:18.72"}}
> When I see this failure, it's always the case that the trailing digit is
> zero. I suspect that it's a bug where the trailing zero is not printed.
> Since the test cases use the current time, then most of the time the trailing
> digit isn't zero and the bug isn't tickled. But once-in-a-while the current
> time has a trailing zero, which tickles the bug.
> If this diagnosis is correct, then in addition to fixing the bug, it might be
> a good idea to add tests with hard-wired, static times that cover corner
> cases like this one.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)