CloudSlang / cloud-slang

CloudSlang Language, CLI and Builder
http://cloudslang.io
Apache License 2.0
237 stars 82 forks source link

CLI hangs at the last step of the flow #437

Closed gituser173 closed 9 years ago

gituser173 commented 9 years ago

Running the flow in two separate CLI runs works: cli1

Running the flow in one CLI run doesn’t work, it hangs at the “test_http_client_action_delete_db” step: cli2

From what I can see from the execution.log file it hangs after setting up the inputs and before executing http_client_action. Execution log: http://pastebin.com/5LZDin7B

meirwah commented 9 years ago

@gituser173 did you look into this?

levice14 commented 9 years ago

the execution gets to io.cloudslang.content.httpclient.execute.HttpClientExecutor.execute() method which calls the apache service:

http_call

so, I don't think the flow hangs because of CLI / http client implementation - the logic of the flow / docker image with http server may have a bug which causes this behavior

levice14 commented 9 years ago

@mihaitusa when you finish the http client test, please leave a note here, so we will be able to close this issue

mihaitusa commented 9 years ago

This defect can be close. I try to run in several ways the test flow (against the same docker container - RESTHeart 0.10 API) with steps in different orders or from OO. The flow hang not only at POST step but also at GET step. It seems that RESTHeart 0.10 API docker image isn't quite stable. I rewrite the test flow to ran it against other API and despite the fact that now has more steps it doesn't hang anymore. So, the conclusion is obvious. @Bonczidai please close it.