You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org> on 2010/07/21 17:47:50 UTC

[jira] Created: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

.gitignore files being placed in test warehouse directories causing build failure
---------------------------------------------------------------------------------

                 Key: HIVE-1475
                 URL: https://issues.apache.org/jira/browse/HIVE-1475
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Testing Infrastructure
            Reporter: Joydeep Sen Sarma
            Priority: Critical


from last comments on HIVE-1463:

test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ning Zhang updated HIVE-1475:
-----------------------------

           Status: Resolved  (was: Patch Available)
    Fix Version/s: 0.7.0
       Resolution: Fixed

Committed. Thanks Joydeep!

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Assignee: Joydeep Sen Sarma
>            Priority: Critical
>             Fix For: 0.7.0
>
>         Attachments: 1475.1.patch, 1475.2.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890952#action_12890952 ] 

Ning Zhang commented on HIVE-1475:
----------------------------------

Great! I'll take a look.

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Assignee: Joydeep Sen Sarma
>            Priority: Critical
>         Attachments: 1475.1.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joydeep Sen Sarma updated HIVE-1475:
------------------------------------

    Attachment: 1475.2.patch

there was a bug in the 1464 patch (something that i had intended to take out but forgot). this fixes things:

> --- ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java  (revision 966856)
> +++ ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java  (working copy)
> @@ -528,7 +528,7 @@
>        createSources();
>      }
>  
> -    CliSessionState ss = new CliSessionState(new HiveConf(Driver.class));
> +    CliSessionState ss = new CliSessionState(conf);
>      assert ss != null;
>      ss.in = System.in;
>  

i haven't run the full tests - but the hbase-handler tests do pass.

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Assignee: Joydeep Sen Sarma
>            Priority: Critical
>         Attachments: 1475.1.patch, 1475.2.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891450#action_12891450 ] 

Joydeep Sen Sarma commented on HIVE-1475:
-----------------------------------------

thanks for reviewing/committing and sorry for all the trouble.

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Assignee: Joydeep Sen Sarma
>            Priority: Critical
>             Fix For: 0.7.0
>
>         Attachments: 1475.1.patch, 1475.2.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891350#action_12891350 ] 

Ning Zhang commented on HIVE-1475:
----------------------------------

I'm testing it right now.

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Assignee: Joydeep Sen Sarma
>            Priority: Critical
>         Attachments: 1475.1.patch, 1475.2.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891253#action_12891253 ] 

Joydeep Sen Sarma commented on HIVE-1475:
-----------------------------------------

taking a look.

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Assignee: Joydeep Sen Sarma
>            Priority: Critical
>         Attachments: 1475.1.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891248#action_12891248 ] 

Ning Zhang commented on HIVE-1475:
----------------------------------

The test on -Dhadoop.version=0.20.0 failed. Partituclarly TestHBaseCliDriver and TestHBaseMinimrCliDriver failed. Can you take a look?

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Assignee: Joydeep Sen Sarma
>            Priority: Critical
>         Attachments: 1475.1.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joydeep Sen Sarma updated HIVE-1475:
------------------------------------

    Attachment: 1475.1.patch

- get rid of data/warehouse - totally unnecessary
- get rid of recursive copy of data/ into test/data - again unnecessary
- convert references to test/data/conf into data/conf

in addition:
- i removed a whole bunch of 'DROP TABLE' statements from the clientpositive and clientnegative queries. these are not required anymore given that the test harness cleans out test side effects
- output changes because of the above.

between this and 1464 - i think the total test time has gone down by 30 min or so if not more. still too much, but some improvement ..

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Priority: Critical
>         Attachments: 1475.1.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joydeep Sen Sarma updated HIVE-1475:
------------------------------------

      Status: Patch Available  (was: Open)
    Assignee: Joydeep Sen Sarma

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Assignee: Joydeep Sen Sarma
>            Priority: Critical
>         Attachments: 1475.1.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890947#action_12890947 ] 

Ning Zhang commented on HIVE-1475:
----------------------------------

A minor correction on the description. The related HIVE JIRA is HIVE-1464 rather than HIVE-1463. The last comment is copied as follows:

8<---------------------------------
i think i found why it's happening.
these lines in build-common.xml:

<copy todir="${test.data.dir}">
<fileset dir="${test.src.data.dir}">
<exclude name="**/.svn"/>
</fileset>
</copy>

are copying .gitignore to test/data/warehouse/src

it remains there after this. the reason this is happening now is that 'cleanup()' happens via metadata commands - and there are no tables in metadata at the beginning of the test. so nothing gets deleted. then a whole bunch of 'load data' commands are executed - which also don't delete old stuff.

after this - earlier each test would call cleanup() again - which would delete the entire directory. but now this is not done anymore. so the .gitignore stays there.

lots of ways of fixing this - but this whole data/warehouse dir and then copying it recursively is totally unnecessary i think. i will file a separate jira.


> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Priority: Critical
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890949#action_12890949 ] 

Ning Zhang commented on HIVE-1475:
----------------------------------

I think copying ${test.src.data.dir} to ${test.data.dir} is not necessary. The only use may be to create the target directory test/data/warehouse? 

For now, should we just exclude the .gitignore file in addition to .svn? The test/data/warehouse/* will be removed after the test finished. So it won't affect git I think. 


> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Priority: Critical
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1475) .gitignore files being placed in test warehouse directories causing build failure

Posted by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891323#action_12891323 ] 

Joydeep Sen Sarma commented on HIVE-1475:
-----------------------------------------

looks like the hbase tests also failed because of 1464 (or something since then) - they fail against trunk.

> .gitignore files being placed in test warehouse directories causing build failure
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-1475
>                 URL: https://issues.apache.org/jira/browse/HIVE-1475
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Joydeep Sen Sarma
>            Assignee: Joydeep Sen Sarma
>            Priority: Critical
>         Attachments: 1475.1.patch
>
>
> from last comments on HIVE-1463:
> test warehouse is being polluted with .gitignore files. these need to be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.