You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Oleg Zinoviev (JIRA)" <ji...@apache.org> on 2019/08/15 09:52:00 UTC

[jira] [Created] (DRILL-7349) ClusterTest dfs.tmp storage inconsistence with cluster size > 1

Oleg Zinoviev created DRILL-7349:
------------------------------------

             Summary: ClusterTest dfs.tmp storage inconsistence with cluster size > 1
                 Key: DRILL-7349
                 URL: https://issues.apache.org/jira/browse/DRILL-7349
             Project: Apache Drill
          Issue Type: Bug
          Components: Tools, Build &amp; Test
    Affects Versions: 1.17.0
            Reporter: Oleg Zinoviev


ClusterTest#dirTestWatcher works inconsistent if cluster size is greater when 1.

For example, test

{code:java}
public class TestClusterTest extends ClusterTest {

  @BeforeClass
  public static void setUp() throws Exception {
    startCluster(ClusterFixture.builder(dirTestWatcher).clusterSize(2));
  }

  @Test
  public void testWriteFile() throws Exception {
    final String outputFileName = "testparquetwriteremptyfiles_testwriteemptyfile";
    final File outputFile = FileUtils.getFile(dirTestWatcher.getDfsTestTmpDir(), outputFileName);

    queryBuilder().sql("CREATE TABLE dfs.tmp.%s AS SELECT * FROM cp.`employee.json` limit 1", outputFileName).run();
    assertTrue(outputFile.exists());
  }
}
{code}

may fail on assertion. 
Reason: several directories for the storage `dfs.tmp` (possibly 1 for each node) was created, and dirTestWatcher.getDfsTestTmpDir () may return the wrong one.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)