Giter Site home page Giter Site logo

Comments (2)

krzysieksulejczak avatar krzysieksulejczak commented on July 23, 2024

Hi,

I work with @remy-sl on the same faust service. Following the problem I have a few more observations.

Events which should be filtered out are sent to repartitioned topic

It looks like stream.filter(...).group_by(...) pipeline attaches group_by processor to original stream and filter to repartitioned stream. Original stream .info() looks like this:
{'app': <App(builds-aggregator1): [URL('...')] running agents(<AgentManager: running >) 0x7f37a7ec9220>, 'channel': <(*)Topic: ...@0x7f37a58953d0>, 'processors': [<function Stream.group_by.<locals>.repartition at 0x7f37a5820550>], 'on_start': None, 'loop': <_UnixSelectorEventLoop running=True closed=False debug=False>, 'combined': [], 'beacon': Node: Worker/App/AgentManager/Agent: .../Stream: Topic: ..., 'concurrency_index': None, 'prev': None, 'active_partitions': None}
Repartitioned stream info() looks like this:
{'app': <App(builds-aggregator1): [URL('...')] running agents(<AgentManager: running >) 0x7f37a7ec9220>, 'channel': <(*)Topic: ...@0x7f37a5828070>, 'processors': [<function Stream.filter.<locals>.on_value at 0x7f37a58200d0>], 'on_start': <bound method Service.maybe_start of <Stream: init <(*)Topic: vd...x7f37a58953d0>>>, 'loop': <_UnixSelectorEventLoop running=True closed=False debug=False>, 'combined': [], 'beacon': Node: Worker/App/AgentManager/Agent: .../Stream: Topic: .../Stream: Topic: ..., 'concurrency_index': None, 'prev': <Stream: init <(*)Topic: vd...x7f37a58953d0>>, 'active_partitions': None}

Commit offset not advancing

It looks like commit offset stops at first occurrence of Skip() exception from filter(). .filter(lambda v: True) works without problems, while .filter(lambda v: False) makes commit offset freeze. After briefly looking at code I think the problem might lay here: https://github.com/faust-streaming/faust/blob/master/faust/streams.py#L909
When skipped_value occurs finally block is not executed in try/finally below, where ack() is executed.

Hope that helps.

from faust.

mdrago98 avatar mdrago98 commented on July 23, 2024

Hi,

We're facing a related problem when using stream.noack() in conjunction with filter function where the offsets aren't committed properly and the filtered out messages would increase the lag on the consumer group.
Was there any progress on this issue?

from faust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.