Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-21198

WUQuery returns conflicting information

    Details

    • Type: Bug
    • Status: Scheduled
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: WS-Workunit Server
    • Labels:
      None
    • Compatibility:
      Point

      Description

      The following query:

       "WUQueryRequest": {
         "Wuid": "W20181207-090637",
          "Type": "",
          "Cluster": "",
          "RoxieCluster": "",
          "Owner": "",
          "State": "",
          "StartDate": "",
          "EndDate": "",
          "ECL": "",
          "Jobname": "",
          "LogicalFile": "",
          "LogicalFileSearchType": "",
          "BeforeWU": "",
          "AfterWU": "",
          "PageSize": 5,
          "PageStartFrom": 0,
          "Sortby": "",
          "Descending": false
       }
      

      Returns the WU with the State of "aborted" which is correct:

      {
       "WUQueryResponse": {
         "Cluster": "",
          "Owner": "",
          "State": "",
          "StartDate": "",
          "EndDate": "",
          "Count": 1,
          "First": true,
          "Descending": false,
          "BasicQuery": "",
          "Filters": "",
          "Workunits": {
           "ECLWorkunit": [
             {
               "Wuid": "W20181207-090637",
                "Owner": "",
                "Cluster": "hthor",
                "Jobname": "",
                "StateID": 7,
                "State": "aborted",
                "Protected": false,
                "DateTimeScheduled": "1970-01-01T01:00:00+01:00",
                "Snapshot": ""
             }
           ]
         }
       }
      }
      

      But If I ask for a page of WUs with:

      "WUQueryRequest": {
         "Wuid": "",
          "Type": "",
          "Cluster": "",
          "RoxieCluster": "",
          "Owner": "",
          "State": "",
          "StartDate": "",
          "EndDate": "",
          "ECL": "",
          "Jobname": "",
          "LogicalFile": "",
          "LogicalFileSearchType": "",
          "BeforeWU": "",
          "AfterWU": "",
          "PageSize": 5,
          "PageStartFrom": 0,
          "Sortby": "",
          "Descending": false
       }
      

       I get:

      {
       "WUQueryResponse": {
         "Cluster": "",
          "Owner": "",
          "State": "",
          "StartDate": "",
          "EndDate": "",
          "Count": 100,
          "First": false,
          "Descending": false,
          "BasicQuery": "",
          "Filters": "",
          "Workunits": {
           "ECLWorkunit": [
      ...,
              {
               "Wuid": "W20181207-090637",
                "Owner": "",
                "Cluster": "hthor",
                "Jobname": "",
                "StateID": 9,
                "State": "submitted",
                "Protected": false,
                "DateTimeScheduled": "1970-01-01T01:00:00+01:00"
             },
      ...
          ]
         }
       }
      }
      

      With a state of "submitted" which is incorrect

      ,

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wangkx Kevin Wang
                Reporter:
                gordonsmith Gordon Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: