Re: Pulsar connector resets existing subscription

2024-06-03 Thread Yufan Sheng
Yes, I think you're right. This bug appeared after we switched from the Pulsar Admin API to the Pulsar Client API. Currently, the connector doesn't check the existing subscription position. I apologize for this regression. We need to add tests and implement a fix. Since this is relatively easy to a

Re: TTL issue with large RocksDB keyed state

2024-06-03 Thread Yanfei Lei
Hi, > 1. After multiple full checkpoints and a NATIVE savepoint the size was > unchanged. I'm wondering if RocksDb compaction is because we never update > key values? The state is nearly fully composed of keys' space. Do keys not > get freed using RocksDb compaction filter for TTL? Regarding

RE: Implementing Multiple sink

2024-06-03 Thread Colletta, Edward via user
Yes. But the filter us usually a very light weight operation. From: Mingliang Liu Sent: Monday, June 3, 2024 7:16 PM To: Colletta, Edward Cc: mejri houssem ; user@flink.apache.org Subject: Re: Implementing Multiple sink NOTICE: This email is from an external sender - do not click on links or

Re: Implementing Multiple sink

2024-06-03 Thread Mingliang Liu
Colletta, I think that way, the upstream stream `streamWithMultipleConditions` will get processed twice, instead of once? Thanks, On Mon, Jun 3, 2024 at 10:28 AM Colletta, Edward wrote: > I usually just reuse the stream, sending it to through different filters > and adding different sinks to t

Re: Implementing Multiple sink

2024-06-03 Thread mejri houssem
Thank you very much Mingliang and Colletta for the suggestions. I will try them out. To the others , I am still open to additional suggestions as well. Le lun. 3 juin 2024 à 18:28, Colletta, Edward a écrit : > I usually just reuse the stream, sending it to through different filters > and adding

RE: Implementing Multiple sink

2024-06-03 Thread Colletta, Edward via user
I usually just reuse the stream, sending it to through different filters and adding different sinks to the filtered streams. Something like streamWithMultipleConditions.filter(FilterForCondition1) .addSink(SinkforCondtiton1); streamWithMu

Re: Implementing Multiple sink

2024-06-03 Thread Mingliang Liu
Hi Mejri, Have you checked side outputs? https://nightlies.apache.org/flink/flink-docs-release-1.19/docs/dev/datastream/side_output/ On Mon, Jun 3, 2024 at 8:28 AM mejri houssem wrote: > Hello community, > > We have a use case in our Flink job that requires the implementation of > multiple sink

Implementing Multiple sink

2024-06-03 Thread mejri houssem
Hello community, We have a use case in our Flink job that requires the implementation of multiple sinks. I need to filter messages based on certain conditions (information in the message) to determine which sink to dispatch them to. To clarify, I would like to implement logic in the operator tha

State leak in tumbling windows

2024-06-03 Thread Adam Domanski
Dear Flink users, I spotted the ever growing checkpoint size in my Flink application which uses tumble windows. I found such a ticket: https://issues.apache.org/jira/browse/FLINK-33192, but no comments. Can somebody confirm the issue? BR, Adam.

Re: Flink Kubernetes Operator Pod Disruption Budget

2024-06-03 Thread Gyula Fóra
Hey Jeremy! This sounds like a good / fairly simple extension to add. Since this would result in a larger extension of the current FlinkDeployment CRD, it would be good to cover it in a small FLIP. Cheers, Gyula On Wed, May 22, 2024 at 10:20 PM Jeremy Alvis via user < user@flink.apache.org> wrot