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

feature: support openGuass and GuassDB in AT mode #6020

Open
wants to merge 17 commits into
base: 2.x
Choose a base branch
from

Conversation

liuqiufeng
Copy link
Contributor

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

support openGuass and GuassDB
支持openGuass 和 GuassDB

Ⅱ. Does this pull request fix one issue?

fixes #5740

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@liuqiufeng liuqiufeng changed the title support openGuass and GuassDB feature: support openGuass and GuassDB Nov 11, 2023
@funky-eyes funky-eyes added type: feature Category issues or prs related to feature request. mode: AT AT transaction mode module/rm-datasource rm-datasource module module/sqlparser sql-parser module labels Nov 11, 2023
@funky-eyes funky-eyes added this to the 2.x Backlog milestone Nov 11, 2023
@liuqiufeng liuqiufeng changed the title feature: support openGuass and GuassDB feature: support openGuass and GuassDB in AT mode Nov 27, 2023
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Merging #6020 (6ba3ac5) into 2.x (9e5abc2) will decrease coverage by 0.15%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #6020      +/-   ##
============================================
- Coverage     49.45%   49.30%   -0.15%     
+ Complexity     4811     4795      -16     
============================================
  Files           913      928      +15     
  Lines         31678    31735      +57     
  Branches       3826     3838      +12     
============================================
- Hits          15665    15648      -17     
- Misses        14474    14546      +72     
- Partials       1539     1541       +2     
Files Coverage Δ
...n/src/main/java/io/seata/common/util/PageUtil.java 55.17% <ø> (ø)
...ta/core/store/db/sql/lock/GaussDBLockStoreSql.java 0.00% <0.00%> (ø)
...ata/core/store/db/sql/log/GaussDBLogStoreSqls.java 0.00% <0.00%> (ø)
...urce/sql/handler/gaussdb/GaussDBEscapeHandler.java 0.00% <0.00%> (ø)
...source/sql/struct/cache/GaussDBTableMetaCache.java 0.00% <0.00%> (ø)
...datasource/undo/gaussdb/GaussDBUndoLogManager.java 0.00% <0.00%> (ø)
...in/java/io/seata/sqlparser/util/JdbcConstants.java 0.00% <0.00%> (ø)
.../src/main/java/io/seata/core/constants/DBType.java 0.00% <0.00%> (ø)
...datasource/exec/gaussdb/GaussDBInsertExecutor.java 0.00% <0.00%> (ø)
...source/undo/gaussdb/GaussDBUndoDeleteExecutor.java 0.00% <0.00%> (ø)
... and 8 more

... and 8 files with indirect coverage changes

@funky-eyes funky-eyes modified the milestones: 2.x Backlog, 2.1.0 Dec 1, 2023
funky-eyes
funky-eyes previously approved these changes Dec 4, 2023
Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -221,6 +222,11 @@
<artifactId>DmJdbcDriver18</artifactId>
<version>${dm.version}</version>
</dependency>
<dependency>
<groupId>org.opengauss</groupId>
<artifactId>opengauss-jdbc</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

check license as `BSD 2-clause’

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

checked

<!-- db connection pool -->
<druid.version>1.2.7</druid.version>
<druid.version>1.2.12</druid.version>
Copy link
Member

Choose a reason for hiding this comment

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

why upgrade the druid version, Is there any compatibility issue between this database and Druid?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Druid 1.2.12 is the lowest supported version of openGauss

<!-- db connection pool -->
<druid.version>1.2.7</druid.version>
<druid.version>1.2.12</druid.version>
Copy link
Member

Choose a reason for hiding this comment

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

why upgrade the druid version, Is there any compatibility issue between this database and Druid?

# Conflicts:
#	changes/en-us/2.x.md
#	changes/zh-cn/2.x.md
@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2024

Codecov Report

Attention: 56 lines in your changes are missing coverage. Please review.

Comparison is base (d2dbbff) 48.98% compared to head (386df09) 49.64%.
Report is 2 commits behind head on 2.x.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #6020      +/-   ##
============================================
+ Coverage     48.98%   49.64%   +0.66%     
- Complexity     4779     4895     +116     
============================================
  Files           915      930      +15     
  Lines         31896    31946      +50     
  Branches       3855     3856       +1     
============================================
+ Hits          15624    15860     +236     
+ Misses        14710    14526     -184     
+ Partials       1562     1560       -2     
Files Coverage Δ
...n/src/main/java/io/seata/common/util/PageUtil.java 55.17% <ø> (ø)
...ta/core/store/db/sql/lock/GaussDBLockStoreSql.java 0.00% <0.00%> (ø)
...ata/core/store/db/sql/log/GaussDBLogStoreSqls.java 0.00% <0.00%> (ø)
...n/java/io/seata/rm/datasource/DataSourceProxy.java 60.00% <0.00%> (-0.58%) ⬇️
...urce/sql/handler/gaussdb/GaussDBEscapeHandler.java 0.00% <0.00%> (ø)
...source/sql/struct/cache/GaussDBTableMetaCache.java 0.00% <0.00%> (ø)
...datasource/undo/gaussdb/GaussDBUndoLogManager.java 0.00% <0.00%> (ø)
...in/java/io/seata/sqlparser/util/JdbcConstants.java 0.00% <0.00%> (ø)
.../src/main/java/io/seata/core/constants/DBType.java 0.00% <0.00%> (ø)
...datasource/exec/gaussdb/GaussDBInsertExecutor.java 0.00% <0.00%> (ø)
... and 13 more

... and 24 files with indirect coverage changes

@slievrly slievrly removed this from the 2.1.0 milestone Mar 2, 2024
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 module/sqlparser sql-parser module type: feature Category issues or prs related to feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

seata 驱动兼容openGauss
6 participants