fix(yarn-query): 移除重复的属性设置
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user