Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5509

[WebHCat] TestDriverCurl to use string comparison for jobid

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.13.0
    • Component/s: HCatalog
    • Labels:
      None

      Description

      In TestDriverCurl.pm, we sort job status array returned by templeton using:

      sort { $a->{id} <=> $b->{id} }
      

      However, "<=>" is used to compare numbers, jobid is string, so comparison is wrong. This results test JOBS_4 fail in some cases.

        Attachments

        1. HIVE-5509-1.patch
          0.8 kB
          Daniel Dai

          Activity

            People

            • Assignee:
              daijy Daniel Dai
              Reporter:
              daijy Daniel Dai
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: