Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2730

Using empty array to replace null EventRecords from /ws/v1/events/batch

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • core - scheduler
    • None

    Description

      /ws/v1/events/batch
      

      will return null EventRecores if start argument can't fetch any record,
      For example, if I specify start=268 which is larger than HighestID, the EventRecords is null, it seems to me returning an empty array might be better.

      curl -L http://localhost:9889/ws/v1/events/batch\?start\=268\&count\=2 | jq
      
      {
        "InstanceUUID": "c3dd83f9-6546-4c63-b4cb-622cbb081aa3",
        "LowestID": 0,
        "HighestID": 267,
        "EventRecords": null
      } 

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            brandboat Kuan Po Tseng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: