Jellyfrog created SOLR-7533:
-------------------------------

             Summary: DIH doesn't return "Indexing completed" when 0 documents 
processed
                 Key: SOLR-7533
                 URL: https://issues.apache.org/jira/browse/SOLR-7533
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 5.1, 5.0
            Reporter: Jellyfrog


Normally, the status for a DIH when done will be something like:
{code}
{
    "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"
    }
}
{code}

But when it processes 0 rows, it's missing the "Indexing completed" part:
{code}
{
    "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"
    }
}
{code}

This makes the output very inconsistent and harder to handle programatically 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to