Comments (3)
Stack trace for schema not exactly match. This caused the faust app crash and restart:
Traceback (most recent call last):
File "/home/robinhood/env/lib/python3.6/site-packages/faust/serializers/registry.py", line 128, in loads_value
return typ(**v)
File "/home/robinhood/env/lib/python3.6/site-packages/faust/models/record.py", line 155, in __init__
self._init_fields(args, kwargs, strict=__strict__)
File "/home/robinhood/env/lib/python3.6/site-packages/faust/models/record.py", line 181, in _init_fields
', '.join(sorted(extraneous))))
TypeError: MainStreetOrder got unexpected argument: response_category
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/robinhood/env/lib/python3.6/site-packages/faust/agents/agent.py", line 303, in _execute_task
await coro
File "/home/robinhood/env/lib/python3.6/site-packages/requiem/agents.py", line 22, in filter_order_updates
async for order in orders:
File "/home/robinhood/env/lib/python3.6/site-packages/faust/streams/stream.py", line 632, in __anext__
value = await self._on_message()
File "/home/robinhood/env/lib/python3.6/site-packages/faust/streams/stream.py", line 552, in on_message
value: Any = await get_next_value()
File "/home/robinhood/env/lib/python3.6/site-packages/faust/channels.py", line 394, in __anext__
return await self.queue.get()
File "/home/robinhood/env/lib/python3.6/site-packages/faust/utils/futures.py", line 220, in get
return await super().get()
File "/home/robinhood/python-3.6.3/lib/python3.6/asyncio/queues.py", line 175, in get
return self.get_nowait()
File "/home/robinhood/env/lib/python3.6/site-packages/faust/utils/futures.py", line 231, in get_nowait
raise self._errors.popleft()
File "/home/robinhood/env/lib/python3.6/site-packages/faust/topics.py", line 125, in decode
value_type, message.value, serializer=value_serializer)
File "/home/robinhood/env/lib/python3.6/site-packages/faust/serializers/registry.py", line 134, in loads_value
str(exc)).with_traceback(sys.exc_info()[2]) from exc
File "/home/robinhood/env/lib/python3.6/site-packages/faust/serializers/registry.py", line 128, in loads_value
return typ(**v)
File "/home/robinhood/env/lib/python3.6/site-packages/faust/models/record.py", line 155, in __init__
self._init_fields(args, kwargs, strict=__strict__)
File "/home/robinhood/env/lib/python3.6/site-packages/faust/models/record.py", line 181, in _init_fields
', '.join(sorted(extraneous))))
faust.exceptions.ValueDecodeError: MainStreetOrder got unexpected argument: response_category
[2018-01-23 05:15:37,049: INFO]: [^---Agent*: requiem.a[.]filter_order_updates]: Starting...
[2018-01-23 05:15:42,050: INFO]: [^---OneForOneSupervisor]: Restarting dead <Agent*: requiem.a[.]filter_order_updates>! Last crash reason: ValueDecodeError('MainStreetOrder got unexpected argument: response_category',)
[2018-01-23 05:15:42,051: INFO]: [^--Stream: <Topic: mainst_order_updates>]: Starting...```
from faust.
To fix this, I'll have to add the corresponding fields whenever the input Kafka message adds a new field:
from faust.
@ask looks like we should allow when incoming field has extra fields. Our model deserialization should not break on backwards compatible changes.
from faust.
Related Issues (20)
- GlobalTable not working when using multiple instances
- [Question] Get consumer offset/lag of each partition from the producer side
- Missing `f` prefix on f-strings
- Make Faust compatible with Python 3.9+ for production environment (rocksdb: faust-streaming[rocksdb] ) on MacOS Monterey 12.3.1 HOT 1
- Update dependency to `click>= 8.0` HOT 3
- Is Faust died? HOT 7
- Robin
- Support for python3.10 HOT 1
- A Faust Alternative - Fluvii
- Dagger - A Faust Based Workflow Engine
- faust overrides global logging settings -- unable to use structlog HOT 2
- Couldn't set Retry Topic mechanism In Faust Streaming HOT 1
- kafka-ConnectionError in test HOT 1
- Consumer crashes sporadically and stops consuming - Crashed reason=ConsumerStoppedError()
- asyncio.exceptions.CancelledError and consumer stops HOT 1
- How can i join two topics in stream?
- ANN: Please migrate away from pytest-openfiles
- Faust Error: Address In Used
- Does Faust support the "Timestamp Extractor" feature? HOT 1
- What could be causing inconsistent message processing in a Kafka-based system used to synchronize data between MSSQL and MySQL databases, despite successful message delivery to the Kafka topic
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.