<div dir="ltr"><div>I&#39;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</div><div><br></div><div>Error message:</div><div><ul><li><a href="https://gist.github.com/garethahealy/0a7d7403f329d8768ab4cab4dcf2c409" target="_blank">https://gist.github.com/<wbr>garethahealy/<wbr>0a7d7403f329d8768ab4cab4dcf2c4<wbr>09</a></li></ul><div>After a bit of debugging, i believe its because the InputStream [1] hasn&#39;t been fully written to, as the graph is retrieved on another thread [2], which means the REST call has returned and closed.</div></div><div><br></div><div>[1] <a href="https://github.com/hawkular/hawkular-inventory/blob/master/hawkular-inventory-rest-api/src/main/java/org/hawkular/inventory/rest/RestGraphSON.java#L59">https://github.com/hawkular/hawkular-inventory/blob/master/hawkular-inventory-rest-api/src/main/java/org/hawkular/inventory/rest/RestGraphSON.java#L59</a><br></div><div>[2] <a href="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">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</a></div><div><br></div><div>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.</div><div><br></div><div>Cheers.</div></div>