@Override
    public void close() {
        if (Objects.nonNull(session) && !session.isClosed()) {
            try {
                session.close();
            } catch (Exception e) {
                throw new IllegalArgumentException("[closeKuduSession]: " + e.getMessage());
            }
        }

        if (null != client) {
            try {
                client.shutdown();
            } catch (Exception e) {
                throw new IllegalArgumentException("[closeKuduClient]:" + e.getMessage());
            }
        }

        if (scheduledFuture != null) {
            scheduledFuture.cancel(false);
        }

        if (scheduler != null) {
            scheduler.shutdownNow();
        }
    }
Deal response when operation apply.
At MANUAL_FLUSH mode, response returns after {@link KuduSession#flush()}.
But at AUTO_FLUSH_SYNC mode, response returns after {@link KuduSession#apply(Operation)}

@param response {@link OperationResponse} response after operation done.
kudu/kudu-sink/src/main/java/com/dtstack/flink/sql/sink/kudu/KuduOutputFormat.java