-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPCC-30429 Fix WsECL display for 'Create Workunit' option #17887
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -311,7 +311,7 @@ function switchInputForm() | |
</span> | ||
</td> | ||
</tr> | ||
<xsl:if test="$includeRoxieOptions=1"> | ||
<xsl:if test="$includeRoxieOptions=1 or $includeRoxieOptions=2"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be != 0? Currently 3 is not included. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 3 is not included here because it is for a roxie which always runs a published query as a workunit. The 'Save stats to workunit.' option and 'Get summary stats.' option should not give to that roxie. @afishbeck please comment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I asked because the code on line 348 will never be processed as it stands. Also, is the traceLevel check-box still relevant? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The includeRoxieOptions will be set to 3 in the code of esp/services/ws_ecl/ws_ecl_service.cpp for a workunit roxie. In that case, the line 348 will be processed.
I am not sure. @afishbeck please advise. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, when calling a published query you can tell Roxie the traceLevel to use. I’m not sure if there is an equivalent work unit parameter. As it is now that shouldn’t be exposed when submitting a work unit. |
||
<tr> | ||
<td class='input' align='left'> | ||
<span> | ||
|
@@ -339,6 +339,16 @@ function switchInputForm() | |
<option value="QUERY">Call Query</option> | ||
<option value="WORKUNIT">Create Workunit</option> | ||
</select> | ||
</xsl:if> | ||
<xsl:if test="$includeRoxieOptions=2"> | ||
<select id="job_type"> | ||
<option value="QUERY">Call Query</option> | ||
</select> | ||
</xsl:if> | ||
<xsl:if test="$includeRoxieOptions=3"> | ||
<select id="job_type"> | ||
<option value="WORKUNIT">Create Workunit</option> | ||
</select> | ||
</xsl:if> | ||
<select id="submit_type" name="submit_type"> | ||
<xsl:for-each select="/FormInfo/CustomViews/Result"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@afishbeck is this correct. Does queriesOnly imply that you cannot deploy a query? Should it return "1" or "3"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploying a query isn't the right term here.
In k8s we separated out the roxies that would listen on a workunit queue to run workunits.
So for queriesOnly, you can deploy a query and then send it xml/json/testsocket requests. But you can't submit and run workunits.
The opposites is also currently true. Roxie-workunit components are setup like eclagents and you can't deploy queries to them.
Roxie itself supports mixed mode so we could easily change that or make it an option (if the option isn't already there) on the roxie side. We may need a new flag to specify mixed mode in the config so that this code and other places can know the difference though.