metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From justinleet <...@git.apache.org>
Subject [GitHub] incubator-metron issue #332: METRON-527: Connection pool shut down seen when...
Date Mon, 31 Oct 2016 18:38:53 GMT
Github user justinleet commented on the issue:

    https://github.com/apache/incubator-metron/pull/332
  
    The Taxii HttpClient closes connections in callTaxiiService as seen here:
    https://github.com/TAXIIProject/java-taxii/blob/master/src/main/java/org/mitre/taxii/client/HttpClient.java#L335
    
    Because TaxiiHandler attempted to reuse a closed connection, the error was seen.  The
fix is just to ensure the connection is created fresh before each call.  Integration test
is updated to just call the run() method twice without caring about results to ensure that
the connection doesn't explode.
    
    In addition, this was tested in quick-dev using a slightly modified version (to work with
Vagrant) of https://community.hortonworks.com/articles/59698/pushing-stixtaxii-feeds-from-opentaxii-server-into.html,
where the playbook was run with
    `ansible-playbook --private-key=./vagrant/quick-dev-platform/.vagrant/machines/node1/virtualbox/private_key
-i 192.168.66.121, playbooks/install-opentaxii.yml -e ansible_python_interpreter=python -e
ansible_user=vagrant -vvvv`
    with the IP being quick-dev's IP and the install-opentaxii script modified to reflect
this.
    
    After the change, polling continues until ended and hbase dumps grow as new records are
added.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message