diff --git a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/service/impl/ComponentServiceImpl.java b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/service/impl/ComponentServiceImpl.java index b703eeb2..590c9184 100644 --- a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/service/impl/ComponentServiceImpl.java +++ b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/service/impl/ComponentServiceImpl.java @@ -97,8 +97,8 @@ public Boolean remove(Long id) { ComponentDTO componentDTO = StackUtils.getComponentDTO(componentPO.getName()); // Only server component should be stopped before remove, client component can be removed directly. - if (componentDTO.getCategory().equals(ComponentCategories.SERVER) && - Objects.equals(componentPO.getStatus(), HealthyStatusEnum.HEALTHY.getCode())) { + if (componentDTO.getCategory().equals(ComponentCategories.SERVER) + && Objects.equals(componentPO.getStatus(), HealthyStatusEnum.HEALTHY.getCode())) { throw new ApiException(ApiExceptionEnum.COMPONENT_IS_RUNNING); }