[
https://issues.apache.org/jira/browse/NIFI-8023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17235725#comment-17235725
]
David Handermann commented on NIFI-8023:
----------------------------------------
The TestJdbcCommon class has two references to ZoneId.systemDefault() which are
probably contributing to this problem:
[https://github.com/apache/nifi/blob/c396927299586b896df4ebc745793b4c451f3898/nifi-nar-bundles/nifi-extension-utils/nifi-database-utils/src/test/java/org/apache/nifi/util/db/TestJdbcCommon.java#L690]
[https://github.com/apache/nifi/blob/c396927299586b896df4ebc745793b4c451f3898/nifi-nar-bundles/nifi-extension-utils/nifi-database-utils/src/test/java/org/apache/nifi/util/db/TestJdbcCommon.java#L718]
Taking the opportunity to remove these runtime dependent variables and
replacing all timezone references with a static UTC timezone setting would help
avoid these issues.
> Test failure after NIFI-7996 commit if system default TZ is CET
> ---------------------------------------------------------------
>
> Key: NIFI-8023
> URL: https://issues.apache.org/jira/browse/NIFI-8023
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Denes Arvay
> Assignee: Denes Arvay
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> After the commit [1] for NIFI-7996 the following two tests fail if the system
> default timezone is CET (maybe anything UTC+, not verified yet)
> - {{TestJdbcCommon.testConvertToAvroStreamForDateTimeAsLogicalType}}
> - {{TestAvroTypeUtil.testDateConversion}}
> Need to investigate if the tests are wrong or the commit introduced
> regression.
> [1]
> https://github.com/apache/nifi/commit/83948db989bf2f682dfa18c56293ec431f546e1c
--
This message was sent by Atlassian Jira
(v8.3.4#803005)