[ 
https://issues.apache.org/jira/browse/IGNITE-24671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]
Roman Puchkovskiy updated IGNITE-24671:
---------------------------------------
    Description: 
In the attached logs, it can be seen for both failed tests that
 # CLI action was invoked once
 # But REST controller received the request twice

For both tests, as a reaction to the first request, the corresponding node 
restarts, which may cause an exception at the client (but we do handle it in 
the CLI code as it's expected).

It looks like somewhere in CLI, HTTP request duplication happens.

okhttp (HTTP client used by CLI) is a suspect. It has a property called 
retryOnConnectionFailure which is true by default; code analysis shows that 
okhttp could retry even POST requests if it gets an IOException from the server.

> CLI duplicates HTTP requests
> ----------------------------
>
>                 Key: IGNITE-24671
>                 URL: https://issues.apache.org/jira/browse/IGNITE-24671
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Roman Puchkovskiy
>            Assignee: Roman Puchkovskiy
>            Priority: Major
>              Labels: ignite-3
>         Attachments: _Integration_Tests_Run_All_Other_33104.log.zip, 
> _Integration_Tests_Run_All_Other_33211.log.zip
>
>
> In the attached logs, it can be seen for both failed tests that
>  # CLI action was invoked once
>  # But REST controller received the request twice
> For both tests, as a reaction to the first request, the corresponding node 
> restarts, which may cause an exception at the client (but we do handle it in 
> the CLI code as it's expected).
> It looks like somewhere in CLI, HTTP request duplication happens.
> okhttp (HTTP client used by CLI) is a suspect. It has a property called 
> retryOnConnectionFailure which is true by default; code analysis shows that 
> okhttp could retry even POST requests if it gets an IOException from the 
> server.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to