github-advanced-security[bot] commented on code in PR #16166:
URL:
https://github.com/apache/dolphinscheduler/pull/16166#discussion_r1642508037
##########
dolphinscheduler-worker/src/main/java/org/apache/dolphinscheduler/server/worker/registry/WorkerRegistryClient.java:
##########
@@ -91,20 +92,24 @@
}
private void registry() throws InterruptedException {
+ log.info("Worker node: {} start registry",
workerConfig.getWorkerAddress());
+ String workerRegistryPath = workerConfig.getWorkerRegistryPath();
+
WorkerHeartBeat workerHeartBeat = workerHeartBeatTask.getHeartBeat();
while (ServerStatus.BUSY.equals(workerHeartBeat.getServerStatus())) {
log.warn("Worker node is BUSY: {}", workerHeartBeat);
workerHeartBeat = workerHeartBeatTask.getHeartBeat();
Thread.sleep(SLEEP_TIME_MILLIS);
}
- String workerRegistryPath = workerConfig.getWorkerRegistryPath();
+
// remove before persist
registryClient.remove(workerRegistryPath);
registryClient.persistEphemeral(workerRegistryPath,
JSONUtils.toJsonString(workerHeartBeat));
log.info("Worker node: {} registry to registry center {}
successfully", workerConfig.getWorkerAddress(),
workerRegistryPath);
while
(!registryClient.checkNodeExists(workerConfig.getWorkerAddress(),
RegistryNodeType.WORKER)) {
+ log.warn("The current wokrer server node:{} cannot find in
registry", NetUtils.getHost());
Review Comment:
## Log Injection
This log entry depends on a [user-provided value](1).
[Show more
details](https://github.com/apache/dolphinscheduler/security/code-scanning/4201)
--
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]