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

SonicV2Connector.connect method keeps on connecting infinitely even with wrong password. #127

Open
kamalkrbh opened this issue Sep 14, 2022 · 0 comments

Comments

@kamalkrbh
Copy link

If created SonicV2Connector object with wrong password and try connecting to a database like following:
sonic_db=swsssdk.SonicV2Connector(password="wrong_password")
sonic_db.connect("COUNTERS_DB")

swsssdk infinitely logging following warning messages and application is blocked forever, In case of wrong password a specific exception should be raised and function interface.py->_persistent_connect() should return immediately rather than retrying infinitely.

[2022-09-13 16:37:21,960][WARNING][swsssdk] Connecting to DB '2 COUNTERS_DB' failed, will retry in 10s

related issue - https://github.com/STORDIS/monsoon/issues/7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant