dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[BUG] no email sent when query SQL has no result

Open gabry-lab opened this issue 6 years ago • 3 comments

Describe the bug

no email sent when query SQL has no result

To Reproduce

  • Create an email task to execute Query SQL which return empty result.

Expected behavior

An email with empty body should be sent.

Which version of Dolphin Scheduler:

  • [1.2.0, ]

Requirement or improvement

  • An email should be sent for Query SQL ,no matter whether it has result or not .

gabry-lab avatar Jun 15 '20 13:06 gabry-lab

Can I send the result of querying hive table with SQL node by email? Did you meet me when I sent it wrong?

  • send mail failed! java.lang.RuntimeException: send mail failed! at org.apache.dolphinscheduler.server.worker.task.sql.SqlTask.sendAttachment(SqlTask.java:429) at org.apache.dolphinscheduler.server.worker.task.sql.SqlTask.executeFuncAndSql(SqlTask.java:331) at org.apache.dolphinscheduler.server.worker.task.sql.SqlTask.handle(SqlTask.java:194) at org.apache.dolphinscheduler.server.worker.runner.TaskScheduleThread.run(TaskScheduleThread.java:147) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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)

Jops-data avatar Jun 17 '20 03:06 Jops-data

Can I send the result of querying hive table with SQL node by email? Did you meet me when I sent it wrong?

  • send mail failed! java.lang.RuntimeException: send mail failed! at org.apache.dolphinscheduler.server.worker.task.sql.SqlTask.sendAttachment(SqlTask.java:429) at org.apache.dolphinscheduler.server.worker.task.sql.SqlTask.executeFuncAndSql(SqlTask.java:331) at org.apache.dolphinscheduler.server.worker.task.sql.SqlTask.handle(SqlTask.java:194) at org.apache.dolphinscheduler.server.worker.runner.TaskScheduleThread.run(TaskScheduleThread.java:147) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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)

@Jops-data I already seen your questions in another issue, so don't ask the same questions again in this issue

gabry-lab avatar Jun 18 '20 02:06 gabry-lab

@dailidong @qiaozhanwei @lgcareer Hi bros, could you join to discuss about this issue ?

gabry-lab avatar Jun 18 '20 02:06 gabry-lab