Skip to content

Fix pg db cancel missing#152

Merged
turnstep merged 3 commits intobucardo:masterfrom
rweikusat:fix-pg_db_cancel-missing
Dec 12, 2025
Merged

Fix pg db cancel missing#152
turnstep merged 3 commits intobucardo:masterfrom
rweikusat:fix-pg_db_cancel-missing

Conversation

@rweikusat
Copy link
Contributor

@rweikusat rweikusat commented Dec 11, 2025

This fixes a probably accidental editing error which cause the pg_db_send_cancel and pg_db_cancel to be "garbled together" while losing parts of the code (issue noticed by Ed Sabol).

It also changes the cancel path in handle_old_async to only do a rollback if there's actually a transaction running because I noticed a warning on make test and wanted to investigate that to ensure that it's harmless.

This doesn't address the other issue noted by Ed Sabol ("failed to create dbh ...") yet.

@rweikusat rweikusat mentioned this pull request Dec 11, 2025
@turnstep
Copy link
Contributor

Thanks. I confess I haven't had time to really sit down and sort all this out - and the garbled code was my fault I'm sure - so thanks for all your efforts here!

@turnstep turnstep merged commit a425130 into bucardo:master Dec 12, 2025
0 of 9 checks passed
@rweikusat
Copy link
Contributor Author

Well, I have the time as I'm unemployed since my employer collapsed in January. And I actually enjoy working with code. That's at least hopefully more useful than doing job applications which - at best - get boilerplate "HR deleted this from the system" rejections.

:-)

@rweikusat rweikusat deleted the fix-pg_db_cancel-missing branch December 12, 2025 19:42
@turnstep
Copy link
Contributor

Could you update the Changes file with all the new async stuff?

@rweikusat
Copy link
Contributor Author

No problem.

But there's still the other error Ed Sabol uncovered (the "could not create dbh") and I'd like to get that resolved first. I expect that this will take a few days (starting Sunday or Monday) because ATM, I first need to find a way how I can reproduce that in an environment I can make changes to other than by creating dummy pull requests for that.

@esabol
Copy link
Collaborator

esabol commented Dec 13, 2025

But there's still the other error Ed Sabol uncovered (the "could not create dbh") and I'd like to get that resolved first. I expect that this will take a few days (starting Sunday or Monday) because ATM, I first need to find a way how I can reproduce that in an environment I can make changes to other than by creating dummy pull requests for that.

Speaking from experience, GitHub workflows can be a painful to debug. Check out https://nektosact.com/ and https://github.com/nektos/act for one way to make it easier, I hope.

@rweikusat
Copy link
Contributor Author

Thanks. I'll have a look at that.

@esabol
Copy link
Collaborator

esabol commented Dec 15, 2025

@rweikusat : Looks like @oetiker fixed that failing test in 708542e in PR #150 ?

@rweikusat
Copy link
Contributor Author

rweikusat commented Dec 15, 2025

Sort-of. That's probably the reason for the failed test but it should just use $ENV{DBI_PASS} without the intermediate variables and useless '' assignment, as done in t/dbd_test_setup.pl (and everywhere else). Or rather, I should have written it this way from the start ... :-(

I'll create a pull request with that.

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.

3 participants