[
https://issues.apache.org/jira/browse/NIFI-15327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044402#comment-18044402
]
ASF subversion and git services commented on NIFI-15327:
--------------------------------------------------------
Commit 2e09ce8a30c7622aaf50053bbd27be7f4b975f5b in nifi's branch
refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2e09ce8a30c ]
NIFI-15327 Enabled TestSiteToSiteMetricsReportingTask on Windows.
Signed-off-by: Pierre Villard <[email protected]>
This closes #10627.
> Re-enable TestSiteToSiteMetricsReportingTask to run on Windows
> --------------------------------------------------------------
>
> Key: NIFI-15327
> URL: https://issues.apache.org/jira/browse/NIFI-15327
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently TestSiteToSiteMetricsReportingTask is disabled when running on
> Windows.
> When removing the annotation
> {code:java}
> @DisabledOnOs(OS.WINDOWS){code}
> the following stack trace results on the Windows build:
>
> {code:java}
> Error:
> org.apache.nifi.reporting.TestSiteToSiteMetricsReportingTask.testRecordFormat
> -- Time elapsed: 0.518 s <<< ERROR! java.lang.NumberFormatException:
> Character N is neither a decimal digit number, decimal point, nor "e"
> notation exponential mark. at
> java.base/java.math.BigDecimal.<init>(BigDecimal.java:608) at
> java.base/java.math.BigDecimal.<init>(BigDecimal.java:497) at
> java.base/java.math.BigDecimal.<init>(BigDecimal.java:903) at
> java.base/java.math.BigDecimal.valueOf(BigDecimal.java:1371) at
> org.eclipse.parsson.JsonNumberImpl.getJsonNumber(JsonNumberImpl.java:56) at
> org.eclipse.parsson.JsonObjectBuilderImpl.add(JsonObjectBuilderImpl.java:118)
> at
> org.apache.nifi.reporting.util.metrics.MetricsService.getMetrics(MetricsService.java:231)
> at
> org.apache.nifi.reporting.SiteToSiteMetricsReportingTask.onTrigger(SiteToSiteMetricsReportingTask.java:187)
> at
> org.apache.nifi.reporting.TestSiteToSiteMetricsReportingTask.testRecordFormat(TestSiteToSiteMetricsReportingTask.java:271){code}
>
> The aim of this ticket is to fix the underlying issue so the test can be
> re-enabled on Windows.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)