You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/connector-v2/Error-Quick-Reference-Manual.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Error Quick Reference Manual
2
2
3
-
This document records some common error codes and corresponding solutions of SeaTunnel, aiming to quickly solve the problems encountered by users.
3
+
This document records some common error codes and corresponding solutions of SeaTunnel, aiming to quickly solve the
4
+
problems encountered by users.
4
5
5
6
## SeaTunnel API Error Codes
6
7
@@ -96,6 +97,15 @@ This document records some common error codes and corresponding solutions of Sea
96
97
| HIVE-02 | Initialize hive metastore client failed | When users encounter this error code, it means that connect to hive metastore service failed, please check it whether is work |
97
98
| HIVE-03 | Get hive table information from hive metastore service failed | When users encounter this error code, it means that hive metastore service has some problems, please check it whether is work |
| ELASTICSEARCH-01 | Bulk es response error | When the user encounters this error code, it means that the connection was aborted, please check it whether is work |
105
+
| ELASTICSEARCH-02 | Get elasticsearch version failed | When the user encounters this error code, it means that the connection was aborted, please check it whether is work |
106
+
| ELASTICSEARCH-03 | Fail to scroll request | When the user encounters this error code, it means that the connection was aborted, please check it whether is work |
107
+
| ELASTICSEARCH-04 | Get elasticsearch document index count failed | When the user encounters this error code, it means that the es index may not wrong or the connection was aborted, please check |
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/client/EsRestClient.java
thrownewBulkElasticsearchException("bulk es Response is null");
115
+
thrownewElasticsearchConnectorException(ElasticsearchConnectorErrorCode.BULK_RESPONSE_ERROR, "bulk es Response is null");
118
116
}
119
117
if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
120
118
ObjectMapperobjectMapper = newObjectMapper();
@@ -124,10 +122,10 @@ public BulkResponse bulk(String requestBody) {
124
122
booleanerrors = json.get("errors").asBoolean();
125
123
returnnewBulkResponse(errors, took, entity);
126
124
} else {
127
-
thrownewBulkElasticsearchException(String.format("bulk es response status code=%d,request boy=%s", response.getStatusLine().getStatusCode(), requestBody));
125
+
thrownewElasticsearchConnectorException(ElasticsearchConnectorErrorCode.BULK_RESPONSE_ERROR, String.format("bulk es response status code=%d,request boy=%s", response.getStatusLine().getStatusCode(), requestBody));
128
126
}
129
127
} catch (IOExceptione) {
130
-
thrownewBulkElasticsearchException(String.format("bulk es error,request boy=%s", requestBody), e);
128
+
thrownewElasticsearchConnectorException(ElasticsearchConnectorErrorCode.BULK_RESPONSE_ERROR, String.format("bulk es error,request boy=%s", requestBody), e);
131
129
}
132
130
}
133
131
@@ -144,11 +142,11 @@ public String getClusterVersion() {
144
142
JsonNodeversionNode = jsonNode.get("version");
145
143
returnversionNode.get("number").asText();
146
144
} catch (IOExceptione) {
147
-
thrownewGetElasticsearchVersionException("fail to get elasticsearch version.", e);
145
+
thrownewElasticsearchConnectorException(ElasticsearchConnectorErrorCode.GET_ES_VERSION_FAILED, "fail to get elasticsearch version.", e);
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/constant/ElasticsearchVersion.java
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/exception/BulkElasticsearchException.java
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/exception/GetElasticsearchVersionException.java
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/exception/GetIndexDocsCountException.java
0 commit comments