[
https://issues.apache.org/jira/browse/NIFI-14006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17898058#comment-17898058
]
ASF subversion and git services commented on NIFI-14006:
--------------------------------------------------------
Commit 6b2dd3209fc72b2b5075f146e043949cc39b90d0 in nifi's branch
refs/heads/main from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=6b2dd3209f ]
NIFI-14006 Fixed Manifest Merger to avoid multiple reads for HTTP Responses
(#9518)
- Corrects behavior when running in a cluster required after changes to read
from response streams instead of buffering the entire response body in memory
Signed-off-by: David Handermann <[email protected]>
> Retrieving runtime manifest from REST API produces unexpected error when
> clustered
> ----------------------------------------------------------------------------------
>
> Key: NIFI-14006
> URL: https://issues.apache.org/jira/browse/NIFI-14006
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When calling /nifi-api/flow/runtime-manifest in a cluster, it produces a
> response with an unexpected error. The logs show an issue with trying to
> unmarshall a replicated response and expecting it to be JSON, but it is empty
> string.
> {code:java}
> 2024-11-13 13:15:32,041 ERROR [NiFi Web Server-65]
> o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred:
> java.lang.RuntimeException: Failed to parse response as entity of type class
> org.apache.nifi.web.api.entity.RuntimeManifestEntity. Returning Internal
> Server Error response.
> java.lang.RuntimeException: Failed to parse response as entity of type class
> org.apache.nifi.web.api.entity.RuntimeManifestEntity
> at
> org.apache.nifi.cluster.coordination.http.replication.io.ReplicatedResponse.readEntity(ReplicatedResponse.java:139)
> at
> org.apache.nifi.cluster.coordination.http.endpoints.RuntimeManifestEndpointMerger.merge(RuntimeManifestEndpointMerger.java:54)
> at
> org.apache.nifi.cluster.coordination.http.StandardHttpResponseMapper.mapResponses(StandardHttpResponseMapper.java:250)
> at
> org.apache.nifi.cluster.coordination.http.replication.StandardAsyncClusterResponse.getMergedResponse(StandardAsyncClusterResponse.java:219)
> at
> org.apache.nifi.cluster.coordination.http.replication.StandardAsyncClusterResponse.awaitMergedResponse(StandardAsyncClusterResponse.java:236)
> at
> org.apache.nifi.web.api.ApplicationResource.replicateNodeResponse(ApplicationResource.java:1012)
> at
> org.apache.nifi.web.api.ApplicationResource.replicateNodeResponse(ApplicationResource.java:984)
> at
> org.apache.nifi.web.api.ApplicationResource.replicate(ApplicationResource.java:975)
> at
> org.apache.nifi.web.api.ApplicationResource.replicate(ApplicationResource.java:959)
> at
> org.apache.nifi.web.api.ApplicationResource.replicate(ApplicationResource.java:934)
> at
> org.apache.nifi.web.api.FlowResource.getRuntimeManifest(FlowResource.java:1702)
> ...
> Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: No
> content to map due to end-of-input
> at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION`
> disabled); line: 1]
> at
> com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
> at
> com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:5008)
> at
> com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4885)
> at
> com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3036)
> at
> com.fasterxml.jackson.core.JsonParser.readValueAs(JsonParser.java:2470)
> at
> org.apache.nifi.cluster.coordination.http.replication.io.ReplicatedResponse.readEntity(ReplicatedResponse.java:137)
> ... 108 common frames omitted {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)