iture123 opened a new issue, #2621:
URL: https://github.com/apache/incubator-seatunnel/issues/2621

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   1.in ElasticsearchSinkWriter.java,if bulk es error,need to throw Exception.
   ```
      BulkResponse bulkResponse = esRestClient.bulk(requestBody);
       if (!bulkResponse.isErrors()) {
           break;
       }
   ```
   
   2.in IndexTypeSerializerFactory.java,if es version is 6.x,neet to give a 
default index type.
    ```
      public static IndexTypeSerializer 
getIndexTypeSerializer(ElasticsearchVersion elasticsearchVersion, String type) {
           if (elasticsearchVersion == ES2 || elasticsearchVersion == ES5) {
               if (type == null || "".equals(type)) {
                   type = DEFAULT_TYPE;
               }
               return new RequiredIndexTypeSerializer(type);
           }
           if (elasticsearchVersion == ES6) {
               if (type != null && !"".equals(type)) {
                   return new RequiredIndexTypeSerializer(type);
               }
           }
           return new NotIndexTypeSerializer();
       }
   ```
   
   ### SeaTunnel Version
   
   2.1.3-SNAPSHOT
   
   ### SeaTunnel Config
   
   ```conf
   no
   ```
   
   
   ### Running Command
   
   ```shell
   no
   ```
   
   
   ### Error Exception
   
   ```log
   no
   ```
   
   
   ### Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to