src/main/java/com/aliyun/openservices/paifeaturestore/datasource/FeatureDBClient.java [155:191]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        String requestBody = gson.toJson(map);
        RequestBody body = RequestBody.create(requestBody, JSON);
        Request request = new Request.Builder()
                .url(url)
                .post(body)
                .addHeader("Authorization", token)
                .addHeader("Auth", signature)
                .build();

        byte[] content = null;

        for (int i = 0; i < retryCount ; i++) {
            try {
                content = this.doRequest(request);
                //content = this.doRequestAsync(request).get();
                break;
            } catch(HttpException e) {
                //HttpException e = (HttpException) e1.getCause();
                int statusCode = e.getCode();
                String errorMessage = String.format("URL: %s, code: %d, error: %s", url, statusCode, e.getMessage());
                if ( i < retryCount) {
                    log.debug(errorMessage);
                } else {
                    log.error(errorMessage);
                    throw e;
                }
            } catch (Exception e) {
                String errorMessage = String.format("URL: %s, error: %s", url, e.getMessage());
                if (i < retryCount) {
                    log.debug(errorMessage);
                } else {
                    log.error(errorMessage);
                    throw e;
                }
            }
        }
        return content;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/com/aliyun/openservices/paifeaturestore/datasource/FeatureDBClient.java [199:233]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        String requestBody = gson.toJson(map);
        RequestBody body = RequestBody.create(requestBody, JSON);
        Request request = new Request.Builder()
                .url(url)
                .post(body)
                .addHeader("Authorization", token)
                .addHeader("Auth", signature)
                .build();

        byte[] content = null;

        for (int i = 0; i < retryCount ; i++) {
            try {
                content = this.doRequest(request);
                break;
            } catch(HttpException e) {
                int statusCode = e.getCode();
                String errorMessage = String.format("URL: %s, code: %d, error: %s", url, statusCode, e.getMessage());
                if ( i < retryCount) {
                    log.debug(errorMessage);
                } else {
                    log.error(errorMessage);
                    throw e;
                }
            } catch (Exception e) {
                String errorMessage = String.format("URL: %s, error: %s", url, e.getMessage());
                if (i < retryCount) {
                    log.debug(errorMessage);
                } else {
                    log.error(errorMessage);
                    throw e;
                }
            }
        }
        return content;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



