Skip to content

Conversation

@YC27
Copy link
Contributor

@YC27 YC27 commented May 9, 2025

[
    {
        "taskId": "task1",
        "taskState": "STOPPED",
        "sourceAttribute": {
            "task-source-parallelism-num": "1",
            "source": "http-push-source"
        },
        "processorAttribute": {
            "processor": "do-nothing-processor"
        },
        "sinkAttribute": {
            "sink": "iotdb-demo-sink"
        },
        "createTime": "2025-05-08T08:03:22.908+00:00"
    },
    {
        "taskId": "task2",
        "taskState": "RUNNING",
        "sourceAttribute": {
            "task-source-parallelism-num": "2",
            "source": "http-push-source"
        },
        "processorAttribute": {
            "processor": "do-nothing-processor"
        },
        "sinkAttribute": {
            "sink": "iotdb-demo-sink"
        },
        "createTime": "2025-05-08T08:07:02.892+00:00"
    }
]

@YC27 YC27 changed the title Collector: Add show task api & Modify kafka source Collector: Add show task api & Improve the built-in Kafka Source plugin May 14, 2025
final String paramKey,
final Predicate<Integer> validationCondition) {
final int paramValue =
validator.getParameters().getIntOrDefault(paramKey, Integer.parseInt(paramKey));

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
Comment on lines +148 to +157
? Integer.parseInt(
consumers[0]
.consumer()
.report()
.get()
.getProgressInfo()
.getOrDefault(
REPORT_TIME_INTERVAL_KEY,
String.valueOf(
TaskRuntimeOptions.TASK_PROGRESS_REPORT_INTERVAL.value())))

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
@SteveYurongSu SteveYurongSu merged commit a2614f7 into apache:master May 16, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants