You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/02/17 09:22:40 UTC

[GitHub] [dolphinscheduler] auguszero opened a new issue #8415: [Bug] [Module Name] 手动执行影响定时调度全局参数

auguszero opened a new issue #8415:
URL: https://github.com/apache/dolphinscheduler/issues/8415


   ### 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
   
   ### 问题现象:
   脚本: 
   ```shell 
   time=$(date "+%Y-%m-%d %H:%M:%S")
   echo $time
   echo ${date_from}
   ``` 
   
   全局变量 date_from=$[yyyy-MM-dd]
   ![image](https://user-images.githubusercontent.com/30291534/154444456-36b292cc-6212-45dd-b8ba-18c278ff5220.png)
   
   定时执行 为每30秒执行一次。 
   
   ### 操作及现象记录 
   1. 自动定时执行。计划 结果:打印date_from 结果为 2022-02-17 
   ![image](https://user-images.githubusercontent.com/30291534/154444667-fec814e5-17a6-4f30-b435-ca66681e0c3b.png)
   
   2. 手动执行,并修改全局变量为 2022-02-16。 期望结果 : 打印date_from 结果为 2022-02-16 
   ![image](https://user-images.githubusercontent.com/30291534/154444700-76fdd123-663c-490e-8dbe-5814d4e79d94.png)
   
   3. 等待定时任务自动执行,期望结果: 打印date_from 结果为 2022-02-17 。 
   ![image](https://user-images.githubusercontent.com/30291534/154444732-c83a9648-b82c-4a96-abd4-319285485a52.png)
   
   结果为: host与手动吊起任务落在同一个worker的节点,被受影响。  
   
   <b>结论:</b> 
   全局变量赋值是否未落盘至DB中,仅保存在本地的memory中,并且多个worker 变量之间的同步存在数据不一致的情况。  
   
   ### What you expected to happen
   
   如上 
   
   ### How to reproduce
   
   如上
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.1
   
   ### 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)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #8415: [Bug] [Module Name] Manual execution affects timing scheduling global parameters

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #8415:
URL: https://github.com/apache/dolphinscheduler/issues/8415#issuecomment-1042736449


   ### 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
   
   ### Problem phenomenon:
   Script:
   ```shell
   time=$(date "+%Y-%m-%d %H:%M:%S")
   echo $time
   echo ${date_from}
   ````
   
   Global variable date_from=$[yyyy-MM-dd]
   ![image](https://user-images.githubusercontent.com/30291534/154444456-36b292cc-6212-45dd-b8ba-18c278ff5220.png)
   
   Scheduled execution is executed every 30 seconds.
   
   ### Operation and phenomenon record
   1. Automatic timing execution. plan result: print date_from result is 2022-02-17
   ![image](https://user-images.githubusercontent.com/30291534/154444667-fec814e5-17a6-4f30-b435-ca66681e0c3b.png)
   
   2. Execute manually and modify the global variable to 2022-02-16. Expected result: print date_from result is 2022-02-16
   ![image](https://user-images.githubusercontent.com/30291534/154444700-76fdd123-663c-490e-8dbe-5814d4e79d94.png)
   
   3. Wait for the automatic execution of the scheduled task, the expected result: print date_from and the result is 2022-02-17 .
   ![image](https://user-images.githubusercontent.com/30291534/154444732-c83a9648-b82c-4a96-abd4-319285485a52.png)
   
   The result is: The host and the manually suspended task fall on the same worker node and are affected.
   
   <b>Conclusion:</b>
   Whether the global variable assignment is not stored in the DB, but is only stored in the local memory, and there is data inconsistency in the synchronization between multiple worker variables.
   
   ### What you expected to happen
   
   as above
   
   ### How to reproduce
   
   as above
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.1
   
   ### 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)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #8415: [Bug] [Module Name] Manual execution affects timing scheduling global parameters

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #8415:
URL: https://github.com/apache/dolphinscheduler/issues/8415#issuecomment-1042736657


   Hi:
   * Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
   * In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
   * If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/en-us/community/development/subscribe.html ,Then write the issue URL in the email content and send question to dev@dolphinscheduler.apache.org.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org