[
https://issues.apache.org/jira/browse/METRON-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16554703#comment-16554703
]
ASF GitHub Bot commented on METRON-1690:
----------------------------------------
Github user merrimanr commented on the issue:
https://github.com/apache/metron/pull/1128
I tested this in full dev by submitting a query with a time range that
won't match the pcap data I have in `/apps/metron/pcap/input`:
```
curl -X POST --header 'Content-Type: application/json' --header 'Accept:
application/json' -d '{
"startTimeMs": 1500923776000
}' 'http://node1:8082/api/v1/pcap/fixed'
```
An appropriate message was returned:
```
{
"jobId": "",
"jobStatus": "SUCCEEDED",
"description": "No results in specified date range.",
"percentComplete": 100,
"pageTotal": 0
}
```
I also ran a query with an input path that doesn't have any data:
```
curl -X POST --header 'Content-Type: application/json' --header 'Accept:
application/json' -d '{
"basePath":"/apps/metron/pcap/input2"
}' 'http://node1:8082/api/v1/pcap/fixed'
```
and again received an appropriate response:
```
{
"jobId": "",
"jobStatus": "SUCCEEDED",
"description": "No results in specified date range.",
"percentComplete": 100,
"pageTotal": 0
}
```
+1 from me.
> Add more context to PcapJob JobStatus
> -------------------------------------
>
> Key: METRON-1690
> URL: https://issues.apache.org/jira/browse/METRON-1690
> Project: Metron
> Issue Type: Sub-task
> Reporter: Michael Miklavcic
> Assignee: Michael Miklavcic
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)