vernedeng commented on code in PR #9057:
URL: https://github.com/apache/inlong/pull/9057#discussion_r1514496936
##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/es/ElasticsearchConfig.java:
##########
@@ -45,7 +40,11 @@
public class ElasticsearchConfig {
private static final Logger logger =
LoggerFactory.getLogger(ElasticsearchConfig.class);
- private static RestHighLevelClient highLevelClient;
+
+ @Autowired
+ private RestTemplate restTemplate;
+
+ private static List<HttpHost> httpHosts;
Review Comment:
why use static variables, is there any concurrency issue?
--
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]