Comments (2)
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.
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)
- (question): signal, when a topic an agent tries to consume from is not present in the kafka cluster HOT 6
- Fatal error on startup with documentation examples HOT 3
- (docs) Autodetect for schemas HOT 4
- Conflicting Positional Arguments Using @app.page() Functionality HOT 1
- Make compatible with new aiokafka HOT 1
- Unable to install using Docker on Mac. HOT 5
- Possible issue with open method when using rocksdict HOT 12
- Source Distribution tar missing for 0.10.18 on pypi. HOT 5
- v0.10.19 -- faust cli is not found in PATH after install HOT 1
- 3.12 test compatibility
- Using debugging mode inside a container is impossible because the console host is not parametrized
- Rebalancing problem with Faust Streaming consumer
- A race condition in recovery causes unrecoverable gaps in acked offsets and consequently blocks committing
- Cannot recover when any changelog topic partition becomes empty (as a result of some retention policy)
- `SetTable`s are missing `on_clear` HOT 1
- Rebalancing problem with Faust Streaming
- Closing connection
- Events getting skipped HOT 1
- Wrong offset commit in case of gaps
- Logic around sensor _on_stream_event_in differs between cython and python implementations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faust.