[Hawkular-dev] inventory - /graph - IOException: Pipe not connected

Gareth Healy garethahealy at gmail.com
Fri Sep 16 07:24:33 EDT 2016


I've created some entities via /bulk and can get them back via /traversal.
But when i call /graph i get back: IOException: Pipe not connected

Error message:

   - https://gist.github.com/garethahealy/0a7d7403f329d8768ab4cab4dcf2c409

After a bit of debugging, i believe its because the InputStream [1] hasn't
been fully written to, as the graph is retrieved on another thread [2],
which means the REST call has returned and closed.

[1]
https://github.com/hawkular/hawkular-inventory/blob/master/hawkular-inventory-rest-api/src/main/java/org/hawkular/inventory/rest/RestGraphSON.java#L59
[2]
https://github.com/hawkular/hawkular-inventory/blob/master/hawkular-inventory-impl-tinkerpop-parent/hawkular-inventory-impl-tinkerpop/src/main/java/org/hawkular/inventory/impl/tinkerpop/TinkerpopBackend.java#L1369

Should this endpoint not use a latch/wait or AsyncResponse.resume like the
metrics APIs does? As i am able to get the graph back, if i keep the
connection alive via debug checkpoints.

Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hawkular-dev/attachments/20160916/29f8250d/attachment-0001.html 


More information about the hawkular-dev mailing list