You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Attila Magyar (Jira)" <ji...@apache.org> on 2021/07/15 15:15:00 UTC
[jira] [Commented] (KNOX-2635) GatewayAppFuncTest is flaky
[ https://issues.apache.org/jira/browse/KNOX-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17381404#comment-17381404 ]
Attila Magyar commented on KNOX-2635:
-------------------------------------
cc: [~smolnar]
> GatewayAppFuncTest is flaky
> ---------------------------
>
> Key: KNOX-2635
> URL: https://issues.apache.org/jira/browse/KNOX-2635
> Project: Apache Knox
> Issue Type: Task
> Components: Tests
> Reporter: Attila Magyar
> Assignee: Attila Magyar
> Priority: Major
>
> Typical failure look like:
> {code:java}
> [ERROR] GatewayAppFuncTest.testMultiApps:338 1 expectation failed.
> Expected status code <200> but was <404>. {code}
> It happen in test which are running right after testDeploymentCleanup or
> testDefaultTopology. These tests restart the gateway service during the test run.
> The subsequent test overwrite the topology file which are used by all tests but file access date granularity is 1 second (msec part is always 000, this is likley FS specific) therefore the topology is never redeployed.
>
> Adding
> FileUtils.cleanDirectory(new File(config.getGatewayTopologyDir())); in between restarts seems to solve the issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)