Skip to content

Conversation

@tzulitai
Copy link
Contributor

The previous contracts for PersistedAppendingBuffer were not possible to be provided, since Flink ListState never returns null when retrieving the list, regardless of if the access was after a clear, or the list was actually just empty.

This PR changes the contract of the view() method to always return non-null, and also disallow appending / update the buffer with null elements or lists.


Following that, since HttpFunction was relying on the previous incorrect contracts, it had a problem of endlessly resend 0-sized batch requests.
This PR fixes that as well by relying on the new contracts.

The previous contracts were not possible to be provided, since Flink
ListState never returns null when retrieving the list, regardless of if
the access was after a clear, or the list was actually just empty.

This commit changes the contract of the view() method to always return
non-null, and also disallow appending / update the buffer with null
elements or lists.
The HttpFunction was relying on incorrect contracts promised by
PersistedAppendingBuffer, causing it to endlessly resend 0-sized batch
requests. This commit fixes that to rely on the revisited contracts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant