[
https://issues.apache.org/jira/browse/TRAFODION-3166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16565930#comment-16565930
]
ASF GitHub Bot commented on TRAFODION-3166:
-------------------------------------------
Github user selvaganesang commented on a diff in the pull request:
https://github.com/apache/trafodion/pull/1665#discussion_r206623640
--- Diff: core/sql/executor/cluster.cpp ---
@@ -1611,6 +1611,49 @@ NABoolean Cluster::initScratch(ExeErrorCode * rc)
return FALSE;
}
+//Wrapper function on flush() to populate diags area.
+//Returns: FALSE - either error, or need to call again
+// TRUE -- flush is done
+NABoolean Cluster::flush(ComDiagsArea *&da, CollHeap *heap) {
+ ExeErrorCode rc = EXE_OK;
+
+ //Flush returning FALSE means either Error or IO_NOT_COMPLETE.
+ //if rc != EXE_OK then it is error.
+ if(!flush(&rc)) {
+ if(rc != EXE_OK) {
+ da = ComDiagsArea::allocate(heap);
--- End diff --
It is possible that caller might pass-in a diags Area with warnings
> 8427 error string missing when thrown by sequence operator
> ----------------------------------------------------------
>
> Key: TRAFODION-3166
> URL: https://issues.apache.org/jira/browse/TRAFODION-3166
> Project: Apache Trafodion
> Issue Type: Bug
> Components: sql-exe
> Reporter: Prashanth Vasudev
> Assignee: Prashanth Vasudev
> Priority: Major
> Fix For: 2.3
>
>
> *** ERROR[8427] [2018-07-23 15:52:16]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)