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

Fix Isolation Test Failure in isolation_multiuser_locking in PG17 #7714

Open
wants to merge 1 commit into
base: naisila/pg17_support
Choose a base branch
from

Conversation

m3hm3t
Copy link
Contributor

@m3hm3t m3hm3t commented Oct 22, 2024

This PR enhances isolation_multiuser_locking.spec test compatibility across multiple PostgreSQL versions by handling differences in error messages and behavior. Key updates include:

  • Error Message Handling: Adjustments to manage version-specific error messages, ensuring consistent test results.

  • Modified to address variations in locking behavior across PostgreSQL versions, ensuring test stability in multiuser scenarios.

  • REINDEX Behavior Adjustment: This PR accounts for a behavioral change introduced in PostgreSQL by commit ecb0fd337, which alters how REINDEX interacts with system catalogs.

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=ecb0fd337

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.61%. Comparing base (b29c332) to head (94bbb2e).

Additional details and impacted files
@@                  Coverage Diff                  @@
##           naisila/pg17_support    #7714   +/-   ##
=====================================================
  Coverage                 89.61%   89.61%           
=====================================================
  Files                       274      274           
  Lines                     59689    59689           
  Branches                   7446     7446           
=====================================================
+ Hits                      53490    53493    +3     
+ Misses                     4069     4066    -3     
  Partials                   2130     2130           

@m3hm3t m3hm3t marked this pull request as ready for review October 22, 2024 10:42
@m3hm3t m3hm3t self-assigned this Oct 22, 2024

step s1-insert:
UPDATE test_table SET column2 = 1;
<waiting ...>
Copy link
Member

Choose a reason for hiding this comment

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

this seems a bit suspicious as we were throwing a permission-check error in the older test output

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose that because of this commit:

git.postgresql.org Git - postgresql.git/commitdiff

If you think that it is unrelated, ı Will looked into that more.

@m3hm3t m3hm3t force-pushed the m3hm3t/pg17_isolation_multiuser_lock branch from 1fbdd9f to 94bbb2e Compare November 11, 2024 10:32
@m3hm3t m3hm3t marked this pull request as draft November 11, 2024 13:13
@m3hm3t m3hm3t marked this pull request as ready for review November 14, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants