This is an automated email from the ASF dual-hosted git repository.

wuweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 1307f505098 Refactor OverallConnectionNotEnoughException (#30879)
1307f505098 is described below

commit 1307f5050988fb55ff17c7f1dffb4c76c3341044
Author: Liang Zhang <zhangli...@apache.org>
AuthorDate: Sun Apr 14 14:11:41 2024 +0800

    Refactor OverallConnectionNotEnoughException (#30879)
---
 .../user-manual/error-code/sql-error-code.cn.md    | 22 +++++++++++-----------
 .../user-manual/error-code/sql-error-code.en.md    | 22 +++++++++++-----------
 .../OverallConnectionNotEnoughException.java       |  2 +-
 3 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/docs/document/content/user-manual/error-code/sql-error-code.cn.md 
b/docs/document/content/user-manual/error-code/sql-error-code.cn.md
index 7e20b1d5877..bd34d012b8d 100644
--- a/docs/document/content/user-manual/error-code/sql-error-code.cn.md
+++ b/docs/document/content/user-manual/error-code/sql-error-code.cn.md
@@ -70,17 +70,17 @@ SQL 错误码以标准的 SQL State,Vendor Code 和详细错误信息提供,
 
 ### 连接
 
-| Vendor Code | SQL State | 错误信息                                               
                                                                                
                                                                                
         |
-|-------------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| 13000       | 08000     | Can not get %d connections one time, partition 
succeed connection(%d) have released. Please consider increasing the 
\`maxPoolSize\` of the data sources or decreasing the 
\`max-connections-size-per-query\` in properties. |
-| 13001       | 08000     | SQL execution has been interrupted.                
                                                                                
                                                                                
         |
-| 13010       | 01000     | Circuit break open, the request has been ignored.  
                                                                                
                                                                                
         |
-| 13100       | 0A000     | Unsupported storage type of URL '%s'.              
                                                                                
                                                                                
         |
-| 13101       | 08000     | The URL '%s' is not recognized, please refer to 
the pattern '%s'.                                                               
                                                                                
            |
-| 13200       | 08000     | Can not register driver.                           
                                                                                
                                                                                
         |
-| 13201       | 08000     | Connection has been closed.                        
                                                                                
                                                                                
         |
-| 13202       | 08000     | Result set has been closed.                        
                                                                                
                                                                                
         |
-| 13400       | HY000     | Load datetime from database failed, reason: %s     
                                                                                
                                                                                
         |
+| Vendor Code | SQL State | 错误信息                                               
                                                                                
                                                                                
     |
+|-------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 13000       | 08000     | Can not get %d connections one time, partition 
succeed connection(%d) have released. Please consider increasing the 
'maxPoolSize' of the data sources or decreasing the 
'max-connections-size-per-query' in properties. |
+| 13001       | 08000     | SQL execution has been interrupted.                
                                                                                
                                                                                
     |
+| 13010       | 01000     | Circuit break open, the request has been ignored.  
                                                                                
                                                                                
     |
+| 13100       | 0A000     | Unsupported storage type of URL '%s'.              
                                                                                
                                                                                
     |
+| 13101       | 08000     | The URL '%s' is not recognized, please refer to 
the pattern '%s'.                                                               
                                                                                
        |
+| 13200       | 08000     | Can not register driver.                           
                                                                                
                                                                                
     |
+| 13201       | 08000     | Connection has been closed.                        
                                                                                
                                                                                
     |
+| 13202       | 08000     | Result set has been closed.                        
                                                                                
                                                                                
     |
+| 13400       | HY000     | Load datetime from database failed, reason: %s     
                                                                                
                                                                                
     |
 
 ### 事务
 
diff --git a/docs/document/content/user-manual/error-code/sql-error-code.en.md 
b/docs/document/content/user-manual/error-code/sql-error-code.en.md
index 99ccf5412bd..8e98393c5e8 100644
--- a/docs/document/content/user-manual/error-code/sql-error-code.en.md
+++ b/docs/document/content/user-manual/error-code/sql-error-code.en.md
@@ -71,17 +71,17 @@ SQL error codes provide by standard `SQL State`, `Vendor 
Code` and `Reason`, whi
 
 ### Connection
 
-| Vendor Code | SQL State | Reason                                             
                                                                                
                                                                                
         |
-|-------------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| 13000       | 08000     | Can not get %d connections one time, partition 
succeed connection(%d) have released. Please consider increasing the 
\`maxPoolSize\` of the data sources or decreasing the 
\`max-connections-size-per-query\` in properties. |
-| 13001       | 08000     | SQL execution has been interrupted.                
                                                                                
                                                                                
         |
-| 13010       | 01000     | Circuit break open, the request has been ignored.  
                                                                                
                                                                                
         |
-| 13100       | 0A000     | Unsupported storage type of URL '%s'.              
                                                                                
                                                                                
         |
-| 13101       | 08000     | The URL '%s' is not recognized, please refer to 
the pattern '%s'.                                                               
                                                                                
            |
-| 13200       | 08000     | Can not register driver.                           
                                                                                
                                                                                
         |
-| 13201       | 08000     | Connection has been closed.                        
                                                                                
                                                                                
         |
-| 13202       | 08000     | Result set has been closed.                        
                                                                                
                                                                                
         |
-| 13400       | HY000     | Load datetime from database failed, reason: %s     
                                                                                
                                                                                
         |
+| Vendor Code | SQL State | Reason                                             
                                                                                
                                                                                
     |
+|-------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 13000       | 08000     | Can not get %d connections one time, partition 
succeed connection(%d) have released. Please consider increasing the 
'maxPoolSize' of the data sources or decreasing the 
'max-connections-size-per-query' in properties. |
+| 13001       | 08000     | SQL execution has been interrupted.                
                                                                                
                                                                                
     |
+| 13010       | 01000     | Circuit break open, the request has been ignored.  
                                                                                
                                                                                
     |
+| 13100       | 0A000     | Unsupported storage type of URL '%s'.              
                                                                                
                                                                                
     |
+| 13101       | 08000     | The URL '%s' is not recognized, please refer to 
the pattern '%s'.                                                               
                                                                                
        |
+| 13200       | 08000     | Can not register driver.                           
                                                                                
                                                                                
     |
+| 13201       | 08000     | Connection has been closed.                        
                                                                                
                                                                                
     |
+| 13202       | 08000     | Result set has been closed.                        
                                                                                
                                                                                
     |
+| 13400       | HY000     | Load datetime from database failed, reason: %s     
                                                                                
                                                                                
     |
 
 ### Transaction
 
diff --git 
a/infra/common/src/main/java/org/apache/shardingsphere/infra/exception/kernel/connection/OverallConnectionNotEnoughException.java
 
b/infra/common/src/main/java/org/apache/shardingsphere/infra/exception/kernel/connection/OverallConnectionNotEnoughException.java
index 9746d09f022..8674a2f7e6e 100644
--- 
a/infra/common/src/main/java/org/apache/shardingsphere/infra/exception/kernel/connection/OverallConnectionNotEnoughException.java
+++ 
b/infra/common/src/main/java/org/apache/shardingsphere/infra/exception/kernel/connection/OverallConnectionNotEnoughException.java
@@ -29,6 +29,6 @@ public final class OverallConnectionNotEnoughException 
extends ConnectionSQLExce
     
     public OverallConnectionNotEnoughException(final int desiredSize, final 
int actualSize, final Exception cause) {
         super(XOpenSQLState.CONNECTION_EXCEPTION, 0, String.format("Can not 
get %d connections one time, partition succeed connection(%d) have released. "
-                + "Please consider increasing the `maxPoolSize` of the data 
sources or decreasing the `max-connections-size-per-query` in properties.", 
desiredSize, actualSize), cause);
+                + "Please consider increasing the 'maxPoolSize' of the data 
sources or decreasing the 'max-connections-size-per-query' in properties.", 
desiredSize, actualSize), cause);
     }
 }

Reply via email to