Skip to content

Conversation

@findepi
Copy link
Member

@findepi findepi commented Oct 20, 2025

Before the change, DROP CATALOG could fail if the metadata of the
catalog being dropped implements cleanupQuery and the cleanupQuery
checks catalog session properties. This was because inspecting session
properties requires catalog to exist and that could have been pruned
away. This fixes coordinator catalog pruning to retain catalogs used in
active transactions.

Release notes

## Section
* Fix DROP CATALOG spurious failure with Redshift connector

@cla-bot cla-bot bot added the cla-signed label Oct 20, 2025
@sourcery-ai

This comment was marked as spam.

@findepi findepi requested review from hashhar and homar October 20, 2025 20:25
sourcery-ai[bot]

This comment was marked as off-topic.

@findepi findepi force-pushed the findepi/fix-drop-catalog-spurious-failure-if-cleanupquery-implemented-b7775a branch 2 times, most recently from fe5e681 to 39cffa6 Compare October 20, 2025 20:49
Copy link
Member

@homar homar left a comment

Choose a reason for hiding this comment

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

O.o This is good

- consistent field name (plural `sessionProperties`)
- make field order more consistent
Before the change, DROP CATALOG could fail if the metadata of the
catalog being dropped implements `cleanupQuery` and the `cleanupQuery`
checks catalog session properties. This was because inspecting session
properties requires catalog to exist and that could have been pruned
away. This fixes coordinator catalog pruning to retain catalogs used in
active transactions.
@findepi findepi force-pushed the findepi/fix-drop-catalog-spurious-failure-if-cleanupquery-implemented-b7775a branch from 39cffa6 to 3d9a0ab Compare October 21, 2025 09:16
@findepi findepi requested review from dain and losipiuk October 21, 2025 09:18
@findepi findepi merged commit aee92a6 into trinodb:master Oct 21, 2025
98 checks passed
@findepi findepi deleted the findepi/fix-drop-catalog-spurious-failure-if-cleanupquery-implemented-b7775a branch October 21, 2025 13:30
@github-actions github-actions bot added this to the 478 milestone Oct 21, 2025
@hashhar
Copy link
Member

hashhar commented Oct 22, 2025

I'm late to review but thank you for finding and fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants