Skip to content

Conversation

@maple525866
Copy link
Contributor

@maple525866 maple525866 commented Oct 29, 2025

Ⅰ. Describe what this PR did

PostgreSQL's rollback log table names are hardcoded, which is inconvenient for users to configure via configuration files. Configuring them can lead to failed insert operations or abnormal behavior.

This pull request retrieves the corresponding rollback log table name from the user's configuration file and updates the insert SQL statements in PostgresqlUndoLogManager. If the user hasn't configured it, the default name version is rolled back.

This issue isn't limited to PostgreSQL; it also occurs in Oracle, Oscar, and Kingbase. I've addressed this issue and added unit tests to verify its correctness.

Ⅱ. Does this pull request fix one issue?

fixes #7581

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

mvn clean test

Ⅴ. Special notes for reviews

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.17%. Comparing base (5a80340) to head (aecc684).

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #7747      +/-   ##
============================================
+ Coverage     66.01%   66.17%   +0.16%     
  Complexity      992      992              
============================================
  Files          1323     1323              
  Lines         50137    50140       +3     
  Branches       5922     5922              
============================================
+ Hits          33096    33180      +84     
+ Misses        14141    14048      -93     
- Partials       2900     2912      +12     
Files with missing lines Coverage Δ
...tasource/undo/kingbase/KingbaseUndoLogManager.java 71.05% <100.00%> (+60.24%) ⬆️
...m/datasource/undo/oracle/OracleUndoLogManager.java 71.05% <100.00%> (+60.24%) ⬆️
.../rm/datasource/undo/oscar/OscarUndoLogManager.java 71.05% <100.00%> (+60.24%) ⬆️
...urce/undo/postgresql/PostgresqlUndoLogManager.java 69.23% <ø> (+61.53%) ⬆️

... and 9 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@YvCeung YvCeung added the module/rm-datasource rm-datasource module label Oct 30, 2025
@YvCeung
Copy link
Contributor

YvCeung commented Oct 30, 2025

LGTM

@YvCeung YvCeung added type: bug Category issues or prs related to bug. mode: AT AT transaction mode labels Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mode: AT AT transaction mode module/rm-datasource rm-datasource module type: bug Category issues or prs related to bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sequence name undo_log_id_seq in PostgresqlUndoLogManager breaks custom undo_log table configuration

2 participants