[jira] [Created] (FLINK-16312) Stateful Function's HttpFunction falls into endless loop resending 0-sized batch requests

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-16312) Stateful Function's HttpFunction falls into endless loop resending 0-sized batch requests

Shang Yuanchun (Jira)
Tzu-Li (Gordon) Tai created FLINK-16312:
-------------------------------------------

             Summary: Stateful Function's HttpFunction falls into endless loop resending 0-sized batch requests
                 Key: FLINK-16312
                 URL: https://issues.apache.org/jira/browse/FLINK-16312
             Project: Flink
          Issue Type: Bug
          Components: Stateful Functions
    Affects Versions: statefun-1.1
            Reporter: Tzu-Li (Gordon) Tai
            Assignee: Tzu-Li (Gordon) Tai


This is caused by FLINK-16311, because the {{HttpFunction}} was relying on contracts of {{PersistedAppendingBuffer}} that were not correct.

Specifically, the culprit is here:
https://github.com/apache/flink-statefun/blob/master/statefun-flink/statefun-flink-core/src/main/java/org/apache/flink/statefun/flink/core/httpfn/HttpFunction.java#L152

This branch checks if the obtained view is {{null}}, if not, resends a batch request.
However, that would never be {{null}} due to FLINK-16311.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)