Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7533

DIH doesn't return "Indexing completed" when 0 documents processed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 5.0, 5.1
    • None
    • None

    Description

      Normally, the status for a DIH when done will be something like:

      {
          "responseHeader": {
              "status": 0,
              "QTime": 0
          },
          "initArgs": [
              "defaults",
              [
                  "config",
                  "data_import.xml"
              ]
          ],
          "command": "status",
          "status": "idle",
          "importResponse": "",
          "statusMessages": {
              "Total Requests made to DataSource": "1",
              "Total Rows Fetched": "480463",
              "Total Documents Skipped": "0",
              "Full Dump Started": "2015-04-21 14:16:17",
              "": "Indexing completed. Added/Updated: 480463 documents. Deleted 0 documents.",
              "Total Documents Processed": "480463",
              "Time taken": "0:12:31.863"
          }
      }
      

      But when it processes 0 rows, it's missing the "Indexing completed" part:

      {
          "responseHeader": {
              "status": 0,
              "QTime": 0
          },
          "initArgs": [
              "defaults",
              [
                  "config",
                  "data_import.xml"
              ]
          ],
          "command": "status",
          "status": "idle",
          "importResponse": "",
          "statusMessages": {
              "Total Requests made to DataSource": "1",
              "Total Rows Fetched": "0",
              "Total Documents Processed": "0",
              "Total Documents Skipped": "0",
              "Full Dump Started": "2015-05-12 17:39:44",
              "Time taken": "0:0:2.805"
          }
      }
      

      This makes the output very inconsistent and harder to handle programatically

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Jellyfrog Jellyfrog
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: