[Bug] [alert server] alert plugin Email show type attachment causes the alert service to fail.
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
在配置alert plugin的时候,选择Email时,显示方式(show_type)不能选择 attachment(附件)。一旦选择此方式,alert server就进入假死状态,不输入任何错误日志。也不再工作。只要t_ds_alert_plugin_instance表中存有配置了attachment的plugin信息,不管怎么重启都无效。即使删除了alert-plugin配置,不重启alert server,依然不会恢复。
What you expected to happen
在配置alert plugin的时候,选择Email时,显示方式(show_type)不能选择 attachment(附件)。一旦选择此方式,alert server就进入假死状态,不输入任何错误日志。也不再工作。只要t_ds_alert_plugin_instance表中存有配置了attachment的plugin信息,不管怎么重启都无效。即使删除了alert-plugin配置,不重启alert server,依然不会恢复。
How to reproduce
设置告警插件Email选show type :attachment 或者 table attachment
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
Search before asking
-[X] I had searched in the issues and found no similar issues.
What happened
When configuring the alert plugin, when selecting Email, the display mode (show_type) cannot be selected as attachment. Once this method is selected, the alert server enters a suspended animation state without entering any error log. Doesn't work anymore. As long as the plugin information configured with attachment is stored in the t_ds_alert_plugin_instance table, no matter how you restart it, it will be invalid. Even if the alert-plugin configuration is deleted and the alert server is not restarted, it will not be restored.
What you expected to happen
When configuring the alert plugin, when selecting Email, the display mode (show_type) cannot be selected as attachment. Once this method is selected, the alert server enters a suspended animation state without entering any error log. Doesn't work anymore. As long as the plugin information configured with attachment is stored in the t_ds_alert_plugin_instance table, no matter how you restart it, it will be invalid. Even if the alert-plugin configuration is deleted and the alert server is not restarted, it will not be restored.
How to reproduce
Set the alarm plug-in Email to choose show type: attachment or table attachment
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
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 [email protected].
I will check this issue.
Is this bug solved?
Is this bug solved?
Currently you can avoid this problem without selecting attachment or table attachment.
我要用附件这个功能
爱数据的开发狗 @.***
大数据开发/分析
------------------ 原始邮件 ------------------ 发件人: "apache/dolphinscheduler" @.>; 发送时间: 2022年3月17日(星期四) 下午3:41 @.>; @.@.>; 主题: Re: [apache/dolphinscheduler] [Bug] [alert server] alert plugin Email show type attachment causes the alert service to fail. (Issue #7874)
Is this bug solved?
Currently you can avoid this problem without selecting attachment or table attachment.
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
associate issue: #8691
will check it out
Have tested this in dev, the function is okay but failed to send excel in 2.0.5. Will tell the code differences between 'em.
I encountered the same problem. When I chose to send an attachment or attachment form, I did not send an email. When I looked at the log file, there was a timeout task, which meant that attachment sending was not supported. I need to send an attachment. When can I fix this bug? Now I use DS version: 2.0.5 release.
i deploy 2.0.3, docker also met this problem, only docker recurrent; share:
-
found hang on
Sheet sheet = wb.createSheet();may miss font, fix:sudo apt-get updatesudo apt-get install fontconfiglink:https://stackoverflow.com/questions/48989348/sxssf-workbook-createsheet-fails-on-linux-environments -
hang on
wb.write(fos);, have no plan to fix, maybe related to docker images
now i use plan B to fix problem : rewrite export attachment, replace XLSX with CSV, avoid use poi
this plan only rebuild and replace dolphinscheduler-alter-email-2.0.3.jar
Have tested this in dev, the function is okay but failed to send excel in 2.0.5. Will tell the code differences between 'em.
Got it, I will add the milestone to 2.0.6
Have tested this in dev, the function is okay but failed to send excel in 2.0.5. Will tell the code differences between 'em.
Got it, I will add the milestone to 2.0.6
Its caused by common-compress-1.4.1 and common-compress-1.19 version conflict, and the project maven package just has common-compress-1.4.1.