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

TBS-2755: Improve ETCD timeout handling #9

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Conversation

ai-swe-agent
Copy link
Contributor

Description

This PR improves how ETCD timeouts are handled in the library. Instead of crashing when an operation times out, it now returns a proper error tuple.

Changes

  • Add graceful timeout handling in Connection module
  • Return {:error, :timeout} instead of crashing
  • Update documentation with timeout behavior
  • Set default timeout to 5 seconds
  • Add error handling sections in docs

Testing

The changes are backward compatible and only affect error handling behavior. No existing functionality is modified.

Related Issues

Closes TBS-2755

- Add graceful timeout handling in Connection module
- Return {:error, :timeout} instead of crashing
- Update documentation with timeout behavior
- Set default timeout to 5 seconds
- Add error handling sections in docs
Copy link

Pull Request Test Coverage Report for Build 696463a1ff0837edd9e1d41597b8a82634cda048-PR-9

Details

  • 8 of 12 (66.67%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.09%) to 67.511%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/etcd_ex/connection.ex 8 12 66.67%
Totals Coverage Status
Change from base Build b842d383bd1f96c25789fde81a4ac7df51326d58: -0.09%
Covered Lines: 320
Relevant Lines: 474

💛 - Coveralls

@Zaherhs Zaherhs merged commit b9a65fb into main Jan 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants