Merge blocked
Welcome To openGauss Community
Hey @siying01-2026 , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
Contact Guide
If you have any questions, please contact the SIG: Infra ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @libiao2024, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @ailoooong, @gzbang, @libiao2024, @zhangxubo .


CLA Signature Guide
@siying01-2026 , thanks for your pull request.
The following commit(s) are not associated with a signed Contributor License Agreement (CLA).
| Commit | Reason |
|---|---|
| 850b2b00 test: use isolated pool and outs... | the email used in the commit is an invalid email! please check all commits. |
To sign CLA, click here.
To check if your email is configured correctly, refer to the FAQs.
Once you've signed the CLA or updating your email, please comment /check-cla to revalidate CLA status.


【标题】Proxool 连接 openGauss B 兼容模式测试代码及自测报告
【实现内容】:
基于 openGauss B 库 dolphin 插件的 MySQL 协议兼容能力,测试验证 Proxool 连接池配合 MySQL JDBC 驱动连接 openGauss B 兼容模式数据库的可行性,并输出测试代码、测试思维导图与自测报告。本 PR 提交至 examples 仓库,内容包括:
1.Proxool 连接池测试代码(8 个 JUnit 测试类,共 37 项测试用例全部通过)
2.测试思维导图
3‘自测报告(markdown 格式,包含完整测试结果与兼容性差异分析)
4.readme.md、pom.xml、proxool.properties、依赖 JAR
【根因分析】:
不涉及。本 PR 为示例代码与测试报告提交,不修改 openGauss 或 dolphin 插件源码。
【实现方案】:
环境:openEuler 20.03 LTS + openGauss 7.0.0-RC3,开启 dolphin 插件,配置 MySQL 协议端口 3308,创建 B 兼容库 test_b_db。
测试框架:Maven 工程,依赖 Proxool 0.9.1 + proxool-cglib 0.9.1 + MySQL Connector/J 8.0.28 + JUnit 4.13.2,运行在 JDK 1.8。
使用 Proxool 的 Properties 配置方式(proxool.properties),通过 DriverManager.getConnection("proxool.openGaussPool") 获取池化连接。
编写 8 个 JUnit 测试类,用断言形式覆盖以下场景,共 37 个测试用例:
【关联需求或issue】
Fixes https://gitcode.com/opengauss/opensource-intership/issues/50
【开发自验报告】:
JUnit 测试结果:12 tests passed, 0 failed
每个测试用例均有 Java 端断言截图 + 数据库端 MySQL 客户端验证截图
详见 docs/Proxool 连接 openGauss B 兼容模式自测报告.docx
已测试异常场景:Proxool 0.9.1 与 JDK 21 不兼容(InaccessibleObjectException),解决方案为使用 JDK 8。
已测试连接池关闭后再次获取连接抛异常的边界情况。
并发、性能场景本次未覆盖,属后续可优化方向。
【当前PR是否有AI参与】:
[x] 是
[ ] 否
__1. AI Agent 平台: DeepSeek
__2. AI 模型: DeepSeek
__3. Prompt上下文 :用于辅助生成 JUnit 测试代码、Proxool 配置模板、文档排版
【其他说明】:
ProxoolConnectOpenGaussB/
├── docs/
│ ├── Proxool自测报告.md
│ ├── 测试思维导图.png
│ └── figures/
│ └── 00_overview.png
├── lib/
│ ├── proxool-0.9.1.jar
│ └── proxool-cglib-0.9.1.jar
├── src/
│ ├── main/
│ │ ├── java/ProxoolTest.java
│ │ └── resources/proxool.properties
│ └── test/
│ └── java/
│ ├── ProxoolJUnitTest.java
│ ├── ProxoolPoolParamTest.java
│ ├── ProxoolTransactionTest.java
│ ├── ProxoolSqlCategoryTest.java
│ ├── ProxoolDataTypeTest.java
│ ├── ProxoolStabilityTest.java
│ ├── ProxoolConnectionValidationTest.java
│ └── ProxoolPoolExhaustTest.java
├── pom.xml
└── readme.md