You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Neil Joshi (Jira)" <ji...@apache.org> on 2021/07/26 21:16:00 UTC

[jira] [Updated] (HDDS-5099) Error with unit test for hdds.container-service TestSchemaOneBackwardsCompatibility

     [ https://issues.apache.org/jira/browse/HDDS-5099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neil Joshi updated HDDS-5099:
-----------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> Error with unit test for hdds.container-service TestSchemaOneBackwardsCompatibility
> -----------------------------------------------------------------------------------
>
>                 Key: HDDS-5099
>                 URL: https://issues.apache.org/jira/browse/HDDS-5099
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Neil Joshi
>            Assignee: Neil Joshi
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: intermittent_err.png, intermittent_fix1.png
>
>
> The unit test _testDelete_ from _TestSchemaOneBackwardsCompatibility_ (_hadoop-hdds/container-service_) has an observed reproducible intermittent error.  This error is due to the test launching a background task (_BackgroundService.java_) that it expects to block to completion, however it does not.  The test, through a thread pool executor launches a task to delete blocks and expects to block until completion.   After blocked until completion it checks the worker result.  Since the current implementation does not block, at times the worker is not done before the test checks the condition, hence the intermittent error.
>  
> Observed error:
> {code:java}
> mvn -Dtest=TestSchemaOneBackwardsCompatibility test{code}
> (see attachment err)
>  
>  With waiting until worker task is finished before checking condition: (see attachment showing test passed)
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org