You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feature_server.py crashes with TypeError: MessageToDict() got an unexpected keyword argument 'float_precision' on protobuf >= 7.34.0 #6435
The feature server crashes on every /get-online-features and /retrieve-online-documents request
when running with protobuf >= 7.34.0. The float_precision parameter was deprecated in protobuf
6.32.x and removed in 7.34.0. Since Feast's pyproject.toml allows protobuf >= 4.24.0,
fresh installs (including the official quay.io/feastdev/feature-server:latest image) pull
protobuf 7.34.1, which does not accept this argument.
Error
TypeError: MessageToDict() got an unexpected keyword argument 'float_precision'
Full traceback from Gunicorn worker:
File "/opt/app-root/lib64/python3.12/site-packages/feast/feature_server.py", line 397 response_dict = await run_in_threadpool( MessageToDict, response.proto, preserving_proto_field_name=True, float_precision=18, # <-- removed in protobuf 7.34.0 )
The worker process crashes, Gunicorn master respawns it, and the next request crashes again —
making the online feature server completely non-functional.
Affected Code
sdk/python/feast/feature_server.py — two call sites:
Activity
test: add regression tests for protobuf >= 7.34.0 compatibility (feas…
test: add regression tests for protobuf >= 7.34.0 compatibility (#6435)
fix: restore accidentally deleted TestProtobufCompatibility tests