@SuppressWarnings("unchecked")
    private boolean sendRequest(HttpUriRequest request) {
        try (CloseableHttpClient httpclient = HttpClients.createDefault()) {
            for (int i = 0; i < maxRetries; i++) {
                try {
                    CloseableHttpResponse response = httpclient.execute(request);
                    final int statusCode = response.getStatusLine().getStatusCode();
                    if (statusCode == HttpStatus.SC_OK && response.getEntity() != null) {
                        String loadResult = EntityUtils.toString(response.getEntity());
                        Map<String, Object> responseMap = JsonDynamicSchemaFormat.OBJECT_MAPPER
                                .readValue(loadResult, Map.class);
                        String code = responseMap.getOrDefault("code", "-1").toString();
                        if (DORIS_HTTP_CALL_SUCCESS.equals(code)) {
                            return true;
                        }
                        LOGGER.error("send request error: {}", loadResult);
                    }
                } catch (Exception e) {
                    if (i >= maxRetries) {
                        LOGGER.error("send http requests error", e);
                        throw new IOException(e);
                    }
                    try {
                        Thread.sleep(1000L * i);
                    } catch (InterruptedException ex) {
                        Thread.currentThread().interrupt();
                        throw new IOException("unable to send http request,interrupted while doing another attempt", e);
                    }
                }
            }
        } catch (Exception e) {
            LOGGER.error("send request error", e);
            throw new SchemaChangeHandleException("send request error", e);
        }
        return false;
    }
Process schema change for Doris

@param data The origin data
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/doris/src/main/java/org/apache/inlong/sort/doris/schema/SchemaChangeHelper.java