Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres engine default keepalives_idle value causes setsockopt(TCP_KEEPIDLE) invalid value #3750

Closed
ndemashov opened this issue Aug 29, 2023 · 0 comments · Fixed by #3756
Closed

Comments

@ndemashov
Copy link
Contributor

ndemashov commented Aug 29, 2023

Get OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: setsockopt(TCP_KEEPIDLE) failed: Invalid argument when run feast apply.
Because of keepalives_idle=config.keepalives_idle field in function '_get_conn' in infra/utils/postgres/connection_utils.py file. For example, to avoid this error I need to pass 'keepalives_idle=1', but that argument isn't parsed for the registry in feature_store.yaml and pass 'keepalives_idle=0' by default setting in infra/utils/postgres/postgres_config.py.

  • Version: 0.33.1
  • Platform: linux ubuntu 20.04
  • Subsystem:

Possible Solution

Check this issue with the same problem TobikoData/sqlmesh#750. I think you shouldn't pass 'keepalives_idle=0' by default.

@ndemashov ndemashov changed the title 'postgres' engine default keepalives_idle value causes setsockopt(TCP_KEEPIDLE) invalid value Postgres engine default keepalives_idle value causes setsockopt(TCP_KEEPIDLE) invalid value Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant