This is an automated email from the ASF dual-hosted git repository.
chufenggao pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new a1f5675012 [Bug][TaskPlugin] Task execution error occurs when the
Zeppelin task zeppelinNoteId parameter value is an empty string (#13162)
a1f5675012 is described below
commit a1f56750127207e8310fd42015effb63f92bf0ff
Author: LucasClt <[email protected]>
AuthorDate: Fri Jan 6 19:29:05 2023 +0800
[Bug][TaskPlugin] Task execution error occurs when the Zeppelin task
zeppelinNoteId parameter value is an empty string (#13162)
* [Bug] [TaskPlugin-Zeppelin] Task execution error occurs when the Zeppelin
task zeppelinNoteId parameter value is an empty string. #13161
---
.../org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
b/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
index 05d0a7ceee..c8a65f2478 100644
---
a/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
+++
b/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
@@ -107,7 +107,7 @@ public class ZeppelinTask extends AbstractRemoteTask {
noteId = this.zClient.cloneNote(noteId, cloneNotePath);
}
- if (paragraphId == null) {
+ if (paragraphId == null || paragraphId.trim().length() == 0) {
final NoteResult noteResult = this.zClient.executeNote(noteId,
zeppelinParamsMap);
final List<ParagraphResult> paragraphResultList =
noteResult.getParagraphResultList();
StringBuilder resultContentBuilder = new StringBuilder();