You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "jay vyas (JIRA)" <ji...@apache.org> on 2014/03/01 17:19:19 UTC

[jira] [Updated] (BIGTOP-1221) Expand and updated FUSE tests

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

jay vyas updated BIGTOP-1221:
-----------------------------

    Attachment: BIGTOP-1221-cos-fixes.patch

Okay ! The "right" patch is attached :) .  Also I added in the formatting stuff.   
Tests pass below: 

 {noformat}

[root@vagrant bigtop]# groovy -classpath /usr/lib/hadoop/hadoop-common-2.0.6-alpha.jar:/root/.m2/repository/org/apache/bigtop/itest/itest-common/0.8.0-SNAPSHOT/itest-common-0.8.0-SNAPSHOT.jar:/usr/lib/hadoop/lib/guava-11.0.2.jar:/etc/hadoop/conf/ /vagrant/TestFuseHCFS.groovy
Mar 01, 2014 4:08:55 PM org.apache.commons.logging.Log$info$0 call
INFO: mounting dfs://vagrant.bigtop1:17020 on /tmp/hcfs-test
Mar 01, 2014 4:08:58 PM org.apache.commons.logging.Log$info$0 call
INFO: [/tmp/hcfs-test/user/root/TestFuseDFS-testDir/dir1]
Mar 01, 2014 4:08:58 PM org.apache.commons.logging.Log$info$0 call
INFO: [file1]
Mar 01, 2014 4:08:58 PM org.apache.commons.logging.Log$info$0 call
INFO: /bin/cp -rf /tmp/FUSETEST_bigtop /tmp/hcfs-test/user/root/TestFuseDFS-testDir/cf2 out : []
Mar 01, 2014 4:09:00 PM org.apache.commons.logging.Log$info$0 call
INFO: cat output = [hi_bigtop, hi_bigtop] [] 0
Mar 01, 2014 4:09:00 PM org.apache.commons.logging.Log$info$0 call
INFO: After cd, pwd=/tmp/hcfs-test/user/root/TestFuseDFS-testDir
Mar 01, 2014 4:09:00 PM org.apache.commons.logging.Log$info$0 call
INFO: mkdir /tmp/hcfs-test/user/root/TestFuseDFS-testDir/targetdir && touch /tmp/hcfs-test/user/root/TestFuseDFS-testDir/cp1 && touch /tmp/hcfs-test/user/root/TestFuseDFS-testDir/cp2 out : []
Mar 01, 2014 4:09:00 PM org.apache.commons.logging.Log$info$0 call
INFO: touch /tmp/hcfs-test/user/root/TestFuseDFS-testDir/a out : []
Mar 01, 2014 4:09:00 PM org.apache.commons.logging.Log$info$0 call
INFO: [total 8.0K, -rw-r--r--  1 root hadoop    0 Mar  1 16:09 a, drwxrwxrwx 10 root hadoop 4.0K Mar  1 16:09 .., drwxr-xr-x  3 root hadoop 4.0K Mar  1 16:09 .]
Mar 01, 2014 4:09:00 PM org.apache.commons.logging.Log$info$0 call
INFO: mkdir -p /tmp/hcfs-test/user/root/TestFuseDFS-testDir/subdir1 && touch /tmp/hcfs-test/user/root/TestFuseDFS-testDir/subdir1/innerfile out : []
Mar 01, 2014 4:09:01 PM org.apache.commons.logging.Log$info$0 call
INFO: touch /tmp/hcfs-test/user/root/TestFuseDFS-testDir/file-removed out : []
JUnit 4 Runner, Tests: 8, Failures: 0, Time: 5660

{noformat} 

> Expand and updated FUSE tests
> -----------------------------
>
>                 Key: BIGTOP-1221
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1221
>             Project: Bigtop
>          Issue Type: Bug
>            Reporter: jay vyas
>            Assignee: jay vyas
>         Attachments: BIGTOP-1221-cos-fixes.patch, BIGTOP-1221.patch
>
>
> The BigTop TestFuseDFS need 
> - tests for consistency after individual writes : consistency in FUSE mounts is important since there are often associated multitenant workloads.  Writes should result in immediate recognition of a file. 
> - Should use HCFS semantics (That way we can confidently  use and maintain this for alternative file system implementations).
> - should use logging instead of System.out.  That way all the logs can be picked up from the same place in case we change the logging framework.  Logging in trace mode, in any case, will allow us to see everything that the ITest shell does, and so might as well use it for other logs.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)