You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Casey Stella (JIRA)" <ji...@apache.org> on 2016/08/19 00:12:20 UTC

[jira] [Deleted] (METRON-380) pcap_query.sh errors out when no records are found that match the query

     [ https://issues.apache.org/jira/browse/METRON-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Casey Stella deleted METRON-380:
--------------------------------


> pcap_query.sh errors out when no records are found that match the query
> -----------------------------------------------------------------------
>
>                 Key: METRON-380
>                 URL: https://issues.apache.org/jira/browse/METRON-380
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Casey Stella
>              Labels: newbie
>
> Right now the pcap_query.sh will throw an exception if the set of records returned from the query is empty.
> 16/08/18 21:58:39 ERROR query.PcapCli: Unable to write file
> java.io.EOFException
>   at java.io.DataInputStream.readInt(DataInputStream.java:392)
>   at org.apache.metron.pcap.PcapByteInputStream.readGlobalHeader(PcapByteInputStream.java:95)
>   at org.apache.metron.pcap.PcapByteInputStream.<init>(PcapByteInputStream.java:58)
>   at org.apache.metron.pcap.PcapMerger.sort(PcapMerger.java:148)
>   at org.apache.metron.pcap.PcapMerger.merge(PcapMerger.java:110)
>   at org.apache.metron.pcap.query.ResultsWriter.mergePcaps(ResultsWriter.java:45)
>   at org.apache.metron.pcap.query.ResultsWriter.write(ResultsWriter.java:33)
>   at org.apache.metron.pcap.query.PcapCli.run(PcapCli.java:149)
>   at org.apache.metron.pcap.query.PcapCli.main(PcapCli.java:46)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:497)
>   at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> The expected behavior should be to notify the user that no records were returned and exit.



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