fix(yarn-query): 移除重复的属性设置

This commit is contained in:
2023-05-10 10:01:40 +08:00
parent cc851158db
commit 0ed1840044

View File

@@ -52,14 +52,14 @@ public class JobServiceImpl implements JobService {
@Retryable(Throwable.class)
@Override
public ImmutableList<YarnApplication> listEquals(String name) throws JsonProcessingException {
return list().select(app -> StrUtil.equals(app.getName(), name)).tap(app -> app.setCluster(yarnConfiguration.getCluster()));
return list().select(app -> StrUtil.equals(app.getName(), name));
}
@Cacheable(value = "job-list", sync = true, key = "#{methodName+name}")
@Retryable(Throwable.class)
@Override
public ImmutableList<YarnApplication> listLike(String name) throws JsonProcessingException {
return list().select(app -> StrUtil.contains(app.getName(), name)).tap(app -> app.setCluster(yarnConfiguration.getCluster()));
return list().select(app -> StrUtil.contains(app.getName(), name));
}
@Override