From b181cba96e1de5cebe4ce05eb9f51d190565e8fb Mon Sep 17 00:00:00 2001 From: zhangliang Date: Sat, 25 Nov 2023 14:51:53 +0800 Subject: [PATCH] Split PipelineJobAPI to PipelineJobOption and PipelineJobAPI --- .../data/pipeline/core/job/service/PipelineJobManager.java | 2 +- .../distsql/handler/update/CommitMigrationUpdater.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/job/service/PipelineJobManager.java b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/job/service/PipelineJobManager.java index 9d391d957c855..39968ff66909a 100644 --- a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/job/service/PipelineJobManager.java +++ b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/job/service/PipelineJobManager.java @@ -174,7 +174,7 @@ public void drop(final String jobId) { * @return jobs info */ public List getJobInfos(final PipelineContextKey contextKey) { - if (jobOption instanceof TransmissionJobAPI) { + if (jobOption instanceof TransmissionJobOption) { return PipelineAPIFactory.getJobStatisticsAPI(contextKey).getAllJobsBriefInfo().stream() .filter(each -> !each.getJobName().startsWith("_") && jobOption.getType().equals(PipelineJobIdUtils.parseJobType(each.getJobName()).getType())) .map(each -> ((TransmissionJobOption) jobOption).getJobInfo(each.getJobName())).collect(Collectors.toList()); diff --git a/kernel/data-pipeline/distsql/handler/src/main/java/org/apache/shardingsphere/migration/distsql/handler/update/CommitMigrationUpdater.java b/kernel/data-pipeline/distsql/handler/src/main/java/org/apache/shardingsphere/migration/distsql/handler/update/CommitMigrationUpdater.java index 147bf6f156265..eab14496d6d97 100644 --- a/kernel/data-pipeline/distsql/handler/src/main/java/org/apache/shardingsphere/migration/distsql/handler/update/CommitMigrationUpdater.java +++ b/kernel/data-pipeline/distsql/handler/src/main/java/org/apache/shardingsphere/migration/distsql/handler/update/CommitMigrationUpdater.java @@ -31,8 +31,7 @@ public final class CommitMigrationUpdater implements RALUpdater