forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
223 lines
28 KiB
HTML
223 lines
28 KiB
HTML
<a name="EN-US_TOPIC_0000001188642200"></a><a name="EN-US_TOPIC_0000001188642200"></a>
|
|
|
|
<h1 class="topictitle1">Automatic Retry upon SQL Statement Execution Errors</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1954624315308">With automatic retry (referred to as CN retry), GaussDB(DWS) retries an SQL statement when the execution of a statement fails. If an SQL statement sent from the <strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b6874413197">gsql</strong> client, JDBC driver, or ODBC driver fails to be executed, the CN can automatically identify the error reported during execution and re-deliver the task to retry.</p>
|
|
<p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p4825165811117">The restrictions of this function are as follows:</p>
|
|
<ul id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_ul082575891118"><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li595918091913">Functionality restrictions:<ul id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_ul148981383194"><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li158251358101117">CN retry increases execution success rate but does not guarantee success.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li9271351132815">CN retry is enabled by default. In this case, the system records logs about temporary tables. If it is disabled, the system will not record the logs. Therefore, do not repeatedly enable and disable CN retry when temporary tables are used. Otherwise, data inconsistency may occur after a CN retry following a primary/standby switchover.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li11781139103518">CN retry is enabled by default. In this case, the <strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b115561255111912">unlogged</strong> keyword is ignored in the statement for creating unlogged tables and thereby ordinary tables will be created by using this statement. If CN retry is disabled, the system records logs about unlogged tables. Therefore, do not repeatedly enable and disable CN retry when unlogged tables are used. Otherwise, data inconsistency may occur after a CN retry following a primary/standby switchover.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li2600933642">When GDS is used to export data, CN retry is supported. The existing mechanism checks for duplicate files and deletes duplicate files during data export. Therefore, you are advised not to repeatedly export data for the same foreign table unless you are sure that files with the same name in the data directory need to be deleted.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li762420499467">Error type restrictions:<p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p14819656154610"><a name="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li762420499467"></a><a name="en-us_topic_0000001098987144_li762420499467"></a>Only the error types in <a href="#EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_table17724162161910">Table 1</a> are supported.</p>
|
|
</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li1882695812110">Statement type restrictions:<p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1594239474"><a name="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li1882695812110"></a><a name="en-us_topic_0000001098987144_li1882695812110"></a>Support single-statement CN retry, stored procedures, functions, and anonymous blocks. Statements in transaction blocks are not supported.</p>
|
|
</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li448844917114">Statement restrictions of a stored procedure:<ul id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_ul153234221823"><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li153945191228">If an error occurs during the execution of a stored procedure containing <strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b93440324485">EXCEPTION</strong> (including statement block execution and statement execution in EXCEPTION), the stored procedure can be retried. If an internal error occurs, the stored procedure will retry first, but if the error is captured by <strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b1154805595116">EXCEPTION</strong>, the stored procedure cannot be retried.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li41742314310">Packages that use global variables are not supported.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li133072371840"><strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b135175965916">DBMS_JO</strong> is not supported.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li6978184319413"><strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b11103836124714">UTL_FILE</strong> is not supported.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li18371185010712">If the stored procedure has printed information (such as <strong id="EN-US_TOPIC_0000001188642200__b12978143810117">dbms_output.put_line</strong> or <strong id="EN-US_TOPIC_0000001188642200__b597812389115">raise info</strong>), the printed information will be output repeatedly when retry occurs, and "Notice: Retry triggered, some message may be duplicated. " will be output before the repeated information.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li12826658181119">Cluster status restrictions:<ul id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_ul1682615581119"><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li2826458111116">Only DNs or GTMs are faulty.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li2826758171117">The cluster can be recovered before the number of CN retries reaches the allowed maximum (controlled by <strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b17400173412409">max_query_retry_times</strong>). Otherwise, CN retry may fail.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li1815255315333">CN retry is not supported during scale-out.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li1439703161713">Data import restrictions:<ul id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_ul47430479177"><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li18509194651713">The <strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b842352706194419">COPY FROM STDIN</strong> statement is not supported.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li669514106252">The <strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b1158695184919">gsql \copy from</strong> metacommand is not supported.</li><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li1780651663815"><strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b073974115505">JDBC CopyManager copyIn</strong> is not supported.</li></ul>
|
|
</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p88269582119"><a href="#EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_table17724162161910">Table 1</a> lists the error types supported by CN retry and the corresponding error codes. You can use the GUC parameter <strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b10975252184012">retry_ecode_list</strong> to set the list of error types supported by CN retry. You are not advised to modify this parameter. To modify it, contact the technical support.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_table17724162161910"></a><a name="en-us_topic_0000001098987144_table17724162161910"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_table17724162161910" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Error types supported by CN retry</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row772472131915"><th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.5.2.4.1.1"><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p3724172111199">Error Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.5.2.4.1.2"><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1172432111918">Error Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.5.2.4.1.3"><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p69901235867">Remarks</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row107241921171911"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1376293312590">CONNECTION_RESET_BY_PEER</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p272452191917">YY001</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p899013353614">TCP communication errors: Connection reset by peer (communication between the CN and DNs)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row16724921101919"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p57624337592">STREAM_CONNECTION_RESET_BY_PEER</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p8724122113198">YY002</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p69904351664">TCP communication errors: Stream connection reset by peer (communication between DNs)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row14724121191915"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p47621033125918">LOCK_WAIT_TIMEOUT</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p2724142121913">YY003</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p8990103512610">Lock wait timeout</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row19724321121918"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p376219333598">CONNECTION_TIMED_OUT</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p2072462171914">YY004</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p169902351961">TCP communication errors: Connection timed out</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row1072410218194"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p107621433125917">SET_QUERY_ERROR</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p072410219191">YY005</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p899117353616">Failed to deliver the <strong id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_b1629120250132">SET</strong> command: Set query</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row5724721121914"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p9762233145915">OUT_OF_LOGICAL_MEMORY</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p572472111198">YY006</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p12991133511620">Failed to apply for memory: Out of logical memory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row157241521181911"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1762173310593">SCTP_MEMORY_ALLOC</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p14724182113196">YY007</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p139915352613">SCTP communication errors: Memory allocate error</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row27240215194"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p207621133135916">SCTP_NO_DATA_IN_BUFFER</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p3726102141919">YY008</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1299123518615">SCTP communication errors: SCTP no data in buffer</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row177265218194"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p147632335590">SCTP_RELEASE_MEMORY_CLOSE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p3726172141917">YY009</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p699117355611">SCTP communication errors: Release memory close</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row1672622191912"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p14763933185910">SCTP_TCP_DISCONNECT</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p14726152151916">YY010</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p9991173512619">SCTP communication errors: TCP disconnect</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row19726192151912"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p176343365918">SCTP_DISCONNECT</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p9726152114196">YY011</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p0991635469">SCTP communication errors: SCTP disconnect</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row137265216195"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p17636339594">SCTP_REMOTE_CLOSE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1672613216194">YY012</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p129911359610">SCTP communication errors: Stream closed by remote</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row8726221161915"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p18763833135918">SCTP_WAIT_POLL_UNKNOW</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p672616211190">YY013</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p139918356610">Waiting for an unknown poll: SCTP wait poll unknown</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row1179519164197"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p476315334594">SNAPSHOT_INVALID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p97971916141911">YY014</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p59911351769">Snapshot invalid</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row82108374328"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1076317334594">ERRCODE_CONNECTION_RECEIVE_WRONG</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p3210123718324">YY015</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1899217356613">Connection receive wrong</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row572619215199"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p5763133318598">OUT_OF_MEMORY</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p11726102101916">53200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p7992133515616">Out of memory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row5726102111196"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p87631433135911">CONNECTION_FAILURE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p167262021181910">08006</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1099217351063">GTM errors: Connection failure</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row2072652113192"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p5763183312593">CONNECTION_EXCEPTION</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1472715216190">08000</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p109929351264">Failed to communicate with DNs due to connection errors: Connection exception</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row1072732117195"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p9763123355913">ADMIN_SHUTDOWN</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p4727821121917">57P01</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p17992143512616">System shutdown by administrators: Admin shutdown</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row20727821111913"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p3763133318597">STREAM_REMOTE_CLOSE_SOCKET</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1872712111190">XX003</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p0992935262">Remote socket disabled: Stream remote close socket</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row91401602014"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p97631533205911">ERRCODE_STREAM_DUPLICATE_QUERY_ID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p18140869201">XX009</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p89921235469">Duplicate query id</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row93815447215"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p11381441216">ERRCODE_STREAM_CONCURRENT_UPDATE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p03816444213">YY016</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p10383445213">Stream concurrent update</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row1870714153"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p596410818588">ERRCODE_LLVM_BAD_ALLOC_ERROR</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p174591613553">CG003</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1553439155711">Memory allocation error: Allocate error</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row087313148510"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1950083519589">ERRCODE_LLVM_FATAL_ERROR</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1074611615554">CG004</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p4523831578">Fatal error</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_row929317351123"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p629315352214">HashJoin temporary file reading error (ERRCODE_HASHJOIN_TEMP_FILE_ERROR).</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p1529333513218">F0011</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p929319359211">File error</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188642200__row176338124147"><td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642200__p1174775881414">Partition number error (ERRCODE_PARTITION_NUM_CHANGED).</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642200__p14904142891414">45003</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642200__p39253338143">During scanning on a list partition table, it is found that the number of partitions is different from that in the optimization phase. This problem usually occurs when the queries and <strong id="EN-US_TOPIC_0000001188642200__b17138154675319">ADD</strong>/<strong id="EN-US_TOPIC_0000001188642200__b72511155125315">DROP</strong> partitions are concurrently executed. (This error is supported only by cluster 8.1.3 and later versions.)</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="p" id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p137911946162611">To enable CN retry, set the following GUC parameters:<ul id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_ul479194610264"><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li679124616266">Mandatory GUC parameters (required by both CNs and DNs)<p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p6791154612620"><a name="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li679124616266"></a><a name="en-us_topic_0000001098987144_li679124616266"></a>max_query_retry_times</p>
|
|
<div class="caution" id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_note15544350013"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p10544550419">If CN retry is enabled, temporary table data is logged. For data consistency, do not switch the enabled/disabled status for CN retry when the temporary tables are being used by sessions.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_ul15791134615262"><li id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li2791746142620">Optional GUC parameters<p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p117911546152619"><a name="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_li2791746142620"></a><a name="en-us_topic_0000001098987144_li2791746142620"></a>cn_send_buffer_size</p>
|
|
<p id="EN-US_TOPIC_0000001188642200__en-us_topic_0000001098987144_p16791104619262">max_cn_temp_file_size</p>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0491.html">SQL Execution Troubleshooting</a></div>
|
|
</div>
|
|
</div>
|
|
|