You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "luchunliang (via GitHub)" <gi...@apache.org> on 2023/02/10 02:52:36 UTC
[GitHub] [inlong] luchunliang commented on a diff in pull request #7350: [INLONG-7349][SDK] Fix init failure when a single SortTask create multiple SortClients
luchunliang commented on code in PR #7350:
URL: https://github.com/apache/inlong/pull/7350#discussion_r1102224325
##########
inlong-sdk/sort-sdk/src/main/java/org/apache/inlong/sdk/sort/api/ClientContext.java:
##########
@@ -36,7 +37,7 @@ public abstract class ClientContext implements Cleanable {
public ClientContext(SortClientConfig config) {
this.config = config;
this.sortTaskId = config.getSortTaskId();
- this.metricItemSet = new SortSdkMetricItemSet(config.getSortTaskId());
+ this.metricItemSet = new SortSdkMetricItemSet(config.getSortTaskId() + new Random().nextInt());
Review Comment:
It is better using SecureRandom
--
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: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org