-
Notifications
You must be signed in to change notification settings - Fork 17
Complete the migration of the collector node project #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| PROCESSOR_EXECUTOR.putIfAbsent(taskId, executorService); | ||
| PROCESSOR_TASK_MAP.putIfAbsent(taskId, collectorTask); | ||
|
|
||
| LOGGER.info("register collector processor task {}", taskId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
| PROCESSOR_TASK_MAP.remove(taskId).stop(); | ||
| PROCESSOR_EXECUTOR.remove(taskId).shutdownNow(); | ||
|
|
||
| LOGGER.info("deregister collector processor task {}", taskId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
| SINK_EXECUTOR.putIfAbsent(taskId, executorService); | ||
| SINK_TASK_MAP.putIfAbsent(taskId, collectorTask); | ||
|
|
||
| LOGGER.info("register collector sink task {}", taskId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
| SINK_TASK_MAP.remove(taskId).stop(); | ||
| SINK_EXECUTOR.remove(taskId).shutdownNow(); | ||
|
|
||
| LOGGER.info("deregister collector sink task {}", taskId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
| SOURCE_EXECUTOR.put(taskId, executorService); | ||
| SOURCE_TASK_MAP.putIfAbsent(taskId, collectorTask); | ||
|
|
||
| LOGGER.info("register collector source task {}", taskId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
| .ifPresent( | ||
| executor -> { | ||
| executor.submit(collectorTask); | ||
| LOGGER.info("register success {}", collectorTask.getTaskId()); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
| recordExecution(collectorTask, executor); | ||
| }); | ||
| } else { | ||
| LOGGER.warn("task {} has existed", collectorTask.getTaskId()); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
| if (!validateIfAbsent(taskId)) { | ||
| eraseExecution(taskId); | ||
| } else { | ||
| LOGGER.warn("task {} has not existed", taskId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
|
|
||
| final boolean stopResult = CollectorAgent.task().stopCollectorTask(stopPipeRequest.getTaskId()); | ||
| if (stopResult) { | ||
| LOGGER.info("Stop task: {} successful", stopPipeRequest.getTaskId()); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
| LOGGER.info("Stop task: {} successful", stopPipeRequest.getTaskId()); | ||
| return Response.ok().entity("stop task: " + stopPipeRequest.getTaskId() + " success").build(); | ||
| } | ||
| LOGGER.warn("Stop task: {} failed", stopPipeRequest.getTaskId()); |
Check failure
Code scanning / CodeQL
Log Injection High
as the title