[jira] [Created] (IGNITE-10614) investigate blocking of WalCompactionTest.testCompressorToleratesEmptyWalSegmentsFsync at stopping grids when migrating from JUnit 3 to 4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-10614) investigate blocking of WalCompactionTest.testCompressorToleratesEmptyWalSegmentsFsync at stopping grids when migrating from JUnit 3 to 4

Anton Vinogradov (Jira)
Oleg Ignatenko created IGNITE-10614:
---------------------------------------

             Summary: investigate blocking of WalCompactionTest.testCompressorToleratesEmptyWalSegmentsFsync at stopping grids when migrating from JUnit 3 to 4
                 Key: IGNITE-10614
                 URL: https://issues.apache.org/jira/browse/IGNITE-10614
             Project: Ignite
          Issue Type: Sub-task
    Affects Versions: 2.8
            Reporter: Oleg Ignatenko


{{WalCompactionTest.testCompressorToleratesEmptyWalSegmentsFsync}} runs OK under JUnit 3 but blocks at stopping grids when migrating to JUnit 4.

 Workaround for that is to run stopAllGrids in separate thread:
 {code}
     @Override protected void afterTest() throws Exception {
         Thread thread = new Thread(this::stopAllGrids);

         thread.start();

         thread.join(getTestTimeout());

         cleanPersistenceDir();
     }
{code}
If needed, [here is a diff at Github|https://github.com/apache/ignite/pull/5615/commits/1b342ee4c8c772b0e57583ee7f8721fc2c070bcf] with more context.

Need to find out what is going on there and if something needs to be changed in this test or maybe in parent test classes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)