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-inven...
[2]
https://github.com/hawkular/hawkular-inventory/blob/master/hawkular-inven...
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.