status
stringclasses
1 value
repo_name
stringclasses
31 values
repo_url
stringclasses
31 values
issue_id
int64
1
104k
title
stringlengths
4
233
body
stringlengths
0
186k
issue_url
stringlengths
38
56
pull_url
stringlengths
37
54
before_fix_sha
stringlengths
40
40
after_fix_sha
stringlengths
40
40
report_datetime
timestamp[us, tz=UTC]
language
stringclasses
5 values
commit_datetime
timestamp[us, tz=UTC]
updated_file
stringlengths
7
188
chunk_content
stringlengths
1
1.03M
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/QueueServiceImpl.java
Result<Object> result = new Result<>(); Queue queueValidator = new Queue(queueName, queue); createQueueValid(queueValidator); putMsg(result, Status.SUCCESS); return result; } /** * check queue exist * if exists return true,not exists return false * check queue exist * * @param queue queue * @return true if the queue not exists, otherwise return false */ private boolean checkQueueExist(String queue) { return queueMapper.existQueue(queue, null) == Boolean.TRUE; } /** * check queue name exist * if exists return true,not exists return false * * @param queueName queue name * @return true if the queue name not exists, otherwise return false */ private boolean checkQueueNameExist(String queueName) { return queueMapper.existQueue(null, queueName) == Boolean.TRUE; } /** * check old queue name using by any user * if need to update user
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/QueueServiceImpl.java
* * @param oldQueue old queue name * @param newQueue new queue name * @return true if need to update user */ private boolean checkIfQueueIsInUsing(String oldQueue, String newQueue) { return !oldQueue.equals(newQueue) && userMapper.existUser(oldQueue) == Boolean.TRUE; } /** * Make sure queue with given name exists, and create the queue if not exists * * ONLY for python gateway server, and should not use this in web ui function * * @param queue queue value * @param queueName queue name * @return Queue object */ @Override public Queue createQueueIfNotExists(String queue, String queueName) { Queue existsQueue = queueMapper.queryQueueName(queue, queueName); if (!Objects.isNull(existsQueue)) { return existsQueue; } Queue queueObj = new Queue(queueName, queue); createQueueValid(queueObj); queueMapper.insert(queueObj); return queueObj; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.api.service; import static org.apache.dolphinscheduler.api.constants.ApiFuncIdentificationConstant.YARN_QUEUE_CREATE; import static org.apache.dolphinscheduler.api.constants.ApiFuncIdentificationConstant.YARN_QUEUE_UPDATE; import org.apache.dolphinscheduler.api.enums.Status; import org.apache.dolphinscheduler.api.exceptions.ServiceException; import org.apache.dolphinscheduler.api.permission.ResourcePermissionCheckService; import org.apache.dolphinscheduler.api.service.impl.BaseServiceImpl; import org.apache.dolphinscheduler.api.service.impl.QueueServiceImpl; import org.apache.dolphinscheduler.api.utils.PageInfo; import org.apache.dolphinscheduler.api.utils.Result; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.enums.AuthorizationType;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
import org.apache.dolphinscheduler.common.enums.UserType; import org.apache.dolphinscheduler.dao.entity.Queue; import org.apache.dolphinscheduler.dao.entity.User; import org.apache.dolphinscheduler.dao.mapper.QueueMapper; import org.apache.dolphinscheduler.dao.mapper.UserMapper; import org.apache.commons.collections.CollectionUtils; import java.text.MessageFormat; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.jupiter.api.Assertions; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.junit.MockitoJUnitRunner; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; /** * queue service test */ @RunWith(MockitoJUnitRunner.class)
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
public class QueueServiceTest { private static final Logger baseServiceLogger = LoggerFactory.getLogger(BaseServiceImpl.class); private static final Logger queueServiceImplLogger = LoggerFactory.getLogger(QueueServiceImpl.class); @InjectMocks private QueueServiceImpl queueService; @Mock private QueueMapper queueMapper; @Mock private UserMapper userMapper;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
@Mock private ResourcePermissionCheckService resourcePermissionCheckService; private static final String QUEUE = "queue"; private static final String QUEUE_NAME = "queueName"; private static final String EXISTS = "exists"; private static final String NOT_EXISTS = "not_exists"; private static final String NOT_EXISTS_FINAL = "not_exists_final"; @Before public void setUp() { } @After public void after() { } @Test public void testQueryList() { Set<Integer> ids = new HashSet<>(); ids.add(1); Mockito.when(resourcePermissionCheckService.userOwnedResourceIdsAcquisition(AuthorizationType.QUEUE, getLoginUser().getId(), queueServiceImplLogger)).thenReturn(ids); Mockito.when(queueMapper.selectBatchIds(Mockito.anySet())).thenReturn(getQueueList()); Map<String, Object> result = queueService.queryList(getLoginUser()); List<Queue> queueList = (List<Queue>) result.get(Constants.DATA_LIST); Assert.assertTrue(CollectionUtils.isNotEmpty(queueList)); } @Test public void testQueryListPage() { IPage<Queue> page = new Page<>(1, 10); page.setTotal(1L); page.setRecords(getQueueList()); Set<Integer> ids = new HashSet<>(); ids.add(1);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
Mockito.when(resourcePermissionCheckService.userOwnedResourceIdsAcquisition(AuthorizationType.QUEUE, getLoginUser().getId(), queueServiceImplLogger)).thenReturn(ids); Mockito.when(queueMapper.queryQueuePaging(Mockito.any(Page.class), Mockito.anyList(), Mockito.eq(QUEUE_NAME))).thenReturn(page); Result result = queueService.queryList(getLoginUser(), QUEUE_NAME, 1, 10); PageInfo<Queue> pageInfo = (PageInfo<Queue>) result.getData(); Assert.assertTrue(CollectionUtils.isNotEmpty(pageInfo.getTotalList())); } @Test public void testCreateQueue() { Mockito.when(resourcePermissionCheckService.operationPermissionCheck(AuthorizationType.QUEUE, null, getLoginUser().getId(), YARN_QUEUE_CREATE, baseServiceLogger)).thenReturn(true); Mockito.when(resourcePermissionCheckService.resourcePermissionCheck(AuthorizationType.QUEUE, null, 0, baseServiceLogger)).thenReturn(true); Throwable exception = Assertions.assertThrows(ServiceException.class, () -> queueService.createQueue(getLoginUser(), null, QUEUE_NAME)); String formatter = MessageFormat.format(Status.REQUEST_PARAMS_NOT_VALID_ERROR.getMsg(), Constants.QUEUE); Assertions.assertEquals(formatter, exception.getMessage()); exception = Assertions.assertThrows(ServiceException.class, () -> queueService.createQueue(getLoginUser(), QUEUE_NAME, null)); formatter = MessageFormat.format(Status.REQUEST_PARAMS_NOT_VALID_ERROR.getMsg(), Constants.QUEUE_NAME); Assertions.assertEquals(formatter, exception.getMessage()); Map<String, Object> result = queueService.createQueue(getLoginUser(), QUEUE_NAME, QUEUE_NAME); Assert.assertEquals(Status.SUCCESS, result.get(Constants.STATUS)); } @Test public void testUpdateQueue() { Mockito.when(queueMapper.selectById(1)).thenReturn(getQUEUE()); Mockito.when(queueMapper.existQueue(EXISTS, null)).thenReturn(true); Mockito.when(queueMapper.existQueue(null, EXISTS)).thenReturn(true); Mockito.when(resourcePermissionCheckService.operationPermissionCheck(AuthorizationType.QUEUE, null, getLoginUser().getId(), YARN_QUEUE_UPDATE, baseServiceLogger)).thenReturn(true); Mockito.when(resourcePermissionCheckService.resourcePermissionCheck(AuthorizationType.QUEUE, new Object[]{0}, 0, baseServiceLogger)).thenReturn(true);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
Throwable exception = Assertions.assertThrows(ServiceException.class, () -> queueService.updateQueue(getLoginUser(), 0, QUEUE, QUEUE_NAME)); String formatter = MessageFormat.format(Status.QUEUE_NOT_EXIST.getMsg(), QUEUE); Assertions.assertEquals(formatter, exception.getMessage()); Mockito.when(resourcePermissionCheckService.resourcePermissionCheck(AuthorizationType.QUEUE, new Object[]{1}, 0, baseServiceLogger)).thenReturn(true); exception = Assertions.assertThrows(ServiceException.class, () -> queueService.updateQueue(getLoginUser(), 1, QUEUE_NAME, QUEUE_NAME)); Assertions.assertEquals(Status.NEED_NOT_UPDATE_QUEUE.getMsg(), exception.getMessage()); exception = Assertions.assertThrows(ServiceException.class, () -> queueService.updateQueue(getLoginUser(), 1, EXISTS, QUEUE_NAME)); formatter = MessageFormat.format(Status.QUEUE_VALUE_EXIST.getMsg(), EXISTS); Assertions.assertEquals(formatter, exception.getMessage()); exception = Assertions.assertThrows(ServiceException.class, () -> queueService.updateQueue(getLoginUser(), 1, NOT_EXISTS, EXISTS)); formatter = MessageFormat.format(Status.QUEUE_NAME_EXIST.getMsg(), EXISTS); Assertions.assertEquals(formatter, exception.getMessage()); Mockito.when(userMapper.existUser(Mockito.anyString())).thenReturn(false); Map<String, Object> result = queueService.updateQueue(getLoginUser(), 1, NOT_EXISTS, NOT_EXISTS); Assert.assertEquals(Status.SUCCESS.getCode(), ((Status) result.get(Constants.STATUS)).getCode()); Mockito.when(queueMapper.existQueue(NOT_EXISTS_FINAL, null)).thenReturn(false); result = queueService.updateQueue(getLoginUser(), 1, NOT_EXISTS_FINAL, NOT_EXISTS); Assert.assertEquals(Status.SUCCESS.getCode(), ((Status) result.get(Constants.STATUS)).getCode()); Mockito.when(queueMapper.existQueue(null, NOT_EXISTS_FINAL)).thenReturn(false); result = queueService.updateQueue(getLoginUser(), 1, NOT_EXISTS, NOT_EXISTS_FINAL); Assert.assertEquals(Status.SUCCESS.getCode(), ((Status) result.get(Constants.STATUS)).getCode()); } @Test public void testVerifyQueue() {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
Throwable exception = Assertions.assertThrows(ServiceException.class, () -> queueService.verifyQueue(null, QUEUE_NAME)); String formatter = MessageFormat.format(Status.REQUEST_PARAMS_NOT_VALID_ERROR.getMsg(), Constants.QUEUE); Assertions.assertEquals(formatter, exception.getMessage()); exception = Assertions.assertThrows(ServiceException.class, () -> queueService.verifyQueue(QUEUE_NAME, null)); formatter = MessageFormat.format(Status.REQUEST_PARAMS_NOT_VALID_ERROR.getMsg(), Constants.QUEUE_NAME); Assertions.assertEquals(formatter, exception.getMessage()); Mockito.when(queueMapper.existQueue(EXISTS, null)).thenReturn(true); exception = Assertions.assertThrows(ServiceException.class, () -> queueService.verifyQueue(EXISTS, QUEUE_NAME)); formatter = MessageFormat.format(Status.QUEUE_VALUE_EXIST.getMsg(), EXISTS); Assertions.assertEquals(formatter, exception.getMessage()); Mockito.when(queueMapper.existQueue(null, EXISTS)).thenReturn(true); exception = Assertions.assertThrows(ServiceException.class, () -> queueService.verifyQueue(QUEUE, EXISTS)); formatter = MessageFormat.format(Status.QUEUE_NAME_EXIST.getMsg(), EXISTS); Assertions.assertEquals(formatter, exception.getMessage()); Result<Object> result = queueService.verifyQueue(NOT_EXISTS, NOT_EXISTS); Assert.assertEquals(result.getCode().intValue(), Status.SUCCESS.getCode()); } @Test public void testCreateQueueIfNotExists() { Queue queue; Mockito.when(queueMapper.queryQueueName(QUEUE, QUEUE_NAME)).thenReturn(getQUEUE()); queue = queueService.createQueueIfNotExists(QUEUE, QUEUE_NAME); Assert.assertEquals(getQUEUE(), queue);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,067
[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.QueueController
[[DSIP-7] [API] Suggest refactor the backend api](https://github.com/apache/dolphinscheduler/issues/10257#) #10257 ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactor org.apache.dolphinscheduler.api.controller.QueueController ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11067
https://github.com/apache/dolphinscheduler/pull/11154
877441519711c729951ba811f91cdb088d4f1e96
a50f110d3e541a5b832825facea628cddec01e9e
2022-07-20T05:55:38Z
java
2022-08-10T03:34:37Z
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
Mockito.when(queueMapper.queryQueueName(QUEUE, QUEUE_NAME)).thenReturn(null); queue = queueService.createQueueIfNotExists(QUEUE, QUEUE_NAME); Assert.assertEquals(new Queue(QUEUE_NAME, QUEUE), queue); } /** * create admin user */ private User getLoginUser() { User loginUser = new User(); loginUser.setUserType(UserType.ADMIN_USER); loginUser.setId(99999999); return loginUser; } /** * get queue */ private Queue getQUEUE() { Queue queue = new Queue(); queue.setId(1); queue.setQueue(QUEUE_NAME); queue.setQueueName(QUEUE_NAME); return queue; } private List<Queue> getQueueList() { List<Queue> queueList = new ArrayList<>(); queueList.add(getQUEUE()); return queueList; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,376
[Bug] [Task Plugin] Seatunnel Task cannot save successfully when select spark engine
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened <img width="600" alt="image" src="https://user-images.githubusercontent.com/42203474/183642799-2e1539a3-30d4-498d-b4d3-68529b3704e4.png"> <img width="606" alt="image" src="https://user-images.githubusercontent.com/42203474/183643321-8a52deb2-b253-4b65-ac90-bff9afb0cae5.png"> ### What you expected to happen I can save Seatunnel task successfully. ### How to reproduce Above ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11376
https://github.com/apache/dolphinscheduler/pull/11377
82e9c40df872b77b66e32cbd26660ccb8b56f620
03582f2e7039498d5563626b88dd8616d163c3f3
2022-08-09T12:08:24Z
java
2022-08-10T04:54:09Z
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkParameters.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.plugin.task.seatunnel.spark; import org.apache.dolphinscheduler.plugin.task.seatunnel.DeployModeEnum; import org.apache.dolphinscheduler.plugin.task.seatunnel.SeatunnelParameters; import org.apache.commons.lang3.StringUtils; import java.util.Objects; public class SeatunnelSparkParameters extends SeatunnelParameters {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,376
[Bug] [Task Plugin] Seatunnel Task cannot save successfully when select spark engine
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened <img width="600" alt="image" src="https://user-images.githubusercontent.com/42203474/183642799-2e1539a3-30d4-498d-b4d3-68529b3704e4.png"> <img width="606" alt="image" src="https://user-images.githubusercontent.com/42203474/183643321-8a52deb2-b253-4b65-ac90-bff9afb0cae5.png"> ### What you expected to happen I can save Seatunnel task successfully. ### How to reproduce Above ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11376
https://github.com/apache/dolphinscheduler/pull/11377
82e9c40df872b77b66e32cbd26660ccb8b56f620
03582f2e7039498d5563626b88dd8616d163c3f3
2022-08-09T12:08:24Z
java
2022-08-10T04:54:09Z
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkParameters.java
private DeployModeEnum deployMode; private MasterTypeEnum master; private String masterUrl; private String queue; @Override public boolean checkParameters() { return super.checkParameters() && Objects.nonNull(deployMode) && (DeployModeEnum.local != deployMode && Objects.nonNull(master)) && (DeployModeEnum.local != deployMode && (MasterTypeEnum.SPARK == master || MasterTypeEnum.MESOS == master) && StringUtils.isNotBlank(masterUrl)); } public static enum MasterTypeEnum { YARN("yarn"), LOCAL("local"), SPARK("spark://"), MESOS("mesos://"); private String command; MasterTypeEnum(String command) { this.command = command; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,376
[Bug] [Task Plugin] Seatunnel Task cannot save successfully when select spark engine
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened <img width="600" alt="image" src="https://user-images.githubusercontent.com/42203474/183642799-2e1539a3-30d4-498d-b4d3-68529b3704e4.png"> <img width="606" alt="image" src="https://user-images.githubusercontent.com/42203474/183643321-8a52deb2-b253-4b65-ac90-bff9afb0cae5.png"> ### What you expected to happen I can save Seatunnel task successfully. ### How to reproduce Above ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11376
https://github.com/apache/dolphinscheduler/pull/11377
82e9c40df872b77b66e32cbd26660ccb8b56f620
03582f2e7039498d5563626b88dd8616d163c3f3
2022-08-09T12:08:24Z
java
2022-08-10T04:54:09Z
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkParameters.java
public String getCommand() { return command; } } public DeployModeEnum getDeployMode() { return deployMode; } public void setDeployMode(DeployModeEnum deployMode) { this.deployMode = deployMode; } public MasterTypeEnum getMaster() { return master; } public void setMaster(MasterTypeEnum master) { this.master = master; } public String getMasterUrl() { return masterUrl; } public void setMasterUrl(String masterUrl) { this.masterUrl = masterUrl; } public String getQueue() { return queue; } public void setQueue(String queue) { this.queue = queue; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,394
[Improvement][Task Plugin] Remove Passed Parameter --queue in Seatunnel Task Plugin
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Remove --queue parameter because it passed. ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11394
https://github.com/apache/dolphinscheduler/pull/11395
b81574ecf23b02787f996deaa9572f380b794d66
b3919d30e77f622e7b82713a293f262b6effbbca
2022-08-10T07:41:49Z
java
2022-08-10T12:17:16Z
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkParameters.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.plugin.task.seatunnel.spark; import org.apache.dolphinscheduler.plugin.task.seatunnel.DeployModeEnum; import org.apache.dolphinscheduler.plugin.task.seatunnel.SeatunnelParameters; import org.apache.commons.lang3.StringUtils; import java.util.Objects; public class SeatunnelSparkParameters extends SeatunnelParameters {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,394
[Improvement][Task Plugin] Remove Passed Parameter --queue in Seatunnel Task Plugin
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Remove --queue parameter because it passed. ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11394
https://github.com/apache/dolphinscheduler/pull/11395
b81574ecf23b02787f996deaa9572f380b794d66
b3919d30e77f622e7b82713a293f262b6effbbca
2022-08-10T07:41:49Z
java
2022-08-10T12:17:16Z
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkParameters.java
private DeployModeEnum deployMode; private MasterTypeEnum master; private String masterUrl; private String queue; @Override public boolean checkParameters() { boolean result = super.checkParameters() && Objects.nonNull(deployMode); if (result && DeployModeEnum.local != deployMode) { result = Objects.nonNull(master); if (result && (MasterTypeEnum.SPARK == master || MasterTypeEnum.MESOS == master)) { result = StringUtils.isNotBlank(masterUrl); } } return result; } public static enum MasterTypeEnum { YARN("yarn"), LOCAL("local"), SPARK("spark://"), MESOS("mesos://"); private String command; MasterTypeEnum(String command) { this.command = command; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,394
[Improvement][Task Plugin] Remove Passed Parameter --queue in Seatunnel Task Plugin
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Remove --queue parameter because it passed. ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11394
https://github.com/apache/dolphinscheduler/pull/11395
b81574ecf23b02787f996deaa9572f380b794d66
b3919d30e77f622e7b82713a293f262b6effbbca
2022-08-10T07:41:49Z
java
2022-08-10T12:17:16Z
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkParameters.java
public String getCommand() { return command; } } public DeployModeEnum getDeployMode() { return deployMode; } public void setDeployMode(DeployModeEnum deployMode) { this.deployMode = deployMode; } public MasterTypeEnum getMaster() { return master; } public void setMaster(MasterTypeEnum master) { this.master = master; } public String getMasterUrl() { return masterUrl; } public void setMasterUrl(String masterUrl) { this.masterUrl = masterUrl; } public String getQueue() { return queue; } public void setQueue(String queue) { this.queue = queue; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,394
[Improvement][Task Plugin] Remove Passed Parameter --queue in Seatunnel Task Plugin
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Remove --queue parameter because it passed. ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11394
https://github.com/apache/dolphinscheduler/pull/11395
b81574ecf23b02787f996deaa9572f380b794d66
b3919d30e77f622e7b82713a293f262b6effbbca
2022-08-10T07:41:49Z
java
2022-08-10T12:17:16Z
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkTask.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.plugin.task.seatunnel.spark; import static org.apache.dolphinscheduler.plugin.task.seatunnel.Constants.DEPLOY_MODE_OPTIONS; import static org.apache.dolphinscheduler.plugin.task.seatunnel.Constants.MASTER_OPTIONS; import static org.apache.dolphinscheduler.plugin.task.seatunnel.Constants.QUEUE_OPTIONS; import org.apache.dolphinscheduler.plugin.task.api.TaskExecutionContext; import org.apache.dolphinscheduler.plugin.task.seatunnel.DeployModeEnum; import org.apache.dolphinscheduler.plugin.task.seatunnel.SeatunnelTask; import org.apache.dolphinscheduler.plugin.task.seatunnel.spark.SeatunnelSparkParameters.MasterTypeEnum; import org.apache.dolphinscheduler.spi.utils.JSONUtils; import org.apache.commons.lang3.StringUtils; import java.util.List; public class SeatunnelSparkTask extends SeatunnelTask {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,394
[Improvement][Task Plugin] Remove Passed Parameter --queue in Seatunnel Task Plugin
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Remove --queue parameter because it passed. ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11394
https://github.com/apache/dolphinscheduler/pull/11395
b81574ecf23b02787f996deaa9572f380b794d66
b3919d30e77f622e7b82713a293f262b6effbbca
2022-08-10T07:41:49Z
java
2022-08-10T12:17:16Z
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkTask.java
private SeatunnelSparkParameters seatunnelParameters; /** * constructor *
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,394
[Improvement][Task Plugin] Remove Passed Parameter --queue in Seatunnel Task Plugin
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Remove --queue parameter because it passed. ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11394
https://github.com/apache/dolphinscheduler/pull/11395
b81574ecf23b02787f996deaa9572f380b794d66
b3919d30e77f622e7b82713a293f262b6effbbca
2022-08-10T07:41:49Z
java
2022-08-10T12:17:16Z
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkTask.java
* @param taskExecutionContext taskExecutionContext */ public SeatunnelSparkTask(TaskExecutionContext taskExecutionContext) { super(taskExecutionContext); } @Override public void init() { seatunnelParameters = JSONUtils.parseObject(taskExecutionContext.getTaskParams(), SeatunnelSparkParameters.class); setSeatunnelParameters(seatunnelParameters); super.init(); } @Override public List<String> buildOptions() throws Exception { List<String> args = super.buildOptions(); args.add(DEPLOY_MODE_OPTIONS); args.add(seatunnelParameters.getDeployMode().getCommand()); MasterTypeEnum master = DeployModeEnum.local == seatunnelParameters.getDeployMode() ? MasterTypeEnum.LOCAL : seatunnelParameters.getMaster(); args.add(MASTER_OPTIONS); args.add(master.getCommand()); if (MasterTypeEnum.SPARK.equals(master) || MasterTypeEnum.MESOS.equals(master)) { args.add(seatunnelParameters.getMasterUrl()); } if (StringUtils.isNotBlank(seatunnelParameters.getQueue())) { args.add(QUEUE_OPTIONS); args.add(seatunnelParameters.getQueue()); } return args; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.api.enums; import java.util.Locale; import java.util.Optional; import org.springframework.context.i18n.LocaleContextHolder; /** * status enum // todo #4855 One category one interval */ public enum Status { SUCCESS(0, "success", "成功"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
INTERNAL_SERVER_ERROR_ARGS(10000, "Internal Server Error: {0}", "服务端异常: {0}"), REQUEST_PARAMS_NOT_VALID_ERROR(10001, "request parameter {0} is not valid", "请求参数[{0}]无效"), TASK_TIMEOUT_PARAMS_ERROR(10002, "task timeout parameter is not valid", "任务超时参数无效"), USER_NAME_EXIST(10003, "user name already exists", "用户名已存在"), USER_NAME_NULL(10004, "user name is null", "用户名不能为空"), HDFS_OPERATION_ERROR(10006, "hdfs operation error", "hdfs操作错误"), TASK_INSTANCE_NOT_FOUND(10008, "task instance not found", "任务实例不存在"), OS_TENANT_CODE_EXIST(10009, "os tenant code {0} already exists", "操作系统租户[{0}]已存在"), USER_NOT_EXIST(10010, "user {0} not exists", "用户[{0}]不存在"), ALERT_GROUP_NOT_EXIST(10011, "alarm group not found", "告警组不存在"), ALERT_GROUP_EXIST(10012, "alarm group already exists", "告警组名称已存在"), USER_NAME_PASSWD_ERROR(10013, "user name or password error", "用户名或密码错误"), LOGIN_SESSION_FAILED(10014, "create session failed!", "创建session失败"), DATASOURCE_EXIST(10015, "data source name already exists", "数据源名称已存在"), DATASOURCE_CONNECT_FAILED(10016, "data source connection failed", "建立数据源连接失败"), TENANT_NOT_EXIST(10017, "tenant not exists", "租户不存在"), PROJECT_NOT_FOUND(10018, "project {0} not found ", "项目[{0}]不存在"), PROJECT_ALREADY_EXISTS(10019, "project {0} already exists", "项目名称[{0}]已存在"), TASK_INSTANCE_NOT_EXISTS(10020, "task instance {0} does not exist", "任务实例[{0}]不存在"), TASK_INSTANCE_NOT_SUB_WORKFLOW_INSTANCE(10021, "task instance {0} is not sub process instance", "任务实例[{0}]不是子流程实例"), SCHEDULE_CRON_NOT_EXISTS(10022, "scheduler crontab {0} does not exist", "调度配置定时表达式[{0}]不存在"), SCHEDULE_CRON_ONLINE_FORBID_UPDATE(10023, "online status does not allow update operations", "调度配置上线状态不允许修改"), SCHEDULE_CRON_CHECK_FAILED(10024, "scheduler crontab expression validation failure: {0}", "调度配置定时表达式验证失败: {0}"), MASTER_NOT_EXISTS(10025, "master does not exist", "无可用master节点"), SCHEDULE_STATUS_UNKNOWN(10026, "unknown status: {0}", "未知状态: {0}"), CREATE_ALERT_GROUP_ERROR(10027, "create alert group error", "创建告警组错误"), QUERY_ALL_ALERTGROUP_ERROR(10028, "query all alertgroup error", "查询告警组错误"), LIST_PAGING_ALERT_GROUP_ERROR(10029, "list paging alert group error", "分页查询告警组错误"), UPDATE_ALERT_GROUP_ERROR(10030, "update alert group error", "更新告警组错误"), DELETE_ALERT_GROUP_ERROR(10031, "delete alert group error", "删除告警组错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
ALERT_GROUP_GRANT_USER_ERROR(10032, "alert group grant user error", "告警组授权用户错误"), CREATE_DATASOURCE_ERROR(10033, "create datasource error", "创建数据源错误"), UPDATE_DATASOURCE_ERROR(10034, "update datasource error", "更新数据源错误"), QUERY_DATASOURCE_ERROR(10035, "query datasource error", "查询数据源错误"), CONNECT_DATASOURCE_FAILURE(10036, "connect datasource failure", "建立数据源连接失败"), CONNECTION_TEST_FAILURE(10037, "connection test failure", "测试数据源连接失败"), DELETE_DATA_SOURCE_FAILURE(10038, "delete data source failure", "删除数据源失败"), VERIFY_DATASOURCE_NAME_FAILURE(10039, "verify datasource name failure", "验证数据源名称失败"), UNAUTHORIZED_DATASOURCE(10040, "unauthorized datasource", "未经授权的数据源"), AUTHORIZED_DATA_SOURCE(10041, "authorized data source", "授权数据源失败"), LOGIN_SUCCESS(10042, "login success", "登录成功"), USER_LOGIN_FAILURE(10043, "user login failure", "用户登录失败"), LIST_WORKERS_ERROR(10044, "list workers error", "查询worker列表错误"), LIST_MASTERS_ERROR(10045, "list masters error", "查询master列表错误"), UPDATE_PROJECT_ERROR(10046, "update project error", "更新项目信息错误"), QUERY_PROJECT_DETAILS_BY_CODE_ERROR(10047, "query project details by code error", "查询项目详细信息错误"), CREATE_PROJECT_ERROR(10048, "create project error", "创建项目错误"), LOGIN_USER_QUERY_PROJECT_LIST_PAGING_ERROR(10049, "login user query project list paging error", "分页查询项目列表错误"), DELETE_PROJECT_ERROR(10050, "delete project error", "删除项目错误"), QUERY_UNAUTHORIZED_PROJECT_ERROR(10051, "query unauthorized project error", "查询未授权项目错误"), QUERY_AUTHORIZED_PROJECT(10052, "query authorized project", "查询授权项目错误"), QUERY_QUEUE_LIST_ERROR(10053, "query queue list error", "查询队列列表错误"), CREATE_RESOURCE_ERROR(10054, "create resource error", "创建资源错误"), UPDATE_RESOURCE_ERROR(10055, "update resource error", "更新资源错误"), QUERY_RESOURCES_LIST_ERROR(10056, "query resources list error", "查询资源列表错误"), QUERY_RESOURCES_LIST_PAGING(10057, "query resources list paging", "分页查询资源列表错误"), DELETE_RESOURCE_ERROR(10058, "delete resource error", "删除资源错误"), VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR(10059, "verify resource by name and type error", "资源名称或类型验证错误"), VIEW_RESOURCE_FILE_ON_LINE_ERROR(10060, "view resource file online error", "查看资源文件错误"), CREATE_RESOURCE_FILE_ON_LINE_ERROR(10061, "create resource file online error", "创建资源文件错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
RESOURCE_FILE_IS_EMPTY(10062, "resource file is empty", "资源文件内容不能为空"), EDIT_RESOURCE_FILE_ON_LINE_ERROR(10063, "edit resource file online error", "更新资源文件错误"), DOWNLOAD_RESOURCE_FILE_ERROR(10064, "download resource file error", "下载资源文件错误"), CREATE_UDF_FUNCTION_ERROR(10065, "create udf function error", "创建UDF函数错误"), VIEW_UDF_FUNCTION_ERROR(10066, "view udf function error", "查询UDF函数错误"), UPDATE_UDF_FUNCTION_ERROR(10067, "update udf function error", "更新UDF函数错误"), QUERY_UDF_FUNCTION_LIST_PAGING_ERROR(10068, "query udf function list paging error", "分页查询UDF函数列表错误"), QUERY_DATASOURCE_BY_TYPE_ERROR(10069, "query datasource by type error", "查询数据源信息错误"), VERIFY_UDF_FUNCTION_NAME_ERROR(10070, "verify udf function name error", "UDF函数名称验证错误"), DELETE_UDF_FUNCTION_ERROR(10071, "delete udf function error", "删除UDF函数错误"), AUTHORIZED_FILE_RESOURCE_ERROR(10072, "authorized file resource error", "授权资源文件错误"), AUTHORIZE_RESOURCE_TREE(10073, "authorize resource tree display error", "授权资源目录树错误"), UNAUTHORIZED_UDF_FUNCTION_ERROR(10074, "unauthorized udf function error", "查询未授权UDF函数错误"), AUTHORIZED_UDF_FUNCTION_ERROR(10075, "authorized udf function error", "授权UDF函数错误"), CREATE_SCHEDULE_ERROR(10076, "create schedule error", "创建调度配置错误"), UPDATE_SCHEDULE_ERROR(10077, "update schedule error", "更新调度配置错误"), PUBLISH_SCHEDULE_ONLINE_ERROR(10078, "publish schedule online error", "上线调度配置错误"), OFFLINE_SCHEDULE_ERROR(10079, "offline schedule error", "下线调度配置错误"), QUERY_SCHEDULE_LIST_PAGING_ERROR(10080, "query schedule list paging error", "分页查询调度配置列表错误"), QUERY_SCHEDULE_LIST_ERROR(10081, "query schedule list error", "查询调度配置列表错误"), QUERY_TASK_LIST_PAGING_ERROR(10082, "query task list paging error", "分页查询任务列表错误"), QUERY_TASK_RECORD_LIST_PAGING_ERROR(10083, "query task record list paging error", "分页查询任务记录错误"), CREATE_TENANT_ERROR(10084, "create tenant error", "创建租户错误"), QUERY_TENANT_LIST_PAGING_ERROR(10085, "query tenant list paging error", "分页查询租户列表错误"), QUERY_TENANT_LIST_ERROR(10086, "query tenant list error", "查询租户列表错误"), UPDATE_TENANT_ERROR(10087, "update tenant error", "更新租户错误"), DELETE_TENANT_BY_ID_ERROR(10088, "delete tenant by id error", "删除租户错误"), VERIFY_OS_TENANT_CODE_ERROR(10089, "verify os tenant code error", "操作系统租户验证错误"), CREATE_USER_ERROR(10090, "create user error", "创建用户错误"), QUERY_USER_LIST_PAGING_ERROR(10091, "query user list paging error", "分页查询用户列表错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
UPDATE_USER_ERROR(10092, "update user error", "更新用户错误"), DELETE_USER_BY_ID_ERROR(10093, "delete user by id error", "删除用户错误"), GRANT_PROJECT_ERROR(10094, "grant project error", "授权项目错误"), GRANT_RESOURCE_ERROR(10095, "grant resource error", "授权资源错误"), GRANT_UDF_FUNCTION_ERROR(10096, "grant udf function error", "授权UDF函数错误"), GRANT_DATASOURCE_ERROR(10097, "grant datasource error", "授权数据源错误"), GET_USER_INFO_ERROR(10098, "get user info error", "获取用户信息错误"), USER_LIST_ERROR(10099, "user list error", "查询用户列表错误"), VERIFY_USERNAME_ERROR(10100, "verify username error", "用户名验证错误"), UNAUTHORIZED_USER_ERROR(10101, "unauthorized user error", "查询未授权用户错误"), AUTHORIZED_USER_ERROR(10102, "authorized user error", "查询授权用户错误"), QUERY_TASK_INSTANCE_LOG_ERROR(10103, "view task instance log error", "查询任务实例日志错误"), DOWNLOAD_TASK_INSTANCE_LOG_FILE_ERROR(10104, "download task instance log file error", "下载任务日志文件错误"), CREATE_PROCESS_DEFINITION_ERROR(10105, "create process definition error", "创建工作流错误"), VERIFY_PROCESS_DEFINITION_NAME_UNIQUE_ERROR(10106, "verify process definition name unique error", "工作流定义名称验证错误"), UPDATE_PROCESS_DEFINITION_ERROR(10107, "update process definition error", "更新工作流定义错误"), RELEASE_PROCESS_DEFINITION_ERROR(10108, "release process definition error", "上线工作流错误"), QUERY_DETAIL_OF_PROCESS_DEFINITION_ERROR(10109, "query detail of process definition error", "查询工作流详细信息错误"), QUERY_PROCESS_DEFINITION_LIST(10110, "query process definition list", "查询工作流列表错误"), ENCAPSULATION_TREEVIEW_STRUCTURE_ERROR(10111, "encapsulation treeview structure error", "查询工作流树形图数据错误"), GET_TASKS_LIST_BY_PROCESS_DEFINITION_ID_ERROR(10112, "get tasks list by process definition id error", "查询工作流定义节点信息错误"), QUERY_PROCESS_INSTANCE_LIST_PAGING_ERROR(10113, "query process instance list paging error", "分页查询工作流实例列表错误"), QUERY_TASK_LIST_BY_PROCESS_INSTANCE_ID_ERROR(10114, "query task list by process instance id error", "查询任务实例列表错误"), UPDATE_PROCESS_INSTANCE_ERROR(10115, "update process instance error", "更新工作流实例错误"), QUERY_PROCESS_INSTANCE_BY_ID_ERROR(10116, "query process instance by id error", "查询工作流实例错误"), DELETE_PROCESS_INSTANCE_BY_ID_ERROR(10117, "delete process instance by id error", "删除工作流实例错误"), QUERY_SUB_PROCESS_INSTANCE_DETAIL_INFO_BY_TASK_ID_ERROR(10118, "query sub process instance detail info by task id error", "查询子流程任务实例错误"), QUERY_PARENT_PROCESS_INSTANCE_DETAIL_INFO_BY_SUB_PROCESS_INSTANCE_ID_ERROR(10119, "query parent process instance detail info by sub process instance id error", "查询子流程该工作流实例错误"), QUERY_PROCESS_INSTANCE_ALL_VARIABLES_ERROR(10120, "query process instance all variables error", "查询工作流自定义变量信息错误"), ENCAPSULATION_PROCESS_INSTANCE_GANTT_STRUCTURE_ERROR(10121, "encapsulation process instance gantt structure error", "查询工作流实例甘特图数据错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
QUERY_PROCESS_DEFINITION_LIST_PAGING_ERROR(10122, "query process definition list paging error", "分页查询工作流定义列表错误"), SIGN_OUT_ERROR(10123, "sign out error", "退出错误"), OS_TENANT_CODE_HAS_ALREADY_EXISTS(10124, "os tenant code has already exists", "操作系统租户已存在"), IP_IS_EMPTY(10125, "ip is empty", "IP地址不能为空"), SCHEDULE_CRON_REALEASE_NEED_NOT_CHANGE(10126, "schedule release is already {0}", "调度配置上线错误[{0}]"), CREATE_QUEUE_ERROR(10127, "create queue error", "创建队列错误"), QUEUE_NOT_EXIST(10128, "queue {0} not exists", "队列ID[{0}]不存在"), QUEUE_VALUE_EXIST(10129, "queue value {0} already exists", "队列值[{0}]已存在"), QUEUE_NAME_EXIST(10130, "queue name {0} already exists", "队列名称[{0}]已存在"), UPDATE_QUEUE_ERROR(10131, "update queue error", "更新队列信息错误"), NEED_NOT_UPDATE_QUEUE(10132, "no content changes, no updates are required", "数据未变更,不需要更新队列信息"), VERIFY_QUEUE_ERROR(10133, "verify queue error", "验证队列信息错误"), NAME_NULL(10134, "name must be not null", "名称不能为空"), NAME_EXIST(10135, "name {0} already exists", "名称[{0}]已存在"), SAVE_ERROR(10136, "save error", "保存错误"), DELETE_PROJECT_ERROR_DEFINES_NOT_NULL(10137, "please delete the process definitions in project first!", "请先删除全部工作流定义"), BATCH_DELETE_PROCESS_INSTANCE_BY_IDS_ERROR(10117, "batch delete process instance by ids {0} error", "批量删除工作流实例错误: {0}"), PREVIEW_SCHEDULE_ERROR(10139, "preview schedule error", "预览调度配置错误"), PARSE_TO_CRON_EXPRESSION_ERROR(10140, "parse cron to cron expression error", "解析调度表达式错误"), SCHEDULE_START_TIME_END_TIME_SAME(10141, "The start time must not be the same as the end", "开始时间不能和结束时间一样"), DELETE_TENANT_BY_ID_FAIL(10142, "delete tenant by id fail, for there are {0} process instances in executing using it", "删除租户失败,有[{0}]个运行中的工作流实例正在使用"), DELETE_TENANT_BY_ID_FAIL_DEFINES(10143, "delete tenant by id fail, for there are {0} process definitions using it", "删除租户失败,有[{0}]个工作流定义正在使用"), DELETE_TENANT_BY_ID_FAIL_USERS(10144, "delete tenant by id fail, for there are {0} users using it", "删除租户失败,有[{0}]个用户正在使用"), DELETE_WORKER_GROUP_BY_ID_FAIL(10145, "delete worker group by id fail, for there are {0} process instances in executing using it", "删除Worker分组失败,有[{0}]个运行中的工作流实例正在使用"), QUERY_WORKER_GROUP_FAIL(10146, "query worker group fail ", "查询worker分组失败"), DELETE_WORKER_GROUP_FAIL(10147, "delete worker group fail ", "删除worker分组失败"), USER_DISABLED(10148, "The current user is disabled", "当前用户已停用"), COPY_PROCESS_DEFINITION_ERROR(10149, "copy process definition from {0} to {1} error : {2}", "从{0}复制工作流到{1}错误 : {2}"), MOVE_PROCESS_DEFINITION_ERROR(10150, "move process definition from {0} to {1} error : {2}", "从{0}移动工作流到{1}错误 : {2}"), SWITCH_PROCESS_DEFINITION_VERSION_ERROR(10151, "Switch process definition version error", "切换工作流版本出错"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
SWITCH_PROCESS_DEFINITION_VERSION_NOT_EXIST_PROCESS_DEFINITION_ERROR(10152 , "Switch process definition version error: not exists process definition, [process definition id {0}]", "切换工作流版本出错:工作流不存在,[工作流id {0}]"), SWITCH_PROCESS_DEFINITION_VERSION_NOT_EXIST_PROCESS_DEFINITION_VERSION_ERROR(10153 , "Switch process definition version error: not exists process definition version, [process definition id {0}] [version number {1}]", "切换工作流版本出错:工作流版本信息不存在,[工作流id {0}] [版本号 {1}]"), QUERY_PROCESS_DEFINITION_VERSIONS_ERROR(10154, "query process definition versions error", "查询工作流历史版本信息出错"), DELETE_PROCESS_DEFINITION_VERSION_ERROR(10156, "delete process definition version error", "删除工作流历史版本出错"), QUERY_USER_CREATED_PROJECT_ERROR(10157, "query user created project error error", "查询用户创建的项目错误"), PROCESS_DEFINITION_CODES_IS_EMPTY(10158, "process definition codes is empty", "工作流CODES不能为空"), BATCH_COPY_PROCESS_DEFINITION_ERROR(10159, "batch copy process definition error", "复制工作流错误"), BATCH_MOVE_PROCESS_DEFINITION_ERROR(10160, "batch move process definition error", "移动工作流错误"), QUERY_WORKFLOW_LINEAGE_ERROR(10161, "query workflow lineage error", "查询血缘失败"), QUERY_AUTHORIZED_AND_USER_CREATED_PROJECT_ERROR(10162, "query authorized and user created project error error", "查询授权的和用户创建的项目错误"), DELETE_PROCESS_DEFINITION_EXECUTING_FAIL(10163, "delete process definition by code fail, for there are {0} process instances in executing using it", "删除工作流定义失败,有[{0}]个运行中的工作流实例正在使用"), CHECK_OS_TENANT_CODE_ERROR(10164, "Tenant code invalid, should follow linux's users naming conventions", "非法的租户名,需要遵守 Linux 用户命名规范"), FORCE_TASK_SUCCESS_ERROR(10165, "force task success error", "强制成功任务实例错误"), TASK_INSTANCE_STATE_OPERATION_ERROR(10166, "the status of task instance {0} is {1},Cannot perform force success operation", "任务实例[{0}]的状态是[{1}],无法执行强制成功操作"), DATASOURCE_TYPE_NOT_EXIST(10167, "data source type not exist", "数据源类型不存在"), PROCESS_DEFINITION_NAME_EXIST(10168, "process definition name {0} already exists", "工作流定义名称[{0}]已存在"), DATASOURCE_DB_TYPE_ILLEGAL(10169, "datasource type illegal", "数据源类型参数不合法"), DATASOURCE_PORT_ILLEGAL(10170, "datasource port illegal", "数据源端口参数不合法"), DATASOURCE_OTHER_PARAMS_ILLEGAL(10171, "datasource other params illegal", "数据源其他参数不合法"), DATASOURCE_NAME_ILLEGAL(10172, "datasource name illegal", "数据源名称不合法"), DATASOURCE_HOST_ILLEGAL(10173, "datasource host illegal", "数据源HOST不合法"), DELETE_WORKER_GROUP_NOT_EXIST(10174, "delete worker group not exist ", "删除worker分组不存在"), CREATE_WORKER_GROUP_FORBIDDEN_IN_DOCKER(10175, "create worker group forbidden in docker ", "创建worker分组在docker中禁止"), DELETE_WORKER_GROUP_FORBIDDEN_IN_DOCKER(10176, "delete worker group forbidden in docker ", "删除worker分组在docker中禁止"), WORKER_ADDRESS_INVALID(10177, "worker address {0} invalid", "worker地址[{0}]无效"), QUERY_WORKER_ADDRESS_LIST_FAIL(10178, "query worker address list fail ", "查询worker地址列表失败"), TRANSFORM_PROJECT_OWNERSHIP(10179, "Please transform project ownership [{0}]", "请先转移项目所有权[{0}]"), QUERY_ALERT_GROUP_ERROR(10180, "query alert group error", "查询告警组错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
CURRENT_LOGIN_USER_TENANT_NOT_EXIST(10181, "the tenant of the currently login user is not specified", "未指定当前登录用户的租户"), REVOKE_PROJECT_ERROR(10182, "revoke project error", "撤销项目授权错误"), QUERY_AUTHORIZED_USER(10183, "query authorized user error", "查询拥有项目权限的用户错误"), PROJECT_NOT_EXIST(10190, "This project was not found. Please refresh page.", "该项目不存在,请刷新页面"), TASK_INSTANCE_HOST_IS_NULL(10191, "task instance host is null", "任务实例host为空"), QUERY_EXECUTING_WORKFLOW_ERROR(10192, "query executing workflow error", "查询运行的工作流实例错误"), DELETE_PROCESS_DEFINITION_USE_BY_OTHER_FAIL(10193, "delete process definition fail, cause used by other tasks: {0}", "删除工作流定时失败,被其他任务引用:{0}"), DELETE_TASK_USE_BY_OTHER_FAIL(10194, "delete task {0} fail, cause used by other tasks: {1}", "删除任务 {0} 失败,被其他任务引用:{1}"), TASK_WITH_DEPENDENT_ERROR(10195, "task used in other tasks", "删除被其他任务引用"), TASK_SAVEPOINT_ERROR(10196, "task savepoint error", "任务实例savepoint错误"), TASK_STOP_ERROR(10197, "task stop error", "任务实例停止错误"), UDF_FUNCTION_NOT_EXIST(20001, "UDF function not found", "UDF函数不存在"), UDF_FUNCTION_EXISTS(20002, "UDF function already exists", "UDF函数已存在"), RESOURCE_NOT_EXIST(20004, "resource not exist", "资源不存在"), RESOURCE_EXIST(20005, "resource already exists", "资源已存在"), RESOURCE_SUFFIX_NOT_SUPPORT_VIEW(20006, "resource suffix do not support online viewing", "资源文件后缀不支持查看"), RESOURCE_SIZE_EXCEED_LIMIT(20007, "upload resource file size exceeds limit", "上传资源文件大小超过限制"), RESOURCE_SUFFIX_FORBID_CHANGE(20008, "resource suffix not allowed to be modified", "资源文件后缀不支持修改"), UDF_RESOURCE_SUFFIX_NOT_JAR(20009, "UDF resource suffix name must be jar", "UDF资源文件后缀名只支持[jar]"), HDFS_COPY_FAIL(20010, "hdfs copy {0} -> {1} fail", "hdfs复制失败:[{0}] -> [{1}]"), RESOURCE_FILE_EXIST(20011, "resource file {0} already exists in hdfs,please delete it or change name!", "资源文件[{0}]在hdfs中已存在,请删除或修改资源名"), RESOURCE_FILE_NOT_EXIST(20012, "resource file {0} not exists !", "资源文件[{0}]不存在"), UDF_RESOURCE_IS_BOUND(20013, "udf resource file is bound by UDF functions:{0}", "udf函数绑定了资源文件[{0}]"), RESOURCE_IS_USED(20014, "resource file is used by process definition", "资源文件被上线的流程定义使用了"), PARENT_RESOURCE_NOT_EXIST(20015, "parent resource not exist", "父资源文件不存在"), RESOURCE_NOT_EXIST_OR_NO_PERMISSION(20016, "resource not exist or no permission,please view the task node and remove error resource", "请检查任务节点并移除无权限或者已删除的资源"), RESOURCE_IS_AUTHORIZED(20017, "resource is authorized to user {0},suffix not allowed to be modified", "资源文件已授权其他用户[{0}],后缀不允许修改"), USER_NO_OPERATION_PERM(30001, "user has no operation privilege", "当前用户没有操作权限"), USER_NO_OPERATION_PROJECT_PERM(30002, "user {0} is not has project {1} permission", "当前用户[{0}]没有[{1}]项目的操作权限"), PROCESS_INSTANCE_NOT_EXIST(50001, "process instance {0} does not exist", "工作流实例[{0}]不存在"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
PROCESS_INSTANCE_EXIST(50002, "process instance {0} already exists", "工作流实例[{0}]已存在"), PROCESS_DEFINE_NOT_EXIST(50003, "process definition {0} does not exist", "工作流定义[{0}]不存在"), PROCESS_DEFINE_NOT_RELEASE(50004, "process definition {0} process version {1} not on line", "工作流定义[{0}] 工作流版本[{1}]不是上线状态"), SUB_PROCESS_DEFINE_NOT_RELEASE(50004, "exist sub process definition not on line", "存在子工作流定义不是上线状态"), PROCESS_INSTANCE_ALREADY_CHANGED(50005, "the status of process instance {0} is already {1}", "工作流实例[{0}]的状态已经是[{1}]"), PROCESS_INSTANCE_STATE_OPERATION_ERROR(50006, "the status of process instance {0} is {1},Cannot perform {2} operation", "工作流实例[{0}]的状态是[{1}],无法执行[{2}]操作"), SUB_PROCESS_INSTANCE_NOT_EXIST(50007, "the task belong to process instance does not exist", "子工作流实例不存在"), PROCESS_DEFINE_NOT_ALLOWED_EDIT(50008, "process definition {0} does not allow edit", "工作流定义[{0}]不允许修改"), PROCESS_INSTANCE_EXECUTING_COMMAND(50009, "process instance {0} is executing the command, please wait ...", "工作流实例[{0}]正在执行命令,请稍等..."), PROCESS_INSTANCE_NOT_SUB_PROCESS_INSTANCE(50010, "process instance {0} is not sub process instance", "工作流实例[{0}]不是子工作流实例"), TASK_INSTANCE_STATE_COUNT_ERROR(50011, "task instance state count error", "查询各状态任务实例数错误"), COUNT_PROCESS_INSTANCE_STATE_ERROR(50012, "count process instance state error", "查询各状态流程实例数错误"), COUNT_PROCESS_DEFINITION_USER_ERROR(50013, "count process definition user error", "查询各用户流程定义数错误"), START_PROCESS_INSTANCE_ERROR(50014, "start process instance error", "运行工作流实例错误"), BATCH_START_PROCESS_INSTANCE_ERROR(50014, "batch start process instance error: {0}", "批量运行工作流实例错误: {0}"), PROCESS_INSTANCE_ERROR(50014, "process instance delete error: {0}", "工作流实例删除[{0}]错误"), EXECUTE_PROCESS_INSTANCE_ERROR(50015, "execute process instance error", "操作工作流实例错误"), CHECK_PROCESS_DEFINITION_ERROR(50016, "check process definition error", "工作流定义错误"), QUERY_RECIPIENTS_AND_COPYERS_BY_PROCESS_DEFINITION_ERROR(50017, "query recipients and copyers by process definition error", "查询收件人和抄送人错误"), DATA_IS_NOT_VALID(50017, "data {0} not valid", "数据[{0}]无效"), DATA_IS_NULL(50018, "data {0} is null", "数据[{0}]不能为空"), PROCESS_NODE_HAS_CYCLE(50019, "process node has cycle", "流程节点间存在循环依赖"), PROCESS_NODE_S_PARAMETER_INVALID(50020, "process node {0} parameter invalid", "流程节点[{0}]参数无效"), PROCESS_DEFINE_STATE_ONLINE(50021, "process definition [{0}] is already on line", "工作流定义[{0}]已上线"), DELETE_PROCESS_DEFINE_BY_CODE_ERROR(50022, "delete process definition by code error", "删除工作流定义错误"), SCHEDULE_CRON_STATE_ONLINE(50023, "the status of schedule {0} is already on line", "调度配置[{0}]已上线"), DELETE_SCHEDULE_CRON_BY_ID_ERROR(50024, "delete schedule by id error", "删除调度配置错误"), BATCH_DELETE_PROCESS_DEFINE_ERROR(50025, "batch delete process definition error", "批量删除工作流定义错误"), BATCH_DELETE_PROCESS_DEFINE_BY_CODES_ERROR(50026, "batch delete process definition by codes {0} error", "批量删除工作流定义[{0}]错误"), DELETE_PROCESS_DEFINE_BY_CODES_ERROR(50026, "delete process definition by codes {0} error", "删除工作流定义[{0}]错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
TENANT_NOT_SUITABLE(50027, "there is not any tenant suitable, please choose a tenant available.", "没有合适的租户,请选择可用的租户"), EXPORT_PROCESS_DEFINE_BY_ID_ERROR(50028, "export process definition by id error", "导出工作流定义错误"), BATCH_EXPORT_PROCESS_DEFINE_BY_IDS_ERROR(50028, "batch export process definition by ids error", "批量导出工作流定义错误"), IMPORT_PROCESS_DEFINE_ERROR(50029, "import process definition error", "导入工作流定义错误"), TASK_DEFINE_NOT_EXIST(50030, "task definition [{0}] does not exist", "任务定义[{0}]不存在"), CREATE_PROCESS_TASK_RELATION_ERROR(50032, "create process task relation error", "创建工作流任务关系错误"), PROCESS_TASK_RELATION_NOT_EXIST(50033, "process task relation [{0}] does not exist", "工作流任务关系[{0}]不存在"), PROCESS_TASK_RELATION_EXIST(50034, "process task relation is already exist, processCode:[{0}]", "工作流任务关系已存在, processCode:[{0}]"), PROCESS_DAG_IS_EMPTY(50035, "process dag is empty", "工作流dag是空"), CHECK_PROCESS_TASK_RELATION_ERROR(50036, "check process task relation error", "工作流任务关系参数错误"), CREATE_TASK_DEFINITION_ERROR(50037, "create task definition error", "创建任务错误"), UPDATE_TASK_DEFINITION_ERROR(50038, "update task definition error", "更新任务定义错误"), QUERY_TASK_DEFINITION_VERSIONS_ERROR(50039, "query task definition versions error", "查询任务历史版本信息出错"), SWITCH_TASK_DEFINITION_VERSION_ERROR(50040, "Switch task definition version error", "切换任务版本出错"), DELETE_TASK_DEFINITION_VERSION_ERROR(50041, "delete task definition version error", "删除任务历史版本出错"), DELETE_TASK_DEFINE_BY_CODE_ERROR(50042, "delete task definition by code error", "删除任务定义错误"), QUERY_DETAIL_OF_TASK_DEFINITION_ERROR(50043, "query detail of task definition error", "查询任务详细信息错误"), QUERY_TASK_DEFINITION_LIST_PAGING_ERROR(50044, "query task definition list paging error", "分页查询任务定义列表错误"), TASK_DEFINITION_NAME_EXISTED(50045, "task definition name [{0}] already exists", "任务定义名称[{0}]已经存在"), RELEASE_TASK_DEFINITION_ERROR(50046, "release task definition error", "上线任务错误"), MOVE_PROCESS_TASK_RELATION_ERROR(50047, "move process task relation error", "移动任务到其他工作流错误"), DELETE_TASK_PROCESS_RELATION_ERROR(50048, "delete process task relation error", "删除工作流任务关系错误"), QUERY_TASK_PROCESS_RELATION_ERROR(50049, "query process task relation error", "查询工作流任务关系错误"), TASK_DEFINE_STATE_ONLINE(50050, "task definition [{0}] is already on line", "任务定义[{0}]已上线"), TASK_HAS_DOWNSTREAM(50051, "Task exists downstream [{0}] dependence", "任务存在下游[{0}]依赖"), TASK_HAS_UPSTREAM(50052, "Task [{0}] exists upstream dependence", "任务[{0}]存在上游依赖"), MAIN_TABLE_USING_VERSION(50053, "the version that the master table is using", "主表正在使用该版本"), PROJECT_PROCESS_NOT_MATCH(50054, "the project and the process is not match", "项目和工作流不匹配"), DELETE_EDGE_ERROR(50055, "delete edge error", "删除工作流任务连接线错误"), NOT_SUPPORT_UPDATE_TASK_DEFINITION(50056, "task state does not support modification", "当前任务不支持修改"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
NOT_SUPPORT_COPY_TASK_TYPE(50057, "task type [{0}] does not support copy", "不支持复制的任务类型[{0}]"), BATCH_EXECUTE_PROCESS_INSTANCE_ERROR(50058, "change process instance status error: {0}", "修改工作实例状态错误: {0}"), START_TASK_INSTANCE_ERROR(50059, "start task instance error", "运行任务流实例错误"), HDFS_NOT_STARTUP(60001, "hdfs not startup", "hdfs未启用"), STORAGE_NOT_STARTUP(60002, "storage not startup", "存储未启用"), S3_CANNOT_RENAME(60003, "directory cannot be renamed", "S3无法重命名文件夹"), /** * for monitor */ QUERY_DATABASE_STATE_ERROR(70001, "query database state error", "查询数据库状态错误"), CREATE_ACCESS_TOKEN_ERROR(70010, "create access token error", "创建访问token错误"), GENERATE_TOKEN_ERROR(70011, "generate token error", "生成token错误"), QUERY_ACCESSTOKEN_LIST_PAGING_ERROR(70012, "query access token list paging error", "分页查询访问token列表错误"), UPDATE_ACCESS_TOKEN_ERROR(70013, "update access token error", "更新访问token错误"), DELETE_ACCESS_TOKEN_ERROR(70014, "delete access token error", "删除访问token错误"), ACCESS_TOKEN_NOT_EXIST(70015, "access token not exist", "访问token不存在"), QUERY_ACCESSTOKEN_BY_USER_ERROR(70016, "query access token by user error", "查询访问指定用户的token错误"), COMMAND_STATE_COUNT_ERROR(80001, "task instance state count error", "查询各状态任务实例数错误"), NEGTIVE_SIZE_NUMBER_ERROR(80002, "query size number error", "查询size错误"), START_TIME_BIGGER_THAN_END_TIME_ERROR(80003, "start time bigger than end time error", "开始时间在结束时间之后错误"), QUEUE_COUNT_ERROR(90001, "queue count error", "查询队列数据错误"), KERBEROS_STARTUP_STATE(100001, "get kerberos startup state error", "获取kerberos启动状态错误"), // audit log QUERY_AUDIT_LOG_LIST_PAGING(10057, "query resources list paging", "分页查询资源列表错误"), //plugin PLUGIN_NOT_A_UI_COMPONENT(110001, "query plugin error, this plugin has no UI component", "查询插件错误,此插件无UI组件"), QUERY_PLUGINS_RESULT_IS_NULL(110002, "query alarm plugins result is empty, please check the startup status of the alarm component and confirm that the relevant alarm plugin is successfully registered", "查询告警插件为空, 请检查告警组件启动状态并确认相关告警插件已注册成功"), QUERY_PLUGINS_ERROR(110003, "query plugins error", "查询插件错误"), QUERY_PLUGIN_DETAIL_RESULT_IS_NULL(110004, "query plugin detail result is null", "查询插件详情结果为空"), UPDATE_ALERT_PLUGIN_INSTANCE_ERROR(110005, "update alert plugin instance error", "更新告警组和告警组插件实例错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
DELETE_ALERT_PLUGIN_INSTANCE_ERROR(110006, "delete alert plugin instance error", "删除告警组和告警组插件实例错误"), GET_ALERT_PLUGIN_INSTANCE_ERROR(110007, "get alert plugin instance error", "获取告警组和告警组插件实例错误"), CREATE_ALERT_PLUGIN_INSTANCE_ERROR(110008, "create alert plugin instance error", "创建告警组和告警组插件实例错误"), QUERY_ALL_ALERT_PLUGIN_INSTANCE_ERROR(110009, "query all alert plugin instance error", "查询所有告警实例失败"), PLUGIN_INSTANCE_ALREADY_EXIT(110010, "plugin instance already exit", "该告警插件实例已存在"), LIST_PAGING_ALERT_PLUGIN_INSTANCE_ERROR(110011, "query plugin instance page error", "分页查询告警实例失败"), DELETE_ALERT_PLUGIN_INSTANCE_ERROR_HAS_ALERT_GROUP_ASSOCIATED(110012, "failed to delete the alert instance, there is an alarm group associated with this alert instance", "删除告警实例失败,存在与此告警实例关联的警报组"), PROCESS_DEFINITION_VERSION_IS_USED(110013, "this process definition version is used", "此工作流定义版本被使用"), CREATE_ENVIRONMENT_ERROR(120001, "create environment error", "创建环境失败"), ENVIRONMENT_NAME_EXISTS(120002, "this environment name [{0}] already exists", "环境名称[{0}]已经存在"), ENVIRONMENT_NAME_IS_NULL(120003, "this environment name shouldn't be empty.", "环境名称不能为空"), ENVIRONMENT_CONFIG_IS_NULL(120004, "this environment config shouldn't be empty.", "环境配置信息不能为空"), UPDATE_ENVIRONMENT_ERROR(120005, "update environment [{0}] info error", "更新环境[{0}]信息失败"), DELETE_ENVIRONMENT_ERROR(120006, "delete environment error", "删除环境信息失败"), DELETE_ENVIRONMENT_RELATED_TASK_EXISTS(120007, "this environment has been used in tasks,so you can't delete it.", "该环境已经被任务使用,所以不能删除该环境信息"), QUERY_ENVIRONMENT_BY_NAME_ERROR(1200008, "not found environment [{0}] ", "查询环境名称[{0}]信息不存在"), QUERY_ENVIRONMENT_BY_CODE_ERROR(1200009, "not found environment [{0}] ", "查询环境编码[{0}]不存在"), QUERY_ENVIRONMENT_ERROR(1200010, "login user query environment error", "分页查询环境列表错误"), VERIFY_ENVIRONMENT_ERROR(1200011, "verify environment error", "验证环境信息错误"), GET_RULE_FORM_CREATE_JSON_ERROR(1200012, "get rule form create json error", "获取规则 FROM-CREATE-JSON 错误"), QUERY_RULE_LIST_PAGING_ERROR(1200013, "query rule list paging error", "获取规则分页列表错误"), QUERY_RULE_LIST_ERROR(1200014, "query rule list error", "获取规则列表错误"), QUERY_RULE_INPUT_ENTRY_LIST_ERROR(1200015, "query rule list error", "获取规则列表错误"), QUERY_EXECUTE_RESULT_LIST_PAGING_ERROR(1200016, "query execute result list paging error", "获取数据质量任务结果分页错误"), GET_DATASOURCE_OPTIONS_ERROR(1200017, "get datasource options error", "获取数据源Options错误"), GET_DATASOURCE_TABLES_ERROR(1200018, "get datasource tables error", "获取数据源表列表错误"), GET_DATASOURCE_TABLE_COLUMNS_ERROR(1200019, "get datasource table columns error", "获取数据源表列名错误"), CREATE_CLUSTER_ERROR(120020, "create cluster error", "创建集群失败"), CLUSTER_NAME_EXISTS(120021, "this cluster name [{0}] already exists", "集群名称[{0}]已经存在"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
CLUSTER_NAME_IS_NULL(120022, "this cluster name shouldn't be empty.", "集群名称不能为空"), CLUSTER_CONFIG_IS_NULL(120023, "this cluster config shouldn't be empty.", "集群配置信息不能为空"), UPDATE_CLUSTER_ERROR(120024, "update cluster [{0}] info error", "更新集群[{0}]信息失败"), DELETE_CLUSTER_ERROR(120025, "delete cluster error", "删除集群信息失败"), DELETE_CLUSTER_RELATED_TASK_EXISTS(120026, "this cluster has been used in tasks,so you can't delete it.", "该集群已经被任务使用,所以不能删除该集群信息"), QUERY_CLUSTER_BY_NAME_ERROR(1200027, "not found cluster [{0}] ", "查询集群名称[{0}]信息不存在"), QUERY_CLUSTER_BY_CODE_ERROR(1200028, "not found cluster [{0}] ", "查询集群编码[{0}]不存在"), QUERY_CLUSTER_ERROR(1200029, "login user query cluster error", "分页查询集群列表错误"), VERIFY_CLUSTER_ERROR(1200030, "verify cluster error", "验证集群信息错误"), CLUSTER_PROCESS_DEFINITIONS_IS_INVALID(1200031, "cluster worker groups is invalid format", "集群关联的工作组参数解析错误"), UPDATE_CLUSTER_PROCESS_DEFINITION_RELATION_ERROR(1200032, "You can't modify the process definition, because the process definition [{0}] and this cluster [{1}] already be used in the task [{2}]", "您不能修改集群选项,因为该工作流组 [{0}] 和 该集群 [{1}] 已经被用在任务 [{2}] 中"), CLUSTER_NOT_EXISTS(120033, "this cluster can not found in db.", "集群配置数据库里查询不到为空"), DELETE_CLUSTER_RELATED_NAMESPACE_EXISTS(120034, "this cluster has been used in namespace,so you can't delete it.", "该集群已经被命名空间使用,所以不能删除该集群信息"), P_NAME_EXSIT(130001, "this task group name is repeated in a project", "该任务组名称在一个项目中已经使用"), P_SIZE_ERROR(130002, "task group size error", "任务组大小应该为大于1的整数"), P_STATUS_ERROR(130003, "task group status error"被关闭"), P_FULL(130004, "task group is full"满了"), P_USED_SIZE_ERROR(130005, "the used size number of task group is dirty", "任务组使用的容量发生了变化"), P_QUEUE_RELEASE_ERROR(130006, "failed to release task group queue", "任务组资源释放时出现了错误"), P_QUEUE_AWAKE_ERROR(130007, "awake waiting task failed", "任务组使唤醒等待任务时发生了错误"), CREATE_P_ERROR(130008, "create task group error", "创建任务组错误"), UPDATE_P_ERROR(130009, "update task group list error", "更新任务组错误"), QUERY_P_LIST_ERROR(130010, "query task group list error", "查询任务组列表错误"), CLOSE_P_ERROR(130011, "close task group error", "关闭任务组错误"), START_P_ERROR(130012, "start task group error", "启动任务组错误"), QUERY_P_QUEUE_LIST_ERROR(130013, "query task group queue list error", "查询任务组队列列表错误"), P_CACHE_START_FAILED(130014, "cache start failed", "任务组相关的缓存启动失败"), ENVIRONMENT_WORKER_GROUPS_IS_INVALID(130015, "environment worker groups is invalid format", "环境关联的工作组参数解析错误"), UPDATE_ENVIRONMENT_WORKER_GROUP_RELATION_ERROR(130016, "You can't modify the worker group, because the worker group [{0}] and this environment [{1}] already be used in the task [{2}]",
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
"您不能修改工作组选项,因为该工作组 [{0}] 和 该环境 [{1}] 已经被用在任务 [{2}] 中"), P_QUEUE_ALREADY_START(130017, "task group queue already start", "节点已经获取任务组资源"), P_STATUS_CLOSED(130018, "The task group has been closed."被关闭"), P_STATUS_OPENED(130019, "The task group has been opened."被开启"), NOT_ALLOW_TO_DISABLE_OWN_ACCOUNT(130020, "Not allow to disable your own account", "不能停用自己的账号"), NOT_ALLOW_TO_DELETE_DEFAULT_ALARM_GROUP(130030, "Not allow to delete the default alarm group ", "不能删除默认告警组"), TIME_ZONE_ILLEGAL(130031, "time zone [{0}] is illegal", "时区参数 [{0}] 不合法"), QUERY_K8S_NAMESPACE_LIST_PAGING_ERROR(1300001, "login user query k8s namespace list paging error", "分页查询k8s名称空间列表错误"), K8S_NAMESPACE_EXIST(1300002, "k8s namespace {0} already exists", "k8s命名空间[{0}]已存在"), CREATE_K8S_NAMESPACE_ERROR(1300003, "create k8s namespace error", "创建k8s命名空间错误"), UPDATE_K8S_NAMESPACE_ERROR(1300004, "update k8s namespace error", "更新k8s命名空间信息错误"), K8S_NAMESPACE_NOT_EXIST(1300005, "k8s namespace {0} not exists", "命名空间ID[{0}]不存在"), K8S_CLIENT_OPS_ERROR(1300006, "k8s error with exception {0}", "k8s操作报错[{0}]"), VERIFY_K8S_NAMESPACE_ERROR(1300007, "verify k8s and namespace error", "验证k8s命名空间信息错误"), DELETE_K8S_NAMESPACE_BY_ID_ERROR(1300008, "delete k8s namespace by id error", "删除命名空间错误"), VERIFY_PARAMETER_NAME_FAILED(1300009, "The file name verify failed", "文件命名校验失败"), STORE_OPERATE_CREATE_ERROR(1300010, "create the resource failed", "存储操作失败"), GRANT_K8S_NAMESPACE_ERROR(1300011, "grant namespace error", "授权资源错误"), QUERY_UNAUTHORIZED_NAMESPACE_ERROR(1300012, "query unauthorized namespace error", "查询未授权命名空间错误"), QUERY_AUTHORIZED_NAMESPACE_ERROR(1300013, "query authorized namespace error", "查询授权命名空间错误"), QUERY_CAN_USE_K8S_CLUSTER_ERROR(1300014, "login user query can used k8s cluster list error", "查询可用k8s集群错误"), RESOURCE_FULL_NAME_TOO_LONG_ERROR(1300015, "resource's fullname is too long error", "资源文件名过长"), TENANT_FULL_NAME_TOO_LONG_ERROR(1300016, "tenant's fullname is too long error", "租户名过长"), USER_PASSWORD_LENGTH_ERROR(1300017, "user's password length error", "用户密码长度错误"), QUERY_CAN_USE_K8S_NAMESPACE_ERROR(1300018, "login user query can used namespace list error", "查询可用命名空间错误"), NO_CURRENT_OPERATING_PERMISSION(1400001, "The current user does not have this permission.", "当前用户无此权限"), FUNCTION_DISABLED(1400002, "The current feature is disabled.", "当前功能已被禁用"), SCHEDULE_TIME_NUMBER(1400003, "The number of complement dates exceed 100.", "补数日期个数超过100"), ; private final int code;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
private final String enMsg; private final String zhMsg; Status(int code, String enMsg, String zhMsg) { this.code = code; this.enMsg = enMsg; this.zhMsg = zhMsg; } public int getCode() { return this.code; } public String getMsg() { if (Locale.SIMPLIFIED_CHINESE.getLanguage().equals(LocaleContextHolder.getLocale().getLanguage())) { return this.zhMsg; } else { return this.enMsg; } } /** * Retrieve Status enum entity by status code. */ public static Optional<Status> findStatusBy(int code) { for (Status status : Status.values()) { if (code == status.getCode()) { return Optional.of(status); } } return Optional.empty(); } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/enums/ReleaseState.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.common.enums; import com.baomidou.mybatisplus.annotation.EnumValue; /** * process define release state */ public enum ReleaseState {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,378
[Improvement] [API] API-Server release response message typo
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![image](https://user-images.githubusercontent.com/33984497/183789976-5377d079-f5a4-4dc1-843d-135f20c13df0.png) ### What you expected to happen - response right message ### How to reproduce - when an error occurs ,response right message ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11378
https://github.com/apache/dolphinscheduler/pull/11400
0464123c2b8d507a16a966e2dbe8dbfe9bf781e2
6e2bed4d6bd2341336190a1483482bd7c2db9bae
2022-08-10T01:38:53Z
java
2022-08-11T01:21:32Z
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/enums/ReleaseState.java
/** * 0 offline * 1 on line */ OFFLINE(0, "offline"), ONLINE(1, "online"); ReleaseState(int code, String descp) { this.code = code; this.descp = descp; } @EnumValue private final int code; private final String descp; public static ReleaseState getEnum(int value) { for (ReleaseState e:ReleaseState.values()) { if (e.ordinal() == value) { return e; } } return null; } public int getCode() { return code; } public String getDescp() { return descp; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.plugin.task.api; import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.EXIT_CODE_FAILURE; import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.EXIT_CODE_KILL; import org.apache.dolphinscheduler.plugin.task.api.model.TaskResponse;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
import org.apache.dolphinscheduler.plugin.task.api.utils.AbstractCommandExecutorConstants; import org.apache.dolphinscheduler.plugin.task.api.utils.OSUtils; import org.apache.dolphinscheduler.spi.utils.PropertyUtils; import org.apache.dolphinscheduler.spi.utils.StringUtils; import org.apache.commons.lang3.SystemUtils; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.lang.reflect.Field; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.slf4j.Logger; import com.google.common.util.concurrent.ThreadFactoryBuilder; /** * abstract command executor */ public abstract class AbstractCommandExecutor {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
/** * rules for extracting Var Pool */ protected static final Pattern SETVALUE_REGEX = Pattern.compile(TaskConstants.SETVALUE_REGEX); protected StringBuilder varPool = new StringBuilder(); /** * process */ private Process process; /** * log handler */ protected Consumer<LinkedBlockingQueue<String>> logHandler; /** * logger */ protected Logger logger; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
* log list */ protected LinkedBlockingQueue<String> logBuffer; protected boolean logOutputIsSuccess = false; /* * SHELL result string */ protected String taskResultString; /** * taskRequest */ protected TaskExecutionContext taskRequest; public AbstractCommandExecutor(Consumer<LinkedBlockingQueue<String>> logHandler, TaskExecutionContext taskRequest, Logger logger) { this.logHandler = logHandler; this.taskRequest = taskRequest; this.logger = logger; this.logBuffer = new LinkedBlockingQueue<>(); } public AbstractCommandExecutor(LinkedBlockingQueue<String> logBuffer) { this.logBuffer = logBuffer; } /** * build process * * @param commandFile command file * @throws IOException IO Exception */ private void buildProcess(String commandFile) throws IOException {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
List<String> command = new LinkedList<>(); ProcessBuilder processBuilder = new ProcessBuilder(); processBuilder.directory(new File(taskRequest.getExecutePath())); processBuilder.redirectErrorStream(true); if (OSUtils.isSudoEnable()) { if (SystemUtils.IS_OS_LINUX && PropertyUtils.getBoolean(AbstractCommandExecutorConstants.TASK_RESOURCE_LIMIT_STATE)) { generateCgroupCommand(command); } else { command.add("sudo"); command.add("-u"); command.add(taskRequest.getTenantCode()); } } command.add(commandInterpreter()); command.addAll(Collections.emptyList()); command.add(commandFile); processBuilder.command(command); process = processBuilder.start(); printCommand(command); } /** * generate systemd command. * eg: sudo systemd-run -q --scope -p CPUQuota=100% -p MemoryMax=200M --uid=root * @param command command
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
*/ private void generateCgroupCommand(List<String> command) { Integer cpuQuota = taskRequest.getCpuQuota(); Integer memoryMax = taskRequest.getMemoryMax(); command.add("sudo"); command.add("systemd-run"); command.add("-q"); command.add("--scope"); if (cpuQuota == -1) { command.add("-p"); command.add("CPUQuota="); } else { command.add("-p"); command.add(String.format("CPUQuota=%s%%", taskRequest.getCpuQuota())); } if (memoryMax == -1) { command.add("-p"); command.add(String.format("MemoryMax=%s", "infinity")); } else { command.add("-p"); command.add(String.format("MemoryMax=%sM", taskRequest.getMemoryMax())); } command.add(String.format("--uid=%s", taskRequest.getTenantCode())); } public TaskResponse run(String execCommand) throws IOException, InterruptedException { TaskResponse result = new TaskResponse(); int taskInstanceId = taskRequest.getTaskInstanceId(); if (null == TaskExecutionContextCacheManager.getByTaskInstanceId(taskInstanceId)) { result.setExitStatusCode(EXIT_CODE_KILL); return result;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
} if (StringUtils.isEmpty(execCommand)) { TaskExecutionContextCacheManager.removeByTaskInstanceId(taskInstanceId); return result; } String commandFilePath = buildCommandFilePath(); createCommandFileIfNotExists(execCommand, commandFilePath); buildProcess(commandFilePath); parseProcessOutput(process); int processId = getProcessId(process); result.setProcessId(processId); taskRequest.setProcessId(processId); boolean updateTaskExecutionContextStatus = TaskExecutionContextCacheManager.updateTaskExecutionContext(taskRequest); if (Boolean.FALSE.equals(updateTaskExecutionContextStatus)) { ProcessUtils.kill(taskRequest); result.setExitStatusCode(EXIT_CODE_KILL); return result; } logger.info("process start, process id is: {}", processId); long remainTime = getRemainTime(); boolean status = process.waitFor(remainTime, TimeUnit.SECONDS); if (status) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
result.setExitStatusCode(process.exitValue()); } else { logger.error("process has failure , exitStatusCode:{}, processExitValue:{}, ready to kill ...", result.getExitStatusCode(), process.exitValue()); ProcessUtils.kill(taskRequest); result.setExitStatusCode(EXIT_CODE_FAILURE); } logger.info("process has exited, execute path:{}, processId:{} ,exitStatusCode:{} ,processWaitForStatus:{} ,processExitValue:{}", taskRequest.getExecutePath(), processId, result.getExitStatusCode(), status, process.exitValue()); return result; } public String getVarPool() { return varPool.toString(); } /** * cancel application * * @throws Exception exception */ public void cancelApplication() throws Exception { if (process == null) { return; } clear(); int processId = getProcessId(process); logger.info("cancel process: {}", processId); boolean killed = softKill(processId);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
if (!killed) { hardKill(processId); process.destroy(); process = null; } } /** * soft kill * * @param processId process id * @return process is alive */ private boolean softKill(int processId) { if (processId != 0 && process.isAlive()) { try { String cmd = String.format("kill %d", processId); cmd = OSUtils.getSudoCmd(taskRequest.getTenantCode(), cmd); logger.info("soft kill task:{}, process id:{}, cmd:{}", taskRequest.getTaskAppId(), processId, cmd); Runtime.getRuntime().exec(cmd); } catch (IOException e) { logger.info("kill attempt failed", e); } } return process.isAlive(); } /** * hard kill
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
* * @param processId process id */ private void hardKill(int processId) { if (processId != 0 && process.isAlive()) { try { String cmd = String.format("kill -9 %d", processId); cmd = OSUtils.getSudoCmd(taskRequest.getTenantCode(), cmd); logger.info("hard kill task:{}, process id:{}, cmd:{}", taskRequest.getTaskAppId(), processId, cmd); Runtime.getRuntime().exec(cmd); } catch (IOException e) { logger.error("kill attempt failed ", e); } } } private void printCommand(List<String> commands) { logger.info("task run command: {}", String.join(" ", commands)); } /** * clear */ private void clear() { LinkedBlockingQueue<String> markerLog = new LinkedBlockingQueue<>(1); markerLog.add(ch.qos.logback.classic.ClassicConstants.FINALIZE_SESSION_MARKER.toString()); if (!logBuffer.isEmpty()) { logHandler.accept(logBuffer); logBuffer.clear(); } logHandler.accept(markerLog);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
} /** * get the standard output of the process * * @param process process */ private void parseProcessOutput(Process process) { String threadLoggerInfoName = taskRequest.getTaskLogName(); ExecutorService getOutputLogService = newDaemonSingleThreadExecutor(threadLoggerInfoName); getOutputLogService.submit(() -> { try (BufferedReader inReader = new BufferedReader(new InputStreamReader(process.getInputStream()))) { String line; while ((line = inReader.readLine()) != null) { if (line.startsWith("${setValue(") || line.startsWith("#{setValue(")) { varPool.append(findVarPool(line)); varPool.append("$VarPool$"); } else { logBuffer.add(line); taskResultString = line; } } logOutputIsSuccess = true; } catch (Exception e) { logger.error(e.getMessage(), e); logOutputIsSuccess = true; } }); getOutputLogService.shutdown(); ExecutorService parseProcessOutputExecutorService = newDaemonSingleThreadExecutor(threadLoggerInfoName); parseProcessOutputExecutorService.submit(() -> {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
try { long lastFlushTime = System.currentTimeMillis(); while (logBuffer.size() > 0 || !logOutputIsSuccess) { if (logBuffer.size() > 0) { lastFlushTime = flush(lastFlushTime); } else { Thread.sleep(TaskConstants.DEFAULT_LOG_FLUSH_INTERVAL); } } } catch (Exception e) { Thread.currentThread().interrupt(); logger.error(e.getMessage(), e); } finally { clear(); } }); parseProcessOutputExecutorService.shutdown(); } /** * find var pool * @param line * @return */ private String findVarPool(String line) { Matcher matcher = SETVALUE_REGEX.matcher(line); if (matcher.find()) { return matcher.group(1); } return null; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
/** * get remain time(s) * * @return remain time */ private long getRemainTime() { long usedTime = (System.currentTimeMillis() - taskRequest.getStartTime().getTime()) / 1000; long remainTime = taskRequest.getTaskTimeout() - usedTime; if (remainTime < 0) { throw new RuntimeException("task execution time out"); } return remainTime; } /** * get process id * * @param process process * @return process id */ private int getProcessId(Process process) { int processId = 0; try { Field f = process.getClass().getDeclaredField(TaskConstants.PID); f.setAccessible(true); processId = f.getInt(process); } catch (Throwable e) { logger.error(e.getMessage(), e); } return processId; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,051
[Bug][TaskPlugin] datax job is sucess ,but the instance status is failure.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened datax job is sucess ,but the instance status is failure. ### What you expected to happen [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### How to reproduce [ERROR] 2022-07-19 18:55:40.745 org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread:[207] - task scheduler failure java.lang.IllegalThreadStateException: process hasn't exited at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:197) at org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:161) at org.apache.dolphinscheduler.server.worker.runner.TaskExecuteThread.run(TaskExecuteThread.java:189) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[60] - FINALIZE_SESSION [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[227] - cancel process: 28379 [INFO] 2022-07-19 18:55:40.746 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.datax.DataxTask:[256] - soft kill task:73_74, process id:28379, cmd:sudo -u dolphinscheduler kill 28379 [INFO] 2022-07-19 18:55:41.748 org.apache.dolphinscheduler.service.log.LogClientService:[117] - view log path /opt/apps/dolphinscheduler/logs/6244895070720_6/73/74.log WaitWriterTime 6.015s | All Task WaitReaderTime 193.856s | Percentage 100.00% 2022-07-19 18:56:11.889 [job-0] INFO JobContainer - 任务启动时刻 : 2022-07-19 18:52:41 任务结束时刻 : 2022-07-19 18:56:11 任务总计耗时 : 210s 任务平均流量 : 55.28KB/s 记录写入速度 : 971rec/s 读出记录总数 : 204104 读写失败总数 : 0 ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11051
https://github.com/apache/dolphinscheduler/pull/11099
5fa3e7b1ed68e203056112941a5be0f1285a6a7c
b79bad19e5b0896c5b7290773596dd5f73065331
2022-07-19T11:27:41Z
java
2022-08-11T01:28:40Z
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
/** * when log buffer siz or flush time reach condition , then flush * * @param lastFlushTime last flush time * @return last flush time */ private long flush(long lastFlushTime) { long now = System.currentTimeMillis(); /* * when log buffer siz or flush time reach condition , then flush */ if (logBuffer.size() >= TaskConstants.DEFAULT_LOG_ROWS_NUM || now - lastFlushTime > TaskConstants.DEFAULT_LOG_FLUSH_INTERVAL) { lastFlushTime = now; logHandler.accept(logBuffer); logBuffer.clear(); } return lastFlushTime; } protected abstract String buildCommandFilePath(); protected abstract void createCommandFileIfNotExists(String execCommand, String commandFile) throws IOException; ExecutorService newDaemonSingleThreadExecutor(String threadName) { ThreadFactory threadFactory = new ThreadFactoryBuilder() .setDaemon(true) .setNameFormat(threadName) .build(); return Executors.newSingleThreadExecutor(threadFactory); } protected abstract String commandInterpreter(); }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,413
[Bug] [Master] Cannot set task status to kill if the task is not in running.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened If the task is not running in worker, we cannot set the status to kill. ### What you expected to happen Can stop the workflow instance. ### How to reproduce xx ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11413
https://github.com/apache/dolphinscheduler/pull/11414
82177840442d09bf012d3fd3f1e9665581cf4cdf
496c2d4bfa9bcf72bd8c90a7732844b543c15610
2022-08-11T04:06:20Z
java
2022-08-11T05:38:49Z
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/CommonTaskProcessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.server.master.runner.task; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.plugin.task.api.TaskExecutionContext; import org.apache.dolphinscheduler.plugin.task.api.enums.TaskExecutionStatus; import org.apache.dolphinscheduler.remote.command.TaskKillRequestCommand; import org.apache.dolphinscheduler.remote.utils.Host; import org.apache.dolphinscheduler.server.master.dispatch.context.ExecutionContext; import org.apache.dolphinscheduler.server.master.dispatch.enums.ExecutorType; import org.apache.dolphinscheduler.server.master.dispatch.exceptions.ExecuteException; import org.apache.dolphinscheduler.server.master.dispatch.executor.NettyExecutorManager;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,413
[Bug] [Master] Cannot set task status to kill if the task is not in running.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened If the task is not running in worker, we cannot set the status to kill. ### What you expected to happen Can stop the workflow instance. ### How to reproduce xx ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11413
https://github.com/apache/dolphinscheduler/pull/11414
82177840442d09bf012d3fd3f1e9665581cf4cdf
496c2d4bfa9bcf72bd8c90a7732844b543c15610
2022-08-11T04:06:20Z
java
2022-08-11T05:38:49Z
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/CommonTaskProcessor.java
import org.apache.dolphinscheduler.service.bean.SpringApplicationContext; import org.apache.dolphinscheduler.service.queue.TaskPriority; import org.apache.dolphinscheduler.service.queue.TaskPriorityQueue; import org.apache.dolphinscheduler.service.queue.TaskPriorityQueueImpl; import org.apache.commons.lang3.StringUtils; import java.util.Date; import com.google.auto.service.AutoService; /** * common task processor */ @AutoService(ITaskProcessor.class) public class CommonTaskProcessor extends BaseTaskProcessor { private TaskPriorityQueue<TaskPriority> taskUpdateQueue; private NettyExecutorManager nettyExecutorManager = SpringApplicationContext.getBean(NettyExecutorManager.class); @Override protected boolean submitTask() { this.taskInstance = processService.submitTaskWithRetry(processInstance, taskInstance, maxRetryTimes, commitInterval); return this.taskInstance != null; } @Override protected boolean resubmitTask() { if (this.taskInstance == null) { return false; } setTaskExecutionLogger(); return dispatchTask(); } @Override public boolean runTask() {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,413
[Bug] [Master] Cannot set task status to kill if the task is not in running.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened If the task is not running in worker, we cannot set the status to kill. ### What you expected to happen Can stop the workflow instance. ### How to reproduce xx ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11413
https://github.com/apache/dolphinscheduler/pull/11414
82177840442d09bf012d3fd3f1e9665581cf4cdf
496c2d4bfa9bcf72bd8c90a7732844b543c15610
2022-08-11T04:06:20Z
java
2022-08-11T05:38:49Z
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/CommonTaskProcessor.java
return true; } @Override protected boolean taskTimeout() { return true; } /** * common task cannot be paused */ @Override protected boolean pauseTask() { return true; } @Override public String getType() { return Constants.COMMON_TASK_TYPE; } @Override public boolean dispatchTask() { try { if (taskUpdateQueue == null) { this.initQueue(); } if (taskInstance.getState().isFinished()) { logger.info("submit task , but task [{}] state [{}] is already finished. ", taskInstance.getName(), taskInstance.getState()); return true; } if (taskInstance.getState() == TaskExecutionStatus.RUNNING_EXECUTION
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,413
[Bug] [Master] Cannot set task status to kill if the task is not in running.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened If the task is not running in worker, we cannot set the status to kill. ### What you expected to happen Can stop the workflow instance. ### How to reproduce xx ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11413
https://github.com/apache/dolphinscheduler/pull/11414
82177840442d09bf012d3fd3f1e9665581cf4cdf
496c2d4bfa9bcf72bd8c90a7732844b543c15610
2022-08-11T04:06:20Z
java
2022-08-11T05:38:49Z
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/CommonTaskProcessor.java
|| taskInstance.getState() == TaskExecutionStatus.DELAY_EXECUTION) { logger.info("submit task, but the status of the task {} is already running or delayed.", taskInstance.getName()); return true; } logger.info("task ready to dispatch to worker: taskInstanceId: {}", taskInstance.getId()); TaskPriority taskPriority = new TaskPriority(processInstance.getProcessInstancePriority().getCode(), processInstance.getId(), taskInstance.getProcessInstancePriority().getCode(), taskInstance.getId(), taskInstance.getTaskGroupPriority(), org.apache.dolphinscheduler.common.Constants.DEFAULT_WORKER_GROUP); TaskExecutionContext taskExecutionContext = getTaskExecutionContext(taskInstance); if (taskExecutionContext == null) { logger.error("task get taskExecutionContext fail: {}", taskInstance); return false; } taskPriority.setTaskExecutionContext(taskExecutionContext); taskUpdateQueue.put(taskPriority); logger.info("Master submit task to priority queue success, taskInstanceId : {}", taskInstance.getId()); return true; } catch (Exception e) { logger.error("submit task error", e); return false; } } public void initQueue() { this.taskUpdateQueue = SpringApplicationContext.getBean(TaskPriorityQueueImpl.class); } @Override public boolean killTask() { try {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,413
[Bug] [Master] Cannot set task status to kill if the task is not in running.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened If the task is not running in worker, we cannot set the status to kill. ### What you expected to happen Can stop the workflow instance. ### How to reproduce xx ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11413
https://github.com/apache/dolphinscheduler/pull/11414
82177840442d09bf012d3fd3f1e9665581cf4cdf
496c2d4bfa9bcf72bd8c90a7732844b543c15610
2022-08-11T04:06:20Z
java
2022-08-11T05:38:49Z
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/CommonTaskProcessor.java
taskInstance = processService.findTaskInstanceById(taskInstance.getId()); if (taskInstance == null) { return true; } if (taskInstance.getState().isFinished()) { return true; } if (StringUtils.isBlank(taskInstance.getHost())) { taskInstance.setState(TaskExecutionStatus.KILL); taskInstance.setEndTime(new Date()); processService.updateTaskInstance(taskInstance); return true; } TaskKillRequestCommand killCommand = new TaskKillRequestCommand(); killCommand.setTaskInstanceId(taskInstance.getId()); ExecutionContext executionContext = new ExecutionContext(killCommand.convert2Command(), ExecutorType.WORKER, taskInstance); Host host = Host.of(taskInstance.getHost()); executionContext.setHost(host); nettyExecutorManager.executeDirectly(executionContext); } catch (ExecuteException e) { logger.error("kill task error:", e); return false; } logger.info("master kill taskInstance name :{} taskInstance id:{}", taskInstance.getName(), taskInstance.getId()); return true; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,961
[Bug] [alert service] email alert failed
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened The alert service is running. ![企业微信截图_16577684619245](https://user-images.githubusercontent.com/109258081/178890328-be13c1d4-8830-4407-97bc-6f6471491abc.png) When running a work flow, see the alert-server log. ![企业微信截图_16577684067877](https://user-images.githubusercontent.com/109258081/178890481-f985564c-e606-4a5f-ac68-1986a1508af4.png) ### What you expected to happen I have installed CDH 6.3.2.Enviroment is healthy. ### How to reproduce Restart dolphinscheduler, run a new work flow to check this problem. ### Anything else _No response_ ### Version 3.0.0-beta-2 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10961
https://github.com/apache/dolphinscheduler/pull/11033
47b50067ef26b599a7a1a47594c0c393fddcdfd0
abd57987552b77cc783cad6894ceeda898cccb6c
2022-07-14T03:16:38Z
java
2022-08-12T01:57:27Z
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplate.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.plugin.alert.email.template; import static java.util.Objects.requireNonNull; import org.apache.dolphinscheduler.alert.api.ShowType; import org.apache.dolphinscheduler.plugin.alert.email.EmailConstants; import org.apache.dolphinscheduler.spi.utils.JSONUtils; import org.apache.dolphinscheduler.spi.utils.StringUtils; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,961
[Bug] [alert service] email alert failed
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened The alert service is running. ![企业微信截图_16577684619245](https://user-images.githubusercontent.com/109258081/178890328-be13c1d4-8830-4407-97bc-6f6471491abc.png) When running a work flow, see the alert-server log. ![企业微信截图_16577684067877](https://user-images.githubusercontent.com/109258081/178890481-f985564c-e606-4a5f-ac68-1986a1508af4.png) ### What you expected to happen I have installed CDH 6.3.2.Enviroment is healthy. ### How to reproduce Restart dolphinscheduler, run a new work flow to check this problem. ### Anything else _No response_ ### Version 3.0.0-beta-2 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10961
https://github.com/apache/dolphinscheduler/pull/11033
47b50067ef26b599a7a1a47594c0c393fddcdfd0
abd57987552b77cc783cad6894ceeda898cccb6c
2022-07-14T03:16:38Z
java
2022-08-12T01:57:27Z
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplate.java
import java.util.Map; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; public class DefaultHTMLTemplate implements AlertTemplate { public static final Logger logger = LoggerFactory.getLogger(DefaultHTMLTemplate.class); @Override public String getMessageFromTemplate(String content, ShowType showType, boolean showAll) { switch (showType) { case TABLE: return getTableTypeMessage(content, showAll); case TEXT: return getTextTypeMessage(content); default: throw new IllegalArgumentException(String.format("not support showType: %s in DefaultHTMLTemplate", showType)); } } /** * get alert message which type is TABLE * * @param content message content * @param showAll weather to show all * @return alert message */ private String getTableTypeMessage(String content, boolean showAll) { if (StringUtils.isNotEmpty(content)) { List<LinkedHashMap> mapItemsList = JSONUtils.toList(content, LinkedHashMap.class); if (!showAll && mapItemsList.size() > EmailConstants.NUMBER_1000) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,961
[Bug] [alert service] email alert failed
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened The alert service is running. ![企业微信截图_16577684619245](https://user-images.githubusercontent.com/109258081/178890328-be13c1d4-8830-4407-97bc-6f6471491abc.png) When running a work flow, see the alert-server log. ![企业微信截图_16577684067877](https://user-images.githubusercontent.com/109258081/178890481-f985564c-e606-4a5f-ac68-1986a1508af4.png) ### What you expected to happen I have installed CDH 6.3.2.Enviroment is healthy. ### How to reproduce Restart dolphinscheduler, run a new work flow to check this problem. ### Anything else _No response_ ### Version 3.0.0-beta-2 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10961
https://github.com/apache/dolphinscheduler/pull/11033
47b50067ef26b599a7a1a47594c0c393fddcdfd0
abd57987552b77cc783cad6894ceeda898cccb6c
2022-07-14T03:16:38Z
java
2022-08-12T01:57:27Z
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplate.java
mapItemsList = mapItemsList.subList(0, EmailConstants.NUMBER_1000); } StringBuilder contents = new StringBuilder(200); boolean flag = true; String title = ""; for (LinkedHashMap<String, Object> mapItems : mapItemsList) { Set<Map.Entry<String, Object>> entries = mapItems.entrySet(); Iterator<Map.Entry<String, Object>> iterator = entries.iterator(); StringBuilder t = new StringBuilder(EmailConstants.TR); StringBuilder cs = new StringBuilder(EmailConstants.TR); while (iterator.hasNext()) { Map.Entry<String, Object> entry = iterator.next(); t.append(EmailConstants.TH).append(entry.getKey()).append(EmailConstants.TH_END); cs.append(EmailConstants.TD).append(entry.getValue()).append(EmailConstants.TD_END); } t.append(EmailConstants.TR_END); cs.append(EmailConstants.TR_END); if (flag) { title = t.toString(); } flag = false; contents.append(cs); } return getMessageFromHtmlTemplate(title, contents.toString()); } return content; } /** * get alert message which type is TEXT *
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,961
[Bug] [alert service] email alert failed
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened The alert service is running. ![企业微信截图_16577684619245](https://user-images.githubusercontent.com/109258081/178890328-be13c1d4-8830-4407-97bc-6f6471491abc.png) When running a work flow, see the alert-server log. ![企业微信截图_16577684067877](https://user-images.githubusercontent.com/109258081/178890481-f985564c-e606-4a5f-ac68-1986a1508af4.png) ### What you expected to happen I have installed CDH 6.3.2.Enviroment is healthy. ### How to reproduce Restart dolphinscheduler, run a new work flow to check this problem. ### Anything else _No response_ ### Version 3.0.0-beta-2 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10961
https://github.com/apache/dolphinscheduler/pull/11033
47b50067ef26b599a7a1a47594c0c393fddcdfd0
abd57987552b77cc783cad6894ceeda898cccb6c
2022-07-14T03:16:38Z
java
2022-08-12T01:57:27Z
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplate.java
* @param content message content * @return alert message */ private String getTextTypeMessage(String content) { if (StringUtils.isNotEmpty(content)) { ArrayNode list = JSONUtils.parseArray(content); StringBuilder contents = new StringBuilder(100); for (JsonNode jsonNode : list) { contents.append(EmailConstants.TR); contents.append(EmailConstants.TD).append(jsonNode.toString()).append(EmailConstants.TD_END); contents.append(EmailConstants.TR_END); } return getMessageFromHtmlTemplate(null, contents.toString()); } return content; } /** * get alert message from a html template * * @param title message title * @param content message content * @return alert message which use html template */ private String getMessageFromHtmlTemplate(String title, String content) { requireNonNull(content, "content must not null"); String htmlTableThead = StringUtils.isEmpty(title) ? "" : String.format("<thead>%s</thead>%n", title); return EmailConstants.HTML_HEADER_PREFIX + htmlTableThead + content + EmailConstants.TABLE_BODY_HTML_TAIL; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,961
[Bug] [alert service] email alert failed
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened The alert service is running. ![企业微信截图_16577684619245](https://user-images.githubusercontent.com/109258081/178890328-be13c1d4-8830-4407-97bc-6f6471491abc.png) When running a work flow, see the alert-server log. ![企业微信截图_16577684067877](https://user-images.githubusercontent.com/109258081/178890481-f985564c-e606-4a5f-ac68-1986a1508af4.png) ### What you expected to happen I have installed CDH 6.3.2.Enviroment is healthy. ### How to reproduce Restart dolphinscheduler, run a new work flow to check this problem. ### Anything else _No response_ ### Version 3.0.0-beta-2 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10961
https://github.com/apache/dolphinscheduler/pull/11033
47b50067ef26b599a7a1a47594c0c393fddcdfd0
abd57987552b77cc783cad6894ceeda898cccb6c
2022-07-14T03:16:38Z
java
2022-08-12T01:57:27Z
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/test/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplateTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.plugin.alert.email.template; import static org.junit.Assert.assertEquals; import org.apache.dolphinscheduler.alert.api.ShowType; import org.apache.dolphinscheduler.plugin.alert.email.EmailConstants; import org.apache.dolphinscheduler.spi.utils.JSONUtils; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class DefaultHTMLTemplateTest {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,961
[Bug] [alert service] email alert failed
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened The alert service is running. ![企业微信截图_16577684619245](https://user-images.githubusercontent.com/109258081/178890328-be13c1d4-8830-4407-97bc-6f6471491abc.png) When running a work flow, see the alert-server log. ![企业微信截图_16577684067877](https://user-images.githubusercontent.com/109258081/178890481-f985564c-e606-4a5f-ac68-1986a1508af4.png) ### What you expected to happen I have installed CDH 6.3.2.Enviroment is healthy. ### How to reproduce Restart dolphinscheduler, run a new work flow to check this problem. ### Anything else _No response_ ### Version 3.0.0-beta-2 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10961
https://github.com/apache/dolphinscheduler/pull/11033
47b50067ef26b599a7a1a47594c0c393fddcdfd0
abd57987552b77cc783cad6894ceeda898cccb6c
2022-07-14T03:16:38Z
java
2022-08-12T01:57:27Z
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/test/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplateTest.java
private static final Logger logger = LoggerFactory.getLogger(DefaultHTMLTemplateTest.class); @Test public void testGetMessageFromTemplate() { DefaultHTMLTemplate template = new DefaultHTMLTemplate(); String tableTypeMessage = template.getMessageFromTemplate(list2String(), ShowType.TABLE, true); assertEquals(tableTypeMessage, generateMockTableTypeResultByHand()); String textTypeMessage = template.getMessageFromTemplate(list2String(), ShowType.TEXT, true); assertEquals(textTypeMessage, generateMockTextTypeResultByHand()); } private String list2String() { LinkedHashMap<String, Object> map1 = new LinkedHashMap<>(); map1.put("mysql service name", "mysql200"); map1.put("mysql address", "192.168.xx.xx"); map1.put("database client connections", "190"); map1.put("port", "3306"); map1.put("no index of number", "80");
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,961
[Bug] [alert service] email alert failed
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened The alert service is running. ![企业微信截图_16577684619245](https://user-images.githubusercontent.com/109258081/178890328-be13c1d4-8830-4407-97bc-6f6471491abc.png) When running a work flow, see the alert-server log. ![企业微信截图_16577684067877](https://user-images.githubusercontent.com/109258081/178890481-f985564c-e606-4a5f-ac68-1986a1508af4.png) ### What you expected to happen I have installed CDH 6.3.2.Enviroment is healthy. ### How to reproduce Restart dolphinscheduler, run a new work flow to check this problem. ### Anything else _No response_ ### Version 3.0.0-beta-2 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10961
https://github.com/apache/dolphinscheduler/pull/11033
47b50067ef26b599a7a1a47594c0c393fddcdfd0
abd57987552b77cc783cad6894ceeda898cccb6c
2022-07-14T03:16:38Z
java
2022-08-12T01:57:27Z
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/test/java/org/apache/dolphinscheduler/plugin/alert/email/template/DefaultHTMLTemplateTest.java
LinkedHashMap<String, Object> map2 = new LinkedHashMap<>(); map2.put("mysql service name", "mysql210"); map2.put("mysql address", "192.168.xx.xx"); map2.put("database client connections", "90"); map2.put("port", "3306"); map2.put("no index of number", "10"); List<LinkedHashMap<String, Object>> maps = new ArrayList<>(); maps.add(0, map1); maps.add(1, map2); String mapjson = JSONUtils.toJsonString(maps); logger.info(mapjson); return mapjson; } private String generateMockTableTypeResultByHand() { return EmailConstants.HTML_HEADER_PREFIX + "<thead>" + "<tr><th>mysql service name</th><th>mysql address</th><th>database client connections</th><th>port</th><th>no index of number</th></tr>" + "</thead>"+System.getProperty("line.separator") + "<tr><td>mysql200</td><td>192.168.xx.xx</td><td>190</td><td>3306</td><td>80</td></tr>" + "<tr><td>mysql210</td><td>192.168.xx.xx</td><td>90</td><td>3306</td><td>10</td></tr>" + EmailConstants.TABLE_BODY_HTML_TAIL; } private String generateMockTextTypeResultByHand() { return EmailConstants.HTML_HEADER_PREFIX + "<tr><td>{\"mysql service name\":\"mysql200\",\"mysql address\":\"192.168.xx.xx\",\"database client connections\":\"190\",\"port\":\"3306\",\"no index of number\":\"80\"}</td></tr>" + "<tr><td>{\"mysql service name\":\"mysql210\",\"mysql address\":\"192.168.xx.xx\",\"database client connections\":\"90\",\"port\":\"3306\",\"no index of number\":\"10\"}</td></tr>" + EmailConstants.TABLE_BODY_HTML_TAIL; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,457
[Feature][Style] Enable spotless to manage imports
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description * Currently `spotless` in DS will not manage `imports` automatically, we need to enable it to fix imports: 1. Remove unused imports. 2. Sort imports in better order (instead of simply sorting import alphabetically). 3. Remove wildcards imports. ### Use case * Already described above. ### Related issues related: #10963 ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11457
https://github.com/apache/dolphinscheduler/pull/11458
7ff34c3947102afc04645a7f50fe49b7d7b3c75e
896fef6c98f4c19c57ff218ec284a967215a29f0
2022-08-12T14:04:53Z
java
2022-08-13T02:05:03Z
dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,457
[Feature][Style] Enable spotless to manage imports
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description * Currently `spotless` in DS will not manage `imports` automatically, we need to enable it to fix imports: 1. Remove unused imports. 2. Sort imports in better order (instead of simply sorting import alphabetically). 3. Remove wildcards imports. ### Use case * Already described above. ### Related issues related: #10963 ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11457
https://github.com/apache/dolphinscheduler/pull/11458
7ff34c3947102afc04645a7f50fe49b7d7b3c75e
896fef6c98f4c19c57ff218ec284a967215a29f0
2022-08-12T14:04:53Z
java
2022-08-13T02:05:03Z
dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
*/ package org.apache.dolphinscheduler.plugin.task.zeppelin; import com.fasterxml.jackson.databind.ObjectMapper; import kong.unirest.Unirest; import org.apache.dolphinscheduler.plugin.task.api.AbstractTaskExecutor; import org.apache.dolphinscheduler.plugin.task.api.TaskConstants; import org.apache.dolphinscheduler.plugin.task.api.TaskExecutionContext; import org.apache.dolphinscheduler.plugin.task.api.parameters.AbstractParameters; import org.apache.dolphinscheduler.spi.utils.DateUtils; import org.apache.dolphinscheduler.spi.utils.JSONUtils; import org.apache.zeppelin.client.ClientConfig; import org.apache.zeppelin.client.NoteResult; import org.apache.zeppelin.client.ParagraphResult; import org.apache.zeppelin.client.Status; import org.apache.zeppelin.client.ZeppelinClient; import java.util.HashMap; import java.util.List; import java.util.Map; public class ZeppelinTask extends AbstractTaskExecutor { /** * taskExecutionContext */ private final TaskExecutionContext taskExecutionContext; /** * zeppelin parameters */ private ZeppelinParameters zeppelinParameters; /** * zeppelin api client */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,457
[Feature][Style] Enable spotless to manage imports
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description * Currently `spotless` in DS will not manage `imports` automatically, we need to enable it to fix imports: 1. Remove unused imports. 2. Sort imports in better order (instead of simply sorting import alphabetically). 3. Remove wildcards imports. ### Use case * Already described above. ### Related issues related: #10963 ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11457
https://github.com/apache/dolphinscheduler/pull/11458
7ff34c3947102afc04645a7f50fe49b7d7b3c75e
896fef6c98f4c19c57ff218ec284a967215a29f0
2022-08-12T14:04:53Z
java
2022-08-13T02:05:03Z
dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
private ZeppelinClient zClient; /** * constructor * * @param taskExecutionContext taskExecutionContext */ protected ZeppelinTask(TaskExecutionContext taskExecutionContext) { super(taskExecutionContext); this.taskExecutionContext = taskExecutionContext; } @Override public void init() { final String taskParams = taskExecutionContext.getTaskParams(); logger.info("zeppelin task params:{}", taskParams); this.zeppelinParameters = JSONUtils.parseObject(taskParams, ZeppelinParameters.class); if (this.zeppelinParameters == null || !this.zeppelinParameters.checkParameters()) { throw new ZeppelinTaskException("zeppelin task params is not valid"); } this.zClient = getZeppelinClient(); } @Override public void handle() throws Exception { try { final String paragraphId = this.zeppelinParameters.getParagraphId(); final String productionNoteDirectory = this.zeppelinParameters.getProductionNoteDirectory(); final String parameters = this.zeppelinParameters.getParameters(); String noteId = this.zeppelinParameters.getNoteId(); Map<String, String> zeppelinParamsMap = new HashMap<>(); if (parameters != null) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,457
[Feature][Style] Enable spotless to manage imports
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description * Currently `spotless` in DS will not manage `imports` automatically, we need to enable it to fix imports: 1. Remove unused imports. 2. Sort imports in better order (instead of simply sorting import alphabetically). 3. Remove wildcards imports. ### Use case * Already described above. ### Related issues related: #10963 ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11457
https://github.com/apache/dolphinscheduler/pull/11458
7ff34c3947102afc04645a7f50fe49b7d7b3c75e
896fef6c98f4c19c57ff218ec284a967215a29f0
2022-08-12T14:04:53Z
java
2022-08-13T02:05:03Z
dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
ObjectMapper mapper = new ObjectMapper(); zeppelinParamsMap = mapper.readValue(parameters, Map.class); } String resultContent; Status status = Status.FINISHED; if (productionNoteDirectory != null) { final String cloneNotePath = String.format( "%s%s_%s", productionNoteDirectory, noteId, DateUtils.getTimestampString()); noteId = this.zClient.cloneNote(noteId, cloneNotePath); } if (paragraphId == null) { final NoteResult noteResult = this.zClient.executeNote(noteId, zeppelinParamsMap); final List<ParagraphResult> paragraphResultList = noteResult.getParagraphResultList(); StringBuilder resultContentBuilder = new StringBuilder(); for (ParagraphResult paragraphResult : paragraphResultList) { resultContentBuilder.append( String.format( "paragraph_id: %s, paragraph_result: %s\n", paragraphResult.getParagraphId(), paragraphResult.getResultInText())); status = paragraphResult.getStatus(); if (status != Status.FINISHED) { break;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,457
[Feature][Style] Enable spotless to manage imports
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description * Currently `spotless` in DS will not manage `imports` automatically, we need to enable it to fix imports: 1. Remove unused imports. 2. Sort imports in better order (instead of simply sorting import alphabetically). 3. Remove wildcards imports. ### Use case * Already described above. ### Related issues related: #10963 ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11457
https://github.com/apache/dolphinscheduler/pull/11458
7ff34c3947102afc04645a7f50fe49b7d7b3c75e
896fef6c98f4c19c57ff218ec284a967215a29f0
2022-08-12T14:04:53Z
java
2022-08-13T02:05:03Z
dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
} } resultContent = resultContentBuilder.toString(); } else { final ParagraphResult paragraphResult = this.zClient.executeParagraph(noteId, paragraphId, zeppelinParamsMap); resultContent = paragraphResult.getResultInText(); status = paragraphResult.getStatus(); } if (productionNoteDirectory != null) { this.zClient.deleteNote(noteId); } final int exitStatusCode = mapStatusToExitCode(status); setAppIds(String.format("%s-%s", noteId, paragraphId)); setExitStatusCode(exitStatusCode); logger.info("zeppelin task finished with results: {}", resultContent); } catch (Exception e) { setExitStatusCode(TaskConstants.EXIT_CODE_FAILURE); logger.error("zeppelin task submit failed with error", e); } } /** * create zeppelin client from zeppelin config * * @return ZeppelinClient */ private ZeppelinClient getZeppelinClient() { final String restEndpoint = zeppelinParameters.getRestEndpoint(); final ClientConfig clientConfig = new ClientConfig(restEndpoint);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,457
[Feature][Style] Enable spotless to manage imports
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description * Currently `spotless` in DS will not manage `imports` automatically, we need to enable it to fix imports: 1. Remove unused imports. 2. Sort imports in better order (instead of simply sorting import alphabetically). 3. Remove wildcards imports. ### Use case * Already described above. ### Related issues related: #10963 ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11457
https://github.com/apache/dolphinscheduler/pull/11458
7ff34c3947102afc04645a7f50fe49b7d7b3c75e
896fef6c98f4c19c57ff218ec284a967215a29f0
2022-08-12T14:04:53Z
java
2022-08-13T02:05:03Z
dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
ZeppelinClient zClient = null; try { zClient = new ZeppelinClient(clientConfig); final String zeppelinVersion = zClient.getVersion(); logger.info("zeppelin version: {}", zeppelinVersion); } catch (Exception e) { logger.error("some error"); } return zClient; } /** * map zeppelin task status to exitStatusCode * * @param status zeppelin job status * @return exitStatusCode */ private int mapStatusToExitCode(Status status) { switch (status) { case FINISHED: return TaskConstants.EXIT_CODE_SUCCESS; case ABORT: return TaskConstants.EXIT_CODE_KILL; default: return TaskConstants.EXIT_CODE_FAILURE; } } @Override public AbstractParameters getParameters() { return zeppelinParameters;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,457
[Feature][Style] Enable spotless to manage imports
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description * Currently `spotless` in DS will not manage `imports` automatically, we need to enable it to fix imports: 1. Remove unused imports. 2. Sort imports in better order (instead of simply sorting import alphabetically). 3. Remove wildcards imports. ### Use case * Already described above. ### Related issues related: #10963 ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11457
https://github.com/apache/dolphinscheduler/pull/11458
7ff34c3947102afc04645a7f50fe49b7d7b3c75e
896fef6c98f4c19c57ff218ec284a967215a29f0
2022-08-12T14:04:53Z
java
2022-08-13T02:05:03Z
dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
} @Override public void cancelApplication(boolean status) throws Exception { final String restEndpoint = this.zeppelinParameters.getRestEndpoint(); super.cancelApplication(status); final String noteId = this.zeppelinParameters.getNoteId(); final String paragraphId = this.zeppelinParameters.getParagraphId(); if (paragraphId == null) { logger.info("trying terminate zeppelin task, taskId: {}, noteId: {}", this.taskExecutionContext.getTaskInstanceId(), noteId); Unirest.config().defaultBaseUrl(restEndpoint + "/api"); Unirest.delete("/notebook/job/{noteId}").routeParam("noteId", noteId).asJson(); logger.info("zeppelin task terminated, taskId: {}, noteId: {}", this.taskExecutionContext.getTaskInstanceId(), noteId); } else { logger.info("trying terminate zeppelin task, taskId: {}, noteId: {}, paragraphId: {}", this.taskExecutionContext.getTaskInstanceId(), noteId, paragraphId); this.zClient.cancelParagraph(noteId, paragraphId); logger.info("zeppelin task terminated, taskId: {}, noteId: {}, paragraphId: {}", this.taskExecutionContext.getTaskInstanceId(), noteId, paragraphId); } } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParameters.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.plugin.task.datax; import org.apache.dolphinscheduler.plugin.task.api.enums.ResourceType; import org.apache.dolphinscheduler.plugin.task.api.model.ResourceInfo; import org.apache.dolphinscheduler.plugin.task.api.parameters.AbstractParameters; import org.apache.dolphinscheduler.plugin.task.api.parameters.resource.DataSourceParameters; import org.apache.dolphinscheduler.plugin.task.api.parameters.resource.ResourceParametersHelper; import org.apache.dolphinscheduler.spi.enums.Flag; import org.apache.dolphinscheduler.spi.utils.StringUtils; import java.util.ArrayList; import java.util.List;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParameters.java
import java.util.Objects; /** * DataX parameter */ public class DataxParameters extends AbstractParameters { /** * if custom json config,eg 0, 1 */ private int customConfig; /** * if customConfig eq 1 ,then json is usable */ private String json; /** * data source type,eg MYSQL, POSTGRES ... */ private String dsType; /** * datasource id */ private int dataSource; /** * data target type,eg MYSQL, POSTGRES ... */ private String dtType; /** * datatarget id */ private int dataTarget; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParameters.java
* sql */ private String sql; /** * target table */ private String targetTable; /** * Pre Statements */ private List<String> preStatements; /** * Post Statements */ private List<String> postStatements; /** * speed byte num */ private int jobSpeedByte; /** * speed record count */ private int jobSpeedRecord; /** * Xms memory */ private int xms; /** * Xmx memory */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParameters.java
private int xmx; public int getCustomConfig() { return customConfig; } public void setCustomConfig(int customConfig) { this.customConfig = customConfig; } public String getJson() { return json; } public void setJson(String json) { this.json = json; } public String getDsType() { return dsType; } public void setDsType(String dsType) { this.dsType = dsType; } public int getDataSource() { return dataSource; } public void setDataSource(int dataSource) { this.dataSource = dataSource; } public String getDtType() { return dtType; } public void setDtType(String dtType) { this.dtType = dtType;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParameters.java
} public int getDataTarget() { return dataTarget; } public void setDataTarget(int dataTarget) { this.dataTarget = dataTarget; } public String getSql() { return sql; } public void setSql(String sql) { this.sql = sql; } public String getTargetTable() { return targetTable; } public void setTargetTable(String targetTable) { this.targetTable = targetTable; } public List<String> getPreStatements() { return preStatements; } public void setPreStatements(List<String> preStatements) { this.preStatements = preStatements; } public List<String> getPostStatements() { return postStatements; } public void setPostStatements(List<String> postStatements) { this.postStatements = postStatements;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParameters.java
} public int getJobSpeedByte() { return jobSpeedByte; } public void setJobSpeedByte(int jobSpeedByte) { this.jobSpeedByte = jobSpeedByte; } public int getJobSpeedRecord() { return jobSpeedRecord; } public void setJobSpeedRecord(int jobSpeedRecord) { this.jobSpeedRecord = jobSpeedRecord; } public int getXms() { return xms; } public void setXms(int xms) { this.xms = xms; } public int getXmx() { return xmx; } public void setXmx(int xmx) { this.xmx = xmx; } @Override public boolean checkParameters() { if (customConfig == Flag.NO.ordinal()) { return dataSource != 0 && dataTarget != 0
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParameters.java
&& StringUtils.isNotEmpty(sql) && StringUtils.isNotEmpty(targetTable); } else { return StringUtils.isNotEmpty(json); } } @Override public List<ResourceInfo> getResourceFilesList() { return new ArrayList<>(); } @Override public String toString() { return "DataxParameters{" + "customConfig=" + customConfig + ", json='" + json + '\'' + ", dsType='" + dsType + '\'' + ", dataSource=" + dataSource + ", dtType='" + dtType + '\'' + ", dataTarget=" + dataTarget + ", sql='" + sql + '\'' + ", targetTable='" + targetTable + '\'' + ", preStatements=" + preStatements + ", postStatements=" + postStatements + ", jobSpeedByte=" + jobSpeedByte + ", jobSpeedRecord=" + jobSpeedRecord + ", xms=" + xms + ", xmx=" + xmx + '}'; } @Override
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParameters.java
public ResourceParametersHelper getResources() { ResourceParametersHelper resources = super.getResources(); if (customConfig == Flag.YES.ordinal()) { return resources; } resources.put(ResourceType.DATASOURCE, dataSource); resources.put(ResourceType.DATASOURCE, dataTarget); return resources; } public DataxTaskExecutionContext generateExtendedContext(ResourceParametersHelper parametersHelper) { DataxTaskExecutionContext dataxTaskExecutionContext = new DataxTaskExecutionContext(); if (customConfig == Flag.YES.ordinal()) { return dataxTaskExecutionContext; } DataSourceParameters dbSource = (DataSourceParameters) parametersHelper.getResourceParameters(ResourceType.DATASOURCE, dataSource); DataSourceParameters dbTarget = (DataSourceParameters) parametersHelper.getResourceParameters(ResourceType.DATASOURCE, dataTarget); if (Objects.nonNull(dbSource)) { dataxTaskExecutionContext.setDataSourceId(dataSource); dataxTaskExecutionContext.setSourcetype(dbSource.getType()); dataxTaskExecutionContext.setSourceConnectionParams(dbSource.getConnectionParams()); } if (Objects.nonNull(dbTarget)) { dataxTaskExecutionContext.setDataTargetId(dataTarget); dataxTaskExecutionContext.setTargetType(dbTarget.getType()); dataxTaskExecutionContext.setTargetConnectionParams(dbTarget.getConnectionParams()); } return dataxTaskExecutionContext; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/test/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParametersTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.plugin.task.datax; import org.junit.Assert; import org.junit.Test; public class DataxParametersTest {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/test/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParametersTest.java
/** * jvm parameters */ public static final String JVM_PARAM = " --jvm=\"-Xms%sG -Xmx%sG\" "; @Test public void testLoadJvmEnv() { DataxParameters dataxParameters = new DataxParameters(); dataxParameters.setXms(0); dataxParameters.setXmx(-100); String actual = loadJvmEnvTest(dataxParameters); String except = " --jvm=\"-Xms1G -Xmx1G\" "; Assert.assertEquals(except,actual); dataxParameters.setXms(13); dataxParameters.setXmx(14); actual = loadJvmEnvTest(dataxParameters); except = " --jvm=\"-Xms13G -Xmx14G\" "; Assert.assertEquals(except,actual); } @Test public void testToString() { DataxParameters dataxParameters = new DataxParameters(); dataxParameters.setCustomConfig(0); dataxParameters.setXms(0); dataxParameters.setXmx(-100); dataxParameters.setDataSource(1); dataxParameters.setDataTarget(1); dataxParameters.setDsType("MYSQL");
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
10,182
[Feature][Task] datax access kerberos authenticated bigdata cluster
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Because Kerberos authentication is added to the big data cluster, when using DATAX to write data to HDFS, you need to use the tenant's KeyTab file to introduce it into json file. Can this file reference use the content of the resource center like a shell? When using, the dataX plug-in downloads the keytab file locally through the resource center runtime, so as to obtain the absolute path and then transfer the parameters into the JSON file, Instead of importing files into the specified server in advance. ### Use case datax access kerberos authenticated bigdata cluster ### Related issues datax: ![image](https://user-images.githubusercontent.com/18652779/169676736-1a352fa4-55cf-418d-b21b-b34048da9530.png) shell: ![image](https://user-images.githubusercontent.com/18652779/169676880-5adad6d5-db73-424e-8cb7-1bcb5a9bf7ba.png) ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/10182
https://github.com/apache/dolphinscheduler/pull/11387
182455ced7e85000c51874d0cba07f5ca4a52146
e5d06c40a524740454868dea9ed5fa778d9ccbf7
2022-05-22T03:35:33Z
java
2022-08-17T02:01:20Z
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/test/java/org/apache/dolphinscheduler/plugin/task/datax/DataxParametersTest.java
dataxParameters.setDtType("MYSQL"); dataxParameters.setJobSpeedByte(1); dataxParameters.setJobSpeedRecord(1); dataxParameters.setJson("json"); String expected = "DataxParameters" + "{" + "customConfig=0, " + "json='json', " + "dsType='MYSQL', " + "dataSource=1, " + "dtType='MYSQL', " + "dataTarget=1, " + "sql='null', " + "targetTable='null', " + "preStatements=null, " + "postStatements=null, " + "jobSpeedByte=1, " + "jobSpeedRecord=1, " + "xms=0, " + "xmx=-100" + "}"; Assert.assertEquals(expected,dataxParameters.toString()); } public String loadJvmEnvTest(DataxParameters dataXParameters) { int xms = dataXParameters.getXms() < 1 ? 1 : dataXParameters.getXms(); int xmx = dataXParameters.getXmx() < 1 ? 1 : dataXParameters.getXmx(); return String.format(JVM_PARAM, xms, xmx); } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.api.enums; import java.util.Locale; import java.util.Optional; import org.springframework.context.i18n.LocaleContextHolder; /** * status enum // todo #4855 One category one interval */ public enum Status { SUCCESS(0, "success", "成功"), INTERNAL_SERVER_ERROR_ARGS(10000, "Internal Server Error: {0}", "服务端异常: {0}"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
REQUEST_PARAMS_NOT_VALID_ERROR(10001, "request parameter {0} is not valid", "请求参数[{0}]无效"), TASK_TIMEOUT_PARAMS_ERROR(10002, "task timeout parameter is not valid", "任务超时参数无效"), USER_NAME_EXIST(10003, "user name already exists", "用户名已存在"), USER_NAME_NULL(10004, "user name is null", "用户名不能为空"), HDFS_OPERATION_ERROR(10006, "hdfs operation error", "hdfs操作错误"), TASK_INSTANCE_NOT_FOUND(10008, "task instance not found", "任务实例不存在"), OS_TENANT_CODE_EXIST(10009, "os tenant code {0} already exists", "操作系统租户[{0}]已存在"), USER_NOT_EXIST(10010, "user {0} not exists", "用户[{0}]不存在"), ALERT_GROUP_NOT_EXIST(10011, "alarm group not found", "告警组不存在"), ALERT_GROUP_EXIST(10012, "alarm group already exists", "告警组名称已存在"), USER_NAME_PASSWD_ERROR(10013, "user name or password error", "用户名或密码错误"), LOGIN_SESSION_FAILED(10014, "create session failed!", "创建session失败"), DATASOURCE_EXIST(10015, "data source name already exists", "数据源名称已存在"), DATASOURCE_CONNECT_FAILED(10016, "data source connection failed", "建立数据源连接失败"), TENANT_NOT_EXIST(10017, "tenant not exists", "租户不存在"), PROJECT_NOT_FOUND(10018, "project {0} not found ", "项目[{0}]不存在"), PROJECT_ALREADY_EXISTS(10019, "project {0} already exists", "项目名称[{0}]已存在"), TASK_INSTANCE_NOT_EXISTS(10020, "task instance {0} does not exist", "任务实例[{0}]不存在"), TASK_INSTANCE_NOT_SUB_WORKFLOW_INSTANCE(10021, "task instance {0} is not sub process instance", "任务实例[{0}]不是子流程实例"), SCHEDULE_CRON_NOT_EXISTS(10022, "scheduler crontab {0} does not exist", "调度配置定时表达式[{0}]不存在"), SCHEDULE_CRON_ONLINE_FORBID_UPDATE(10023, "online status does not allow update operations", "调度配置上线状态不允许修改"), SCHEDULE_CRON_CHECK_FAILED(10024, "scheduler crontab expression validation failure: {0}", "调度配置定时表达式验证失败: {0}"), MASTER_NOT_EXISTS(10025, "master does not exist", "无可用master节点"), SCHEDULE_STATUS_UNKNOWN(10026, "unknown status: {0}", "未知状态: {0}"), CREATE_ALERT_GROUP_ERROR(10027, "create alert group error", "创建告警组错误"), QUERY_ALL_ALERTGROUP_ERROR(10028, "query all alertgroup error", "查询告警组错误"), LIST_PAGING_ALERT_GROUP_ERROR(10029, "list paging alert group error", "分页查询告警组错误"), UPDATE_ALERT_GROUP_ERROR(10030, "update alert group error", "更新告警组错误"), DELETE_ALERT_GROUP_ERROR(10031, "delete alert group error", "删除告警组错误"), ALERT_GROUP_GRANT_USER_ERROR(10032, "alert group grant user error", "告警组授权用户错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
CREATE_DATASOURCE_ERROR(10033, "create datasource error", "创建数据源错误"), UPDATE_DATASOURCE_ERROR(10034, "update datasource error", "更新数据源错误"), QUERY_DATASOURCE_ERROR(10035, "query datasource error", "查询数据源错误"), CONNECT_DATASOURCE_FAILURE(10036, "connect datasource failure", "建立数据源连接失败"), CONNECTION_TEST_FAILURE(10037, "connection test failure", "测试数据源连接失败"), DELETE_DATA_SOURCE_FAILURE(10038, "delete data source failure", "删除数据源失败"), VERIFY_DATASOURCE_NAME_FAILURE(10039, "verify datasource name failure", "验证数据源名称失败"), UNAUTHORIZED_DATASOURCE(10040, "unauthorized datasource", "未经授权的数据源"), AUTHORIZED_DATA_SOURCE(10041, "authorized data source", "授权数据源失败"), LOGIN_SUCCESS(10042, "login success", "登录成功"), USER_LOGIN_FAILURE(10043, "user login failure", "用户登录失败"), LIST_WORKERS_ERROR(10044, "list workers error", "查询worker列表错误"), LIST_MASTERS_ERROR(10045, "list masters error", "查询master列表错误"), UPDATE_PROJECT_ERROR(10046, "update project error", "更新项目信息错误"), QUERY_PROJECT_DETAILS_BY_CODE_ERROR(10047, "query project details by code error", "查询项目详细信息错误"), CREATE_PROJECT_ERROR(10048, "create project error", "创建项目错误"), LOGIN_USER_QUERY_PROJECT_LIST_PAGING_ERROR(10049, "login user query project list paging error", "分页查询项目列表错误"), DELETE_PROJECT_ERROR(10050, "delete project error", "删除项目错误"), QUERY_UNAUTHORIZED_PROJECT_ERROR(10051, "query unauthorized project error", "查询未授权项目错误"), QUERY_AUTHORIZED_PROJECT(10052, "query authorized project", "查询授权项目错误"), QUERY_QUEUE_LIST_ERROR(10053, "query queue list error", "查询队列列表错误"), CREATE_RESOURCE_ERROR(10054, "create resource error", "创建资源错误"), UPDATE_RESOURCE_ERROR(10055, "update resource error", "更新资源错误"), QUERY_RESOURCES_LIST_ERROR(10056, "query resources list error", "查询资源列表错误"), QUERY_RESOURCES_LIST_PAGING(10057, "query resources list paging", "分页查询资源列表错误"), DELETE_RESOURCE_ERROR(10058, "delete resource error", "删除资源错误"), VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR(10059, "verify resource by name and type error", "资源名称或类型验证错误"), VIEW_RESOURCE_FILE_ON_LINE_ERROR(10060, "view resource file online error", "查看资源文件错误"), CREATE_RESOURCE_FILE_ON_LINE_ERROR(10061, "create resource file online error", "创建资源文件错误"), RESOURCE_FILE_IS_EMPTY(10062, "resource file is empty", "资源文件内容不能为空"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
EDIT_RESOURCE_FILE_ON_LINE_ERROR(10063, "edit resource file online error", "更新资源文件错误"), DOWNLOAD_RESOURCE_FILE_ERROR(10064, "download resource file error", "下载资源文件错误"), CREATE_UDF_FUNCTION_ERROR(10065, "create udf function error", "创建UDF函数错误"), VIEW_UDF_FUNCTION_ERROR(10066, "view udf function error", "查询UDF函数错误"), UPDATE_UDF_FUNCTION_ERROR(10067, "update udf function error", "更新UDF函数错误"), QUERY_UDF_FUNCTION_LIST_PAGING_ERROR(10068, "query udf function list paging error", "分页查询UDF函数列表错误"), QUERY_DATASOURCE_BY_TYPE_ERROR(10069, "query datasource by type error", "查询数据源信息错误"), VERIFY_UDF_FUNCTION_NAME_ERROR(10070, "verify udf function name error", "UDF函数名称验证错误"), DELETE_UDF_FUNCTION_ERROR(10071, "delete udf function error", "删除UDF函数错误"), AUTHORIZED_FILE_RESOURCE_ERROR(10072, "authorized file resource error", "授权资源文件错误"), AUTHORIZE_RESOURCE_TREE(10073, "authorize resource tree display error", "授权资源目录树错误"), UNAUTHORIZED_UDF_FUNCTION_ERROR(10074, "unauthorized udf function error", "查询未授权UDF函数错误"), AUTHORIZED_UDF_FUNCTION_ERROR(10075, "authorized udf function error", "授权UDF函数错误"), CREATE_SCHEDULE_ERROR(10076, "create schedule error", "创建调度配置错误"), UPDATE_SCHEDULE_ERROR(10077, "update schedule error", "更新调度配置错误"), PUBLISH_SCHEDULE_ONLINE_ERROR(10078, "publish schedule online error", "上线调度配置错误"), OFFLINE_SCHEDULE_ERROR(10079, "offline schedule error", "下线调度配置错误"), QUERY_SCHEDULE_LIST_PAGING_ERROR(10080, "query schedule list paging error", "分页查询调度配置列表错误"), QUERY_SCHEDULE_LIST_ERROR(10081, "query schedule list error", "查询调度配置列表错误"), QUERY_TASK_LIST_PAGING_ERROR(10082, "query task list paging error", "分页查询任务列表错误"), QUERY_TASK_RECORD_LIST_PAGING_ERROR(10083, "query task record list paging error", "分页查询任务记录错误"), CREATE_TENANT_ERROR(10084, "create tenant error", "创建租户错误"), QUERY_TENANT_LIST_PAGING_ERROR(10085, "query tenant list paging error", "分页查询租户列表错误"), QUERY_TENANT_LIST_ERROR(10086, "query tenant list error", "查询租户列表错误"), UPDATE_TENANT_ERROR(10087, "update tenant error", "更新租户错误"), DELETE_TENANT_BY_ID_ERROR(10088, "delete tenant by id error", "删除租户错误"), VERIFY_OS_TENANT_CODE_ERROR(10089, "verify os tenant code error", "操作系统租户验证错误"), CREATE_USER_ERROR(10090, "create user error", "创建用户错误"), QUERY_USER_LIST_PAGING_ERROR(10091, "query user list paging error", "分页查询用户列表错误"), UPDATE_USER_ERROR(10092, "update user error", "更新用户错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
DELETE_USER_BY_ID_ERROR(10093, "delete user by id error", "删除用户错误"), GRANT_PROJECT_ERROR(10094, "grant project error", "授权项目错误"), GRANT_RESOURCE_ERROR(10095, "grant resource error", "授权资源错误"), GRANT_UDF_FUNCTION_ERROR(10096, "grant udf function error", "授权UDF函数错误"), GRANT_DATASOURCE_ERROR(10097, "grant datasource error", "授权数据源错误"), GET_USER_INFO_ERROR(10098, "get user info error", "获取用户信息错误"), USER_LIST_ERROR(10099, "user list error", "查询用户列表错误"), VERIFY_USERNAME_ERROR(10100, "verify username error", "用户名验证错误"), UNAUTHORIZED_USER_ERROR(10101, "unauthorized user error", "查询未授权用户错误"), AUTHORIZED_USER_ERROR(10102, "authorized user error", "查询授权用户错误"), QUERY_TASK_INSTANCE_LOG_ERROR(10103, "view task instance log error", "查询任务实例日志错误"), DOWNLOAD_TASK_INSTANCE_LOG_FILE_ERROR(10104, "download task instance log file error", "下载任务日志文件错误"), CREATE_PROCESS_DEFINITION_ERROR(10105, "create process definition error", "创建工作流错误"), VERIFY_PROCESS_DEFINITION_NAME_UNIQUE_ERROR(10106, "verify process definition name unique error", "工作流定义名称验证错误"), UPDATE_PROCESS_DEFINITION_ERROR(10107, "update process definition error", "更新工作流定义错误"), RELEASE_PROCESS_DEFINITION_ERROR(10108, "release process definition error", "上线工作流错误"), QUERY_DETAIL_OF_PROCESS_DEFINITION_ERROR(10109, "query detail of process definition error", "查询工作流详细信息错误"), QUERY_PROCESS_DEFINITION_LIST(10110, "query process definition list", "查询工作流列表错误"), ENCAPSULATION_TREEVIEW_STRUCTURE_ERROR(10111, "encapsulation treeview structure error", "查询工作流树形图数据错误"), GET_TASKS_LIST_BY_PROCESS_DEFINITION_ID_ERROR(10112, "get tasks list by process definition id error", "查询工作流定义节点信息错误"), QUERY_PROCESS_INSTANCE_LIST_PAGING_ERROR(10113, "query process instance list paging error", "分页查询工作流实例列表错误"), QUERY_TASK_LIST_BY_PROCESS_INSTANCE_ID_ERROR(10114, "query task list by process instance id error", "查询任务实例列表错误"), UPDATE_PROCESS_INSTANCE_ERROR(10115, "update process instance error", "更新工作流实例错误"), QUERY_PROCESS_INSTANCE_BY_ID_ERROR(10116, "query process instance by id error", "查询工作流实例错误"), DELETE_PROCESS_INSTANCE_BY_ID_ERROR(10117, "delete process instance by id error", "删除工作流实例错误"), QUERY_SUB_PROCESS_INSTANCE_DETAIL_INFO_BY_TASK_ID_ERROR(10118, "query sub process instance detail info by task id error", "查询子流程任务实例错误"), QUERY_PARENT_PROCESS_INSTANCE_DETAIL_INFO_BY_SUB_PROCESS_INSTANCE_ID_ERROR(10119, "query parent process instance detail info by sub process instance id error", "查询子流程该工作流实例错误"), QUERY_PROCESS_INSTANCE_ALL_VARIABLES_ERROR(10120, "query process instance all variables error", "查询工作流自定义变量信息错误"), ENCAPSULATION_PROCESS_INSTANCE_GANTT_STRUCTURE_ERROR(10121, "encapsulation process instance gantt structure error", "查询工作流实例甘特图数据错误"), QUERY_PROCESS_DEFINITION_LIST_PAGING_ERROR(10122, "query process definition list paging error", "分页查询工作流定义列表错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
SIGN_OUT_ERROR(10123, "sign out error", "退出错误"), OS_TENANT_CODE_HAS_ALREADY_EXISTS(10124, "os tenant code has already exists", "操作系统租户已存在"), IP_IS_EMPTY(10125, "ip is empty", "IP地址不能为空"), SCHEDULE_CRON_REALEASE_NEED_NOT_CHANGE(10126, "schedule release is already {0}", "调度配置上线错误[{0}]"), CREATE_QUEUE_ERROR(10127, "create queue error", "创建队列错误"), QUEUE_NOT_EXIST(10128, "queue {0} not exists", "队列ID[{0}]不存在"), QUEUE_VALUE_EXIST(10129, "queue value {0} already exists", "队列值[{0}]已存在"), QUEUE_NAME_EXIST(10130, "queue name {0} already exists", "队列名称[{0}]已存在"), UPDATE_QUEUE_ERROR(10131, "update queue error", "更新队列信息错误"), NEED_NOT_UPDATE_QUEUE(10132, "no content changes, no updates are required", "数据未变更,不需要更新队列信息"), VERIFY_QUEUE_ERROR(10133, "verify queue error", "验证队列信息错误"), NAME_NULL(10134, "name must be not null", "名称不能为空"), NAME_EXIST(10135, "name {0} already exists", "名称[{0}]已存在"), SAVE_ERROR(10136, "save error", "保存错误"), DELETE_PROJECT_ERROR_DEFINES_NOT_NULL(10137, "please delete the process definitions in project first!", "请先删除全部工作流定义"), BATCH_DELETE_PROCESS_INSTANCE_BY_IDS_ERROR(10117, "batch delete process instance by ids {0} error", "批量删除工作流实例错误: {0}"), PREVIEW_SCHEDULE_ERROR(10139, "preview schedule error", "预览调度配置错误"), PARSE_TO_CRON_EXPRESSION_ERROR(10140, "parse cron to cron expression error", "解析调度表达式错误"), SCHEDULE_START_TIME_END_TIME_SAME(10141, "The start time must not be the same as the end", "开始时间不能和结束时间一样"), DELETE_TENANT_BY_ID_FAIL(10142, "delete tenant by id fail, for there are {0} process instances in executing using it", "删除租户失败,有[{0}]个运行中的工作流实例正在使用"), DELETE_TENANT_BY_ID_FAIL_DEFINES(10143, "delete tenant by id fail, for there are {0} process definitions using it", "删除租户失败,有[{0}]个工作流定义正在使用"), DELETE_TENANT_BY_ID_FAIL_USERS(10144, "delete tenant by id fail, for there are {0} users using it", "删除租户失败,有[{0}]个用户正在使用"), DELETE_WORKER_GROUP_BY_ID_FAIL(10145, "delete worker group by id fail, for there are {0} process instances in executing using it", "删除Worker分组失败,有[{0}]个运行中的工作流实例正在使用"), QUERY_WORKER_GROUP_FAIL(10146, "query worker group fail ", "查询worker分组失败"), DELETE_WORKER_GROUP_FAIL(10147, "delete worker group fail ", "删除worker分组失败"), USER_DISABLED(10148, "The current user is disabled", "当前用户已停用"), COPY_PROCESS_DEFINITION_ERROR(10149, "copy process definition from {0} to {1} error : {2}", "从{0}复制工作流到{1}错误 : {2}"), MOVE_PROCESS_DEFINITION_ERROR(10150, "move process definition from {0} to {1} error : {2}", "从{0}移动工作流到{1}错误 : {2}"), SWITCH_PROCESS_DEFINITION_VERSION_ERROR(10151, "Switch process definition version error", "切换工作流版本出错"), SWITCH_PROCESS_DEFINITION_VERSION_NOT_EXIST_PROCESS_DEFINITION_ERROR(10152
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
, "Switch process definition version error: not exists process definition, [process definition id {0}]", "切换工作流版本出错:工作流不存在,[工作流id {0}]"), SWITCH_PROCESS_DEFINITION_VERSION_NOT_EXIST_PROCESS_DEFINITION_VERSION_ERROR(10153 , "Switch process definition version error: not exists process definition version, [process definition id {0}] [version number {1}]", "切换工作流版本出错:工作流版本信息不存在,[工作流id {0}] [版本号 {1}]"), QUERY_PROCESS_DEFINITION_VERSIONS_ERROR(10154, "query process definition versions error", "查询工作流历史版本信息出错"), DELETE_PROCESS_DEFINITION_VERSION_ERROR(10156, "delete process definition version error", "删除工作流历史版本出错"), QUERY_USER_CREATED_PROJECT_ERROR(10157, "query user created project error error", "查询用户创建的项目错误"), PROCESS_DEFINITION_CODES_IS_EMPTY(10158, "process definition codes is empty", "工作流CODES不能为空"), BATCH_COPY_PROCESS_DEFINITION_ERROR(10159, "batch copy process definition error", "复制工作流错误"), BATCH_MOVE_PROCESS_DEFINITION_ERROR(10160, "batch move process definition error", "移动工作流错误"), QUERY_WORKFLOW_LINEAGE_ERROR(10161, "query workflow lineage error", "查询血缘失败"), QUERY_AUTHORIZED_AND_USER_CREATED_PROJECT_ERROR(10162, "query authorized and user created project error error", "查询授权的和用户创建的项目错误"), DELETE_PROCESS_DEFINITION_EXECUTING_FAIL(10163, "delete process definition by code fail, for there are {0} process instances in executing using it", "删除工作流定义失败,有[{0}]个运行中的工作流实例正在使用"), CHECK_OS_TENANT_CODE_ERROR(10164, "Tenant code invalid, should follow linux's users naming conventions", "非法的租户名,需要遵守 Linux 用户命名规范"), FORCE_TASK_SUCCESS_ERROR(10165, "force task success error", "强制成功任务实例错误"), TASK_INSTANCE_STATE_OPERATION_ERROR(10166, "the status of task instance {0} is {1},Cannot perform force success operation", "任务实例[{0}]的状态是[{1}],无法执行强制成功操作"), DATASOURCE_TYPE_NOT_EXIST(10167, "data source type not exist", "数据源类型不存在"), PROCESS_DEFINITION_NAME_EXIST(10168, "process definition name {0} already exists", "工作流定义名称[{0}]已存在"), DATASOURCE_DB_TYPE_ILLEGAL(10169, "datasource type illegal", "数据源类型参数不合法"), DATASOURCE_PORT_ILLEGAL(10170, "datasource port illegal", "数据源端口参数不合法"), DATASOURCE_OTHER_PARAMS_ILLEGAL(10171, "datasource other params illegal", "数据源其他参数不合法"), DATASOURCE_NAME_ILLEGAL(10172, "datasource name illegal", "数据源名称不合法"), DATASOURCE_HOST_ILLEGAL(10173, "datasource host illegal", "数据源HOST不合法"), DELETE_WORKER_GROUP_NOT_EXIST(10174, "delete worker group not exist ", "删除worker分组不存在"), CREATE_WORKER_GROUP_FORBIDDEN_IN_DOCKER(10175, "create worker group forbidden in docker ", "创建worker分组在docker中禁止"), DELETE_WORKER_GROUP_FORBIDDEN_IN_DOCKER(10176, "delete worker group forbidden in docker ", "删除worker分组在docker中禁止"), WORKER_ADDRESS_INVALID(10177, "worker address {0} invalid", "worker地址[{0}]无效"), QUERY_WORKER_ADDRESS_LIST_FAIL(10178, "query worker address list fail ", "查询worker地址列表失败"), TRANSFORM_PROJECT_OWNERSHIP(10179, "Please transform project ownership [{0}]", "请先转移项目所有权[{0}]"), QUERY_ALERT_GROUP_ERROR(10180, "query alert group error", "查询告警组错误"), CURRENT_LOGIN_USER_TENANT_NOT_EXIST(10181, "the tenant of the currently login user is not specified", "未指定当前登录用户的租户"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
REVOKE_PROJECT_ERROR(10182, "revoke project error", "撤销项目授权错误"), QUERY_AUTHORIZED_USER(10183, "query authorized user error", "查询拥有项目权限的用户错误"), PROJECT_NOT_EXIST(10190, "This project was not found. Please refresh page.", "该项目不存在,请刷新页面"), TASK_INSTANCE_HOST_IS_NULL(10191, "task instance host is null", "任务实例host为空"), QUERY_EXECUTING_WORKFLOW_ERROR(10192, "query executing workflow error", "查询运行的工作流实例错误"), DELETE_PROCESS_DEFINITION_USE_BY_OTHER_FAIL(10193, "delete process definition fail, cause used by other tasks: {0}", "删除工作流定时失败,被其他任务引用:{0}"), DELETE_TASK_USE_BY_OTHER_FAIL(10194, "delete task {0} fail, cause used by other tasks: {1}", "删除任务 {0} 失败,被其他任务引用:{1}"), TASK_WITH_DEPENDENT_ERROR(10195, "task used in other tasks", "删除被其他任务引用"), TASK_SAVEPOINT_ERROR(10196, "task savepoint error", "任务实例savepoint错误"), TASK_STOP_ERROR(10197, "task stop error", "任务实例停止错误"), UDF_FUNCTION_NOT_EXIST(20001, "UDF function not found", "UDF函数不存在"), UDF_FUNCTION_EXISTS(20002, "UDF function already exists", "UDF函数已存在"), RESOURCE_NOT_EXIST(20004, "resource not exist", "资源不存在"), RESOURCE_EXIST(20005, "resource already exists", "资源已存在"), RESOURCE_SUFFIX_NOT_SUPPORT_VIEW(20006, "resource suffix do not support online viewing", "资源文件后缀不支持查看"), RESOURCE_SIZE_EXCEED_LIMIT(20007, "upload resource file size exceeds limit", "上传资源文件大小超过限制"), RESOURCE_SUFFIX_FORBID_CHANGE(20008, "resource suffix not allowed to be modified", "资源文件后缀不支持修改"), UDF_RESOURCE_SUFFIX_NOT_JAR(20009, "UDF resource suffix name must be jar", "UDF资源文件后缀名只支持[jar]"), HDFS_COPY_FAIL(20010, "hdfs copy {0} -> {1} fail", "hdfs复制失败:[{0}] -> [{1}]"), RESOURCE_FILE_EXIST(20011, "resource file {0} already exists in hdfs,please delete it or change name!", "资源文件[{0}]在hdfs中已存在,请删除或修改资源名"), RESOURCE_FILE_NOT_EXIST(20012, "resource file {0} not exists !", "资源文件[{0}]不存在"), UDF_RESOURCE_IS_BOUND(20013, "udf resource file is bound by UDF functions:{0}", "udf函数绑定了资源文件[{0}]"), RESOURCE_IS_USED(20014, "resource file is used by process definition", "资源文件被上线的流程定义使用了"), PARENT_RESOURCE_NOT_EXIST(20015, "parent resource not exist", "父资源文件不存在"), RESOURCE_NOT_EXIST_OR_NO_PERMISSION(20016, "resource not exist or no permission,please view the task node and remove error resource", "请检查任务节点并移除无权限或者已删除的资源"), RESOURCE_IS_AUTHORIZED(20017, "resource is authorized to user {0},suffix not allowed to be modified", "资源文件已授权其他用户[{0}],后缀不允许修改"), USER_NO_OPERATION_PERM(30001, "user has no operation privilege", "当前用户没有操作权限"), USER_NO_OPERATION_PROJECT_PERM(30002, "user {0} is not has project {1} permission", "当前用户[{0}]没有[{1}]项目的操作权限"), PROCESS_INSTANCE_NOT_EXIST(50001, "process instance {0} does not exist", "工作流实例[{0}]不存在"), PROCESS_INSTANCE_EXIST(50002, "process instance {0} already exists", "工作流实例[{0}]已存在"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
PROCESS_DEFINE_NOT_EXIST(50003, "process definition {0} does not exist", "工作流定义[{0}]不存在"), PROCESS_DEFINE_NOT_RELEASE(50004, "process definition {0} process version {1} not online", "工作流定义[{0}] 工作流版本[{1}]不是上线状态"), SUB_PROCESS_DEFINE_NOT_RELEASE(50004, "exist sub process definition not online", "存在子工作流定义不是上线状态"), PROCESS_INSTANCE_ALREADY_CHANGED(50005, "the status of process instance {0} is already {1}", "工作流实例[{0}]的状态已经是[{1}]"), PROCESS_INSTANCE_STATE_OPERATION_ERROR(50006, "the status of process instance {0} is {1},Cannot perform {2} operation", "工作流实例[{0}]的状态是[{1}],无法执行[{2}]操作"), SUB_PROCESS_INSTANCE_NOT_EXIST(50007, "the task belong to process instance does not exist", "子工作流实例不存在"), PROCESS_DEFINE_NOT_ALLOWED_EDIT(50008, "process definition {0} does not allow edit", "工作流定义[{0}]不允许修改"), PROCESS_INSTANCE_EXECUTING_COMMAND(50009, "process instance {0} is executing the command, please wait ...", "工作流实例[{0}]正在执行命令,请稍等..."), PROCESS_INSTANCE_NOT_SUB_PROCESS_INSTANCE(50010, "process instance {0} is not sub process instance", "工作流实例[{0}]不是子工作流实例"), TASK_INSTANCE_STATE_COUNT_ERROR(50011, "task instance state count error", "查询各状态任务实例数错误"), COUNT_PROCESS_INSTANCE_STATE_ERROR(50012, "count process instance state error", "查询各状态流程实例数错误"), COUNT_PROCESS_DEFINITION_USER_ERROR(50013, "count process definition user error", "查询各用户流程定义数错误"), START_PROCESS_INSTANCE_ERROR(50014, "start process instance error", "运行工作流实例错误"), BATCH_START_PROCESS_INSTANCE_ERROR(50014, "batch start process instance error: {0}", "批量运行工作流实例错误: {0}"), PROCESS_INSTANCE_ERROR(50014, "process instance delete error: {0}", "工作流实例删除[{0}]错误"), EXECUTE_PROCESS_INSTANCE_ERROR(50015, "execute process instance error", "操作工作流实例错误"), CHECK_PROCESS_DEFINITION_ERROR(50016, "check process definition error", "工作流定义错误"), QUERY_RECIPIENTS_AND_COPYERS_BY_PROCESS_DEFINITION_ERROR(50017, "query recipients and copyers by process definition error", "查询收件人和抄送人错误"), DATA_IS_NOT_VALID(50017, "data {0} not valid", "数据[{0}]无效"), DATA_IS_NULL(50018, "data {0} is null", "数据[{0}]不能为空"), PROCESS_NODE_HAS_CYCLE(50019, "process node has cycle", "流程节点间存在循环依赖"), PROCESS_NODE_S_PARAMETER_INVALID(50020, "process node {0} parameter invalid", "流程节点[{0}]参数无效"), PROCESS_DEFINE_STATE_ONLINE(50021, "process definition [{0}] is already online", "工作流定义[{0}]已上线"), DELETE_PROCESS_DEFINE_BY_CODE_ERROR(50022, "delete process definition by code error", "删除工作流定义错误"), SCHEDULE_CRON_STATE_ONLINE(50023, "the status of schedule {0} is already online", "调度配置[{0}]已上线"), DELETE_SCHEDULE_CRON_BY_ID_ERROR(50024, "delete schedule by id error", "删除调度配置错误"), BATCH_DELETE_PROCESS_DEFINE_ERROR(50025, "batch delete process definition error", "批量删除工作流定义错误"), BATCH_DELETE_PROCESS_DEFINE_BY_CODES_ERROR(50026, "batch delete process definition by codes {0} error", "批量删除工作流定义[{0}]错误"), DELETE_PROCESS_DEFINE_BY_CODES_ERROR(50026, "delete process definition by codes {0} error", "删除工作流定义[{0}]错误"), TENANT_NOT_SUITABLE(50027, "there is not any tenant suitable, please choose a tenant available.", "没有合适的租户,请选择可用的租户"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
EXPORT_PROCESS_DEFINE_BY_ID_ERROR(50028, "export process definition by id error", "导出工作流定义错误"), BATCH_EXPORT_PROCESS_DEFINE_BY_IDS_ERROR(50028, "batch export process definition by ids error", "批量导出工作流定义错误"), IMPORT_PROCESS_DEFINE_ERROR(50029, "import process definition error", "导入工作流定义错误"), TASK_DEFINE_NOT_EXIST(50030, "task definition [{0}] does not exist", "任务定义[{0}]不存在"), CREATE_PROCESS_TASK_RELATION_ERROR(50032, "create process task relation error", "创建工作流任务关系错误"), PROCESS_TASK_RELATION_NOT_EXIST(50033, "process task relation [{0}] does not exist", "工作流任务关系[{0}]不存在"), PROCESS_TASK_RELATION_EXIST(50034, "process task relation is already exist, processCode:[{0}]", "工作流任务关系已存在, processCode:[{0}]"), PROCESS_DAG_IS_EMPTY(50035, "process dag is empty", "工作流dag是空"), CHECK_PROCESS_TASK_RELATION_ERROR(50036, "check process task relation error", "工作流任务关系参数错误"), CREATE_TASK_DEFINITION_ERROR(50037, "create task definition error", "创建任务错误"), UPDATE_TASK_DEFINITION_ERROR(50038, "update task definition error", "更新任务定义错误"), QUERY_TASK_DEFINITION_VERSIONS_ERROR(50039, "query task definition versions error", "查询任务历史版本信息出错"), SWITCH_TASK_DEFINITION_VERSION_ERROR(50040, "Switch task definition version error", "切换任务版本出错"), DELETE_TASK_DEFINITION_VERSION_ERROR(50041, "delete task definition version error", "删除任务历史版本出错"), DELETE_TASK_DEFINE_BY_CODE_ERROR(50042, "delete task definition by code error", "删除任务定义错误"), QUERY_DETAIL_OF_TASK_DEFINITION_ERROR(50043, "query detail of task definition error", "查询任务详细信息错误"), QUERY_TASK_DEFINITION_LIST_PAGING_ERROR(50044, "query task definition list paging error", "分页查询任务定义列表错误"), TASK_DEFINITION_NAME_EXISTED(50045, "task definition name [{0}] already exists", "任务定义名称[{0}]已经存在"), RELEASE_TASK_DEFINITION_ERROR(50046, "release task definition error", "上线任务错误"), MOVE_PROCESS_TASK_RELATION_ERROR(50047, "move process task relation error", "移动任务到其他工作流错误"), DELETE_TASK_PROCESS_RELATION_ERROR(50048, "delete process task relation error", "删除工作流任务关系错误"), QUERY_TASK_PROCESS_RELATION_ERROR(50049, "query process task relation error", "查询工作流任务关系错误"), TASK_DEFINE_STATE_ONLINE(50050, "task definition [{0}] is already online", "任务定义[{0}]已上线"), TASK_HAS_DOWNSTREAM(50051, "Task exists downstream [{0}] dependence", "任务存在下游[{0}]依赖"), TASK_HAS_UPSTREAM(50052, "Task [{0}] exists upstream dependence", "任务[{0}]存在上游依赖"), MAIN_TABLE_USING_VERSION(50053, "the version that the master table is using", "主表正在使用该版本"), PROJECT_PROCESS_NOT_MATCH(50054, "the project and the process is not match", "项目和工作流不匹配"), DELETE_EDGE_ERROR(50055, "delete edge error", "删除工作流任务连接线错误"), NOT_SUPPORT_UPDATE_TASK_DEFINITION(50056, "task state does not support modification", "当前任务不支持修改"), NOT_SUPPORT_COPY_TASK_TYPE(50057, "task type [{0}] does not support copy", "不支持复制的任务类型[{0}]"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
BATCH_EXECUTE_PROCESS_INSTANCE_ERROR(50058, "change process instance status error: {0}", "修改工作实例状态错误: {0}"), START_TASK_INSTANCE_ERROR(50059, "start task instance error", "运行任务流实例错误"), HDFS_NOT_STARTUP(60001, "hdfs not startup", "hdfs未启用"), STORAGE_NOT_STARTUP(60002, "storage not startup", "存储未启用"), S3_CANNOT_RENAME(60003, "directory cannot be renamed", "S3无法重命名文件夹"), /** * for monitor */ QUERY_DATABASE_STATE_ERROR(70001, "query database state error", "查询数据库状态错误"), CREATE_ACCESS_TOKEN_ERROR(70010, "create access token error", "创建访问token错误"), GENERATE_TOKEN_ERROR(70011, "generate token error", "生成token错误"), QUERY_ACCESSTOKEN_LIST_PAGING_ERROR(70012, "query access token list paging error", "分页查询访问token列表错误"), UPDATE_ACCESS_TOKEN_ERROR(70013, "update access token error", "更新访问token错误"), DELETE_ACCESS_TOKEN_ERROR(70014, "delete access token error", "删除访问token错误"), ACCESS_TOKEN_NOT_EXIST(70015, "access token not exist", "访问token不存在"), QUERY_ACCESSTOKEN_BY_USER_ERROR(70016, "query access token by user error", "查询访问指定用户的token错误"), COMMAND_STATE_COUNT_ERROR(80001, "task instance state count error", "查询各状态任务实例数错误"), NEGTIVE_SIZE_NUMBER_ERROR(80002, "query size number error", "查询size错误"), START_TIME_BIGGER_THAN_END_TIME_ERROR(80003, "start time bigger than end time error", "开始时间在结束时间之后错误"), QUEUE_COUNT_ERROR(90001, "queue count error", "查询队列数据错误"), KERBEROS_STARTUP_STATE(100001, "get kerberos startup state error", "获取kerberos启动状态错误"), // audit log QUERY_AUDIT_LOG_LIST_PAGING(10057, "query resources list paging", "分页查询资源列表错误"), //plugin PLUGIN_NOT_A_UI_COMPONENT(110001, "query plugin error, this plugin has no UI component", "查询插件错误,此插件无UI组件"), QUERY_PLUGINS_RESULT_IS_NULL(110002, "query alarm plugins result is empty, please check the startup status of the alarm component and confirm that the relevant alarm plugin is successfully registered", "查询告警插件为空, 请检查告警组件启动状态并确认相关告警插件已注册成功"), QUERY_PLUGINS_ERROR(110003, "query plugins error", "查询插件错误"), QUERY_PLUGIN_DETAIL_RESULT_IS_NULL(110004, "query plugin detail result is null", "查询插件详情结果为空"), UPDATE_ALERT_PLUGIN_INSTANCE_ERROR(110005, "update alert plugin instance error", "更新告警组和告警组插件实例错误"), DELETE_ALERT_PLUGIN_INSTANCE_ERROR(110006, "delete alert plugin instance error", "删除告警组和告警组插件实例错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
GET_ALERT_PLUGIN_INSTANCE_ERROR(110007, "get alert plugin instance error", "获取告警组和告警组插件实例错误"), CREATE_ALERT_PLUGIN_INSTANCE_ERROR(110008, "create alert plugin instance error", "创建告警组和告警组插件实例错误"), QUERY_ALL_ALERT_PLUGIN_INSTANCE_ERROR(110009, "query all alert plugin instance error", "查询所有告警实例失败"), PLUGIN_INSTANCE_ALREADY_EXIT(110010, "plugin instance already exit", "该告警插件实例已存在"), LIST_PAGING_ALERT_PLUGIN_INSTANCE_ERROR(110011, "query plugin instance page error", "分页查询告警实例失败"), DELETE_ALERT_PLUGIN_INSTANCE_ERROR_HAS_ALERT_GROUP_ASSOCIATED(110012, "failed to delete the alert instance, there is an alarm group associated with this alert instance", "删除告警实例失败,存在与此告警实例关联的警报组"), PROCESS_DEFINITION_VERSION_IS_USED(110013, "this process definition version is used", "此工作流定义版本被使用"), CREATE_ENVIRONMENT_ERROR(120001, "create environment error", "创建环境失败"), ENVIRONMENT_NAME_EXISTS(120002, "this environment name [{0}] already exists", "环境名称[{0}]已经存在"), ENVIRONMENT_NAME_IS_NULL(120003, "this environment name shouldn't be empty.", "环境名称不能为空"), ENVIRONMENT_CONFIG_IS_NULL(120004, "this environment config shouldn't be empty.", "环境配置信息不能为空"), UPDATE_ENVIRONMENT_ERROR(120005, "update environment [{0}] info error", "更新环境[{0}]信息失败"), DELETE_ENVIRONMENT_ERROR(120006, "delete environment error", "删除环境信息失败"), DELETE_ENVIRONMENT_RELATED_TASK_EXISTS(120007, "this environment has been used in tasks,so you can't delete it.", "该环境已经被任务使用,所以不能删除该环境信息"), QUERY_ENVIRONMENT_BY_NAME_ERROR(1200008, "not found environment [{0}] ", "查询环境名称[{0}]信息不存在"), QUERY_ENVIRONMENT_BY_CODE_ERROR(1200009, "not found environment [{0}] ", "查询环境编码[{0}]不存在"), QUERY_ENVIRONMENT_ERROR(1200010, "login user query environment error", "分页查询环境列表错误"), VERIFY_ENVIRONMENT_ERROR(1200011, "verify environment error", "验证环境信息错误"), GET_RULE_FORM_CREATE_JSON_ERROR(1200012, "get rule form create json error", "获取规则 FROM-CREATE-JSON 错误"), QUERY_RULE_LIST_PAGING_ERROR(1200013, "query rule list paging error", "获取规则分页列表错误"), QUERY_RULE_LIST_ERROR(1200014, "query rule list error", "获取规则列表错误"), QUERY_RULE_INPUT_ENTRY_LIST_ERROR(1200015, "query rule list error", "获取规则列表错误"), QUERY_EXECUTE_RESULT_LIST_PAGING_ERROR(1200016, "query execute result list paging error", "获取数据质量任务结果分页错误"), GET_DATASOURCE_OPTIONS_ERROR(1200017, "get datasource options error", "获取数据源Options错误"), GET_DATASOURCE_TABLES_ERROR(1200018, "get datasource tables error", "获取数据源表列表错误"), GET_DATASOURCE_TABLE_COLUMNS_ERROR(1200019, "get datasource table columns error", "获取数据源表列名错误"), CREATE_CLUSTER_ERROR(120020, "create cluster error", "创建集群失败"), CLUSTER_NAME_EXISTS(120021, "this cluster name [{0}] already exists", "集群名称[{0}]已经存在"), CLUSTER_NAME_IS_NULL(120022, "this cluster name shouldn't be empty.", "集群名称不能为空"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
CLUSTER_CONFIG_IS_NULL(120023, "this cluster config shouldn't be empty.", "集群配置信息不能为空"), UPDATE_CLUSTER_ERROR(120024, "update cluster [{0}] info error", "更新集群[{0}]信息失败"), DELETE_CLUSTER_ERROR(120025, "delete cluster error", "删除集群信息失败"), DELETE_CLUSTER_RELATED_TASK_EXISTS(120026, "this cluster has been used in tasks,so you can't delete it.", "该集群已经被任务使用,所以不能删除该集群信息"), QUERY_CLUSTER_BY_NAME_ERROR(1200027, "not found cluster [{0}] ", "查询集群名称[{0}]信息不存在"), QUERY_CLUSTER_BY_CODE_ERROR(1200028, "not found cluster [{0}] ", "查询集群编码[{0}]不存在"), QUERY_CLUSTER_ERROR(1200029, "login user query cluster error", "分页查询集群列表错误"), VERIFY_CLUSTER_ERROR(1200030, "verify cluster error", "验证集群信息错误"), CLUSTER_PROCESS_DEFINITIONS_IS_INVALID(1200031, "cluster worker groups is invalid format", "集群关联的工作组参数解析错误"), UPDATE_CLUSTER_PROCESS_DEFINITION_RELATION_ERROR(1200032, "You can't modify the process definition, because the process definition [{0}] and this cluster [{1}] already be used in the task [{2}]", "您不能修改集群选项,因为该工作流组 [{0}] 和 该集群 [{1}] 已经被用在任务 [{2}] 中"), CLUSTER_NOT_EXISTS(120033, "this cluster can not found in db.", "集群配置数据库里查询不到为空"), DELETE_CLUSTER_RELATED_NAMESPACE_EXISTS(120034, "this cluster has been used in namespace,so you can't delete it.", "该集群已经被命名空间使用,所以不能删除该集群信息"), P_NAME_EXSIT(130001, "this task group name is repeated in a project", "该任务组名称在一个项目中已经使用"), P_SIZE_ERROR(130002, "task group size error", "任务组大小应该为大于1的整数"), P_STATUS_ERROR(130003, "task group status error"被关闭"), P_FULL(130004, "task group is full"满了"), P_USED_SIZE_ERROR(130005, "the used size number of task group is dirty", "任务组使用的容量发生了变化"), P_QUEUE_RELEASE_ERROR(130006, "failed to release task group queue", "任务组资源释放时出现了错误"), P_QUEUE_AWAKE_ERROR(130007, "awake waiting task failed", "任务组使唤醒等待任务时发生了错误"), CREATE_P_ERROR(130008, "create task group error", "创建任务组错误"), UPDATE_P_ERROR(130009, "update task group list error", "更新任务组错误"), QUERY_P_LIST_ERROR(130010, "query task group list error", "查询任务组列表错误"), CLOSE_P_ERROR(130011, "close task group error", "关闭任务组错误"), START_P_ERROR(130012, "start task group error", "启动任务组错误"), QUERY_P_QUEUE_LIST_ERROR(130013, "query task group queue list error", "查询任务组队列列表错误"), P_CACHE_START_FAILED(130014, "cache start failed", "任务组相关的缓存启动失败"), ENVIRONMENT_WORKER_GROUPS_IS_INVALID(130015, "environment worker groups is invalid format", "环境关联的工作组参数解析错误"), UPDATE_ENVIRONMENT_WORKER_GROUP_RELATION_ERROR(130016, "You can't modify the worker group, because the worker group [{0}] and this environment [{1}] already be used in the task [{2}]", "您不能修改工作组选项,因为该工作组 [{0}] 和 该环境 [{1}] 已经被用在任务 [{2}] 中"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
P_QUEUE_ALREADY_START(130017, "task group queue already start", "节点已经获取任务组资源"), P_STATUS_CLOSED(130018, "The task group has been closed."被关闭"), P_STATUS_OPENED(130019, "The task group has been opened."被开启"), NOT_ALLOW_TO_DISABLE_OWN_ACCOUNT(130020, "Not allow to disable your own account", "不能停用自己的账号"), NOT_ALLOW_TO_DELETE_DEFAULT_ALARM_GROUP(130030, "Not allow to delete the default alarm group ", "不能删除默认告警组"), TIME_ZONE_ILLEGAL(130031, "time zone [{0}] is illegal", "时区参数 [{0}] 不合法"), QUERY_K8S_NAMESPACE_LIST_PAGING_ERROR(1300001, "login user query k8s namespace list paging error", "分页查询k8s名称空间列表错误"), K8S_NAMESPACE_EXIST(1300002, "k8s namespace {0} already exists", "k8s命名空间[{0}]已存在"), CREATE_K8S_NAMESPACE_ERROR(1300003, "create k8s namespace error", "创建k8s命名空间错误"), UPDATE_K8S_NAMESPACE_ERROR(1300004, "update k8s namespace error", "更新k8s命名空间信息错误"), K8S_NAMESPACE_NOT_EXIST(1300005, "k8s namespace {0} not exists", "命名空间ID[{0}]不存在"), K8S_CLIENT_OPS_ERROR(1300006, "k8s error with exception {0}", "k8s操作报错[{0}]"), VERIFY_K8S_NAMESPACE_ERROR(1300007, "verify k8s and namespace error", "验证k8s命名空间信息错误"), DELETE_K8S_NAMESPACE_BY_ID_ERROR(1300008, "delete k8s namespace by id error", "删除命名空间错误"), VERIFY_PARAMETER_NAME_FAILED(1300009, "The file name verify failed", "文件命名校验失败"), STORE_OPERATE_CREATE_ERROR(1300010, "create the resource failed", "存储操作失败"), GRANT_K8S_NAMESPACE_ERROR(1300011, "grant namespace error", "授权资源错误"), QUERY_UNAUTHORIZED_NAMESPACE_ERROR(1300012, "query unauthorized namespace error", "查询未授权命名空间错误"), QUERY_AUTHORIZED_NAMESPACE_ERROR(1300013, "query authorized namespace error", "查询授权命名空间错误"), QUERY_CAN_USE_K8S_CLUSTER_ERROR(1300014, "login user query can used k8s cluster list error", "查询可用k8s集群错误"), RESOURCE_FULL_NAME_TOO_LONG_ERROR(1300015, "resource's fullname is too long error", "资源文件名过长"), TENANT_FULL_NAME_TOO_LONG_ERROR(1300016, "tenant's fullname is too long error", "租户名过长"), USER_PASSWORD_LENGTH_ERROR(1300017, "user's password length error", "用户密码长度错误"), QUERY_CAN_USE_K8S_NAMESPACE_ERROR(1300018, "login user query can used namespace list error", "查询可用命名空间错误"), NO_CURRENT_OPERATING_PERMISSION(1400001, "The current user does not have this permission.", "当前用户无此权限"), FUNCTION_DISABLED(1400002, "The current feature is disabled.", "当前功能已被禁用"), SCHEDULE_TIME_NUMBER(1400003, "The number of complement dates exceed 100.", "补数日期个数超过100"), DESCRIPTION_TOO_LONG_ERROR(1400004, "description is too long error", "描述过长"), ; private final int code;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
private final String enMsg; private final String zhMsg; Status(int code, String enMsg, String zhMsg) { this.code = code; this.enMsg = enMsg; this.zhMsg = zhMsg; } public int getCode() { return this.code; } public String getMsg() { if (Locale.SIMPLIFIED_CHINESE.getLanguage().equals(LocaleContextHolder.getLocale().getLanguage())) { return this.zhMsg; } else { return this.enMsg; } } /** * Retrieve Status enum entity by status code. */ public static Optional<Status> findStatusBy(int code) { for (Status status : Status.values()) { if (code == status.getCode()) { return Optional.of(status); } } return Optional.empty(); } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java
package org.apache.dolphinscheduler.api.service.impl; import static org.apache.dolphinscheduler.common.Constants.ALIAS; import static org.apache.dolphinscheduler.common.Constants.CONTENT; import static org.apache.dolphinscheduler.common.Constants.EMPTY_STRING; import static org.apache.dolphinscheduler.common.Constants.FOLDER_SEPARATOR; import static org.apache.dolphinscheduler.common.Constants.FORMAT_SS; import static org.apache.dolphinscheduler.common.Constants.FORMAT_S_S; import static org.apache.dolphinscheduler.common.Constants.JAR; import static org.apache.dolphinscheduler.common.Constants.PERIOD; import org.apache.dolphinscheduler.api.constants.ApiFuncIdentificationConstant; import org.apache.dolphinscheduler.api.dto.resources.ResourceComponent; import org.apache.dolphinscheduler.api.dto.resources.filter.ResourceFilter; import org.apache.dolphinscheduler.api.dto.resources.visitor.ResourceTreeVisitor; import org.apache.dolphinscheduler.api.dto.resources.visitor.Visitor; import org.apache.dolphinscheduler.api.enums.Status; import org.apache.dolphinscheduler.api.exceptions.ServiceException; import org.apache.dolphinscheduler.api.service.ResourcesService; import org.apache.dolphinscheduler.api.utils.PageInfo; import org.apache.dolphinscheduler.api.utils.RegexUtils; import org.apache.dolphinscheduler.api.utils.Result; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.enums.AuthorizationType; import org.apache.dolphinscheduler.common.enums.ProgramType; import org.apache.dolphinscheduler.common.enums.ResUploadType; import org.apache.dolphinscheduler.common.storage.StorageOperate; import org.apache.dolphinscheduler.common.utils.FileUtils; import org.apache.dolphinscheduler.common.utils.JSONUtils; import org.apache.dolphinscheduler.common.utils.PropertyUtils; import org.apache.dolphinscheduler.dao.entity.Resource; import org.apache.dolphinscheduler.dao.entity.ResourcesUser;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java
import org.apache.dolphinscheduler.dao.entity.Tenant; import org.apache.dolphinscheduler.dao.entity.UdfFunc; import org.apache.dolphinscheduler.dao.entity.User; import org.apache.dolphinscheduler.dao.mapper.ProcessDefinitionMapper; import org.apache.dolphinscheduler.dao.mapper.ResourceMapper; import org.apache.dolphinscheduler.dao.mapper.ResourceUserMapper; import org.apache.dolphinscheduler.dao.mapper.TenantMapper; import org.apache.dolphinscheduler.dao.mapper.UdfFuncMapper; import org.apache.dolphinscheduler.dao.mapper.UserMapper; import org.apache.dolphinscheduler.dao.utils.ResourceProcessDefinitionUtils; import org.apache.dolphinscheduler.spi.enums.ResourceType; import org.apache.commons.beanutils.BeanMap; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; import java.io.IOException; import java.rmi.ServerException; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Set; import java.util.UUID; import java.util.regex.Matcher; import java.util.stream.Collectors;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java
import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DuplicateKeyException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.multipart.MultipartFile; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.fasterxml.jackson.databind.SerializationFeature; import com.google.common.base.Joiner; import com.google.common.io.Files; /** * resources service impl */ @Service public class ResourcesServiceImpl extends BaseServiceImpl implements ResourcesService { private static final Logger logger = LoggerFactory.getLogger(ResourcesServiceImpl.class); @Autowired private ResourceMapper resourcesMapper; @Autowired private UdfFuncMapper udfFunctionMapper; @Autowired private TenantMapper tenantMapper; @Autowired private UserMapper userMapper; @Autowired private ResourceUserMapper resourceUserMapper; @Autowired private ProcessDefinitionMapper processDefinitionMapper;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
11,521
[Improvement] File deletion logic optimization disadvantages
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description All items in the folder will be deleted at one time ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/11521
https://github.com/apache/dolphinscheduler/pull/11519
11d74fd7e802aaa79d9dbbb3f715a56559e8dcb0
006d8e21a6638affd4e69b9b4b0c28704db2c70d
2022-08-17T03:48:50Z
java
2022-08-18T01:38:06Z
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java
@Autowired(required = false) private StorageOperate storageOperate; /** * create directory * * @param loginUser login user * @param name alias * @param description description * @param type type * @param pid parent id * @param currentDir current directory * @return create directory result */ @Override @Transactional public Result<Object> createDirectory(User loginUser, String name, String description, ResourceType type, int pid, String currentDir) { Result<Object> result = new Result<>(); String funcPermissionKey = type.equals(ResourceType.FILE) ? ApiFuncIdentificationConstant.FOLDER_ONLINE_CREATE : ApiFuncIdentificationConstant.UDF_FOLDER_ONLINE_CREATE; boolean canOperatorPermissions = canOperatorPermissions(loginUser, null, AuthorizationType.RESOURCE_FILE_ID, funcPermissionKey); if (!canOperatorPermissions) { putMsg(result, Status.NO_CURRENT_OPERATING_PERMISSION); return result; } result = checkResourceUploadStartupState(); if (!result.getCode().equals(Status.SUCCESS.getCode())) {