Skip to content

Ensure connections always reconnect deterministically after a server disconnect (or crash).#7

Merged
dataflake merged 1 commit intodataflake:masterfrom
flyingcircusio:ensure-clean-reconnect
Oct 7, 2025
Merged

Ensure connections always reconnect deterministically after a server disconnect (or crash).#7
dataflake merged 1 commit intodataflake:masterfrom
flyingcircusio:ensure-clean-reconnect

Conversation

@ctheune
Copy link
Copy Markdown
Collaborator

@ctheune ctheune commented Aug 6, 2025

Replaces #6 with further fixes to the tests.

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 6, 2025

Pull Request Test Coverage Report for Build 16775300324

Details

  • 18 of 21 (85.71%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.3%) to 90.583%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Products/ZPsycopgDA/db.py 18 21 85.71%
Files with Coverage Reduction New Missed Lines %
src/Products/ZPsycopgDA/pool.py 1 75.84%
Totals Coverage Status
Change from base Build 16705090510: 0.3%
Covered Lines: 737
Relevant Lines: 800

💛 - Coveralls

@ctheune ctheune force-pushed the ensure-clean-reconnect branch from cafcfb6 to 2fb2183 Compare August 6, 2025 11:12
@sweh
Copy link
Copy Markdown

sweh commented Aug 15, 2025

@ctheune Das läuft hier bisher sehr stabil. Kannst den PR gern zum Merge und Release freigeben. 👍🏻

@dataflake dataflake marked this pull request as ready for review October 7, 2025 10:45
@dataflake dataflake self-requested a review October 7, 2025 10:45
Copy link
Copy Markdown
Owner

@dataflake dataflake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no point in holding this forever. We will just have to see if this works for everyone.

@dataflake dataflake merged commit 951121b into dataflake:master Oct 7, 2025
9 checks passed
@sweh
Copy link
Copy Markdown

sweh commented Oct 10, 2025

Hi there,

we had to roll back to 4.2 as we had problems with 4.3 in production.

The error in the log is unfortunately not very informative: InterfaceError: connection already closed. The error only occurs sporadically.

I remember @ctheune saying to me in person that he wanted to write more tests because he had discovered another bug. Was it fixed before the release?

Best regards,
Sebastian

@dataflake
Copy link
Copy Markdown
Owner

No it wasn't fixed. There was no reaction from @ctheune in 2 months and I wanted to get this stuff off my desk.

@sweh
Copy link
Copy Markdown

sweh commented Oct 10, 2025

No it wasn't fixed. There was no reaction from @ctheune in 2 months and I wanted to get this stuff off my desk.

That's okay, @ctheune is very busy afaik. Perhaps he could write briefly and say whether he sees any open problems.

@dataflake
Copy link
Copy Markdown
Owner

Let me know if you think this error is so common that everyone would see it, if needed I will yank the release from PyPI.

@dataflake
Copy link
Copy Markdown
Owner

Knowing that the patch did not work as expected and not getting any feedback I decided the situation where I have a release out with code that does not work in some situations is not acceptable. I have reverted the connection code changes so it's back to where it was in release 4.2 and released version 4.4. If you come up with a tested solution that you know will work I'll help you get it released.

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

Successfully merging this pull request may close these issues.

4 participants