[ 
https://issues.apache.org/jira/browse/DRILL-7710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17089024#comment-17089024
 ] 

ASF GitHub Bot commented on DRILL-7710:
---------------------------------------

vvysotskyi opened a new pull request #2065:
URL: https://github.com/apache/drill/pull/2065


   # [DRILL-7710](https://issues.apache.org/jira/browse/DRILL-7710): Fix 
TestMetastoreCommands#testDefaultSegment test
   
   ## Description
   Fixed deleting metadata for the failing test. Fixed `ZK_ROOT` location. 
Before changes, was passed relative folder location to the config, like 
`./target/org.apache.drill.exec.sql.TestMetastoreCommands/dfsTestTmp/...`. When 
drillbit for tests is started, it resolves this folder location in relation to 
the home directory, so table metadata wasn't dropped between two test runs.
   
   ## Documentation
   NA
   
   ## Testing
   Reran all tests.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


> Fix TestMetastoreCommands#testDefaultSegment test
> -------------------------------------------------
>
>                 Key: DRILL-7710
>                 URL: https://issues.apache.org/jira/browse/DRILL-7710
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.17.0
>            Reporter: Arina Ielchiieva
>            Assignee: Vova Vysotskyi
>            Priority: Major
>             Fix For: 1.18.0
>
>
> Test {{TestMetastoreCommands#testDefaultSegment}} sometimes fails:
> {noformat}
> [ERROR]   TestMetastoreCommands.testDefaultSegment:1870 
> expected:<SegmentMetadata[
> column=null,
> path=/root/drillAutomation/builds/drill/exec/java-exec/target/org.apache.drill.exec.sql.TestMetastoreCommands/dfsTestTmp/1587168639522-0/multilevel/parquet/1994/Q1,
> partitionValues=null,
> locations=[/root/drillAutomation/builds/drill/exec/java-exec/target/org.apache.drill.exec.sql.TestMetastoreCommands/dfsTestTmp/1587168639522-0/multilevel/parquet/1994/Q1/orders_94_q1.parquet],
> tableInfo=TableInfo[storagePlugin=dfs, workspace=tmp, 
> name=multilevel/parquet/1994/Q1, type=null, owner=null],
> metadataInfo=MetadataInfo[type=SEGMENT, key=DEFAULT_SEGMENT, identifier=null],
> schema=null,
> columnsStatistics={},
> metadataStatistics={},
> lastModifiedTime=1587167178000]> but was:<SegmentMetadata[
> column=null,
> path=/root/drillAutomation/builds/drill/exec/java-exec/target/org.apache.drill.exec.sql.TestMetastoreCommands/dfsTestTmp/1587125640835-0/multilevel/parquet/1994/Q1,
> partitionValues=null,
> locations=[/root/drillAutomation/builds/drill/exec/java-exec/target/org.apache.drill.exec.sql.TestMetastoreCommands/dfsTestTmp/1587125640835-0/multilevel/parquet/1994/Q1/orders_94_q1.parquet],
> tableInfo=TableInfo[storagePlugin=dfs, workspace=tmp, 
> name=multilevel/parquet/1994/Q1, type=null, owner=null],
> metadataInfo=MetadataInfo[type=SEGMENT, key=DEFAULT_SEGMENT, 
> identifier=DEFAULT_SEGMENT],
> schema=null,
> columnsStatistics={},
> metadataStatistics={},
> lastModifiedTime=1587124183000]>
> {noformat}



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

Reply via email to