Tamas Barnabas Egyed created KAFKA-14836:
--------------------------------------------
Summary: UtilsTest testToLogDateTimeFormat unit test failing in
some cases
Key: KAFKA-14836
URL: https://issues.apache.org/jira/browse/KAFKA-14836
Project: Kafka
Issue Type: Bug
Reporter: Tamas Barnabas Egyed
Assignee: Tamas Barnabas Egyed
{code:java}
org.apache.kafka.common.utils.UtilsTest.testToLogDateTimeFormat {code}
test is failing in some cases. It uses hard coded datetime ({*}2020-11-09
12:34:05{*}), while the assertation expected part contains the offset of the
current time ({*}Instant.now(){*}). This can lead to problems if there is a
summer and winter time for the specific location. We should use the same
datetime in the offset query instead of the current time.
{noformat}
org.opentest4j.AssertionFailedError: expected: <2020-11-09 12:34:05,123 -07:00>
but was: <2020-11-09 12:34:05,123 -08:00>{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)