Hadoop Common
  1. Hadoop Common
  2. HADOOP-10351

Unit test TestSwiftFileSystemLsOperations#testListEmptyRoot and testListNonEmptyRoot failure.

    Details

    • Type: Test Test
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: fs/swift, test
    • Labels:
      None

      Description

      TestSwiftFileSystemLsOperations#testListEmptyRoot and testLisNontEmptyRoot fails because the unit test TestFSMainOperationsSwift creates the testing directory test.build.dir through its parent class. But during the parent classes tearDown, only the test.build.dir/test directory is deleted leaving the test.build.dir in the container. However, tests TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot do not expect the directory to exists in the container thus causing the failure.

      TestSwiftFileSystemLsOperations.testListEmptyRoot:126->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Non-empty root/[00] SwiftFileStatus

      { path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}

      expected:<0> but was:<1>
      TestSwiftFileSystemLsOperations.testListNonEmptyRoot:137->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Wrong #of root children/[00] SwiftFileStatus

      { path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}

      [01] SwiftFileStatus

      { path=swift://patchtest.softlayer/test; isDirectory=true; length=0; blocksize=33554432; modification_time=1392851462990}

      expected:<1> but was:<2>

        Activity

        Allen Wittenauer made changes -
        Fix Version/s 3.0.0 [ 12320357 ]
        Jinghui Wang made changes -
        Attachment HADOOP-10351.patch [ 12648841 ]
        Jinghui Wang made changes -
        Attachment HADOOP-10351.patch [ 12630261 ]
        Jinghui Wang made changes -
        Summary Unit test TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot failure. Unit test TestSwiftFileSystemLsOperations#testListEmptyRoot and testListNonEmptyRoot failure.
        Jinghui Wang made changes -
        Description TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot fails because the unit test TestFSMainOperationsSwift creates the testing directory test.build.dir through its parent class. But during the parent classes tearDown, only the test.build.dir/test directory is deleted leaving the test.build.dir in the container. However, tests TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot do not expect the directory to exists in the container thus causing the failure.

          TestSwiftFileSystemLsOperations.testListEmptyRoot:126->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Non-empty root/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
         expected:<0> but was:<1>
          TestSwiftFileSystemLsOperations.testListNonEmptyRoot:137->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Wrong #of root children/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
        [01] SwiftFileStatus{ path=swift://patchtest.softlayer/test; isDirectory=true; length=0; blocksize=33554432; modification_time=1392851462990}
         expected:<1> but was:<2>
        TestSwiftFileSystemLsOperations#testListEmptyRoot and testLisNontEmptyRoot fails because the unit test TestFSMainOperationsSwift creates the testing directory test.build.dir through its parent class. But during the parent classes tearDown, only the test.build.dir/test directory is deleted leaving the test.build.dir in the container. However, tests TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot do not expect the directory to exists in the container thus causing the failure.

          TestSwiftFileSystemLsOperations.testListEmptyRoot:126->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Non-empty root/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
         expected:<0> but was:<1>
          TestSwiftFileSystemLsOperations.testListNonEmptyRoot:137->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Wrong #of root children/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
        [01] SwiftFileStatus{ path=swift://patchtest.softlayer/test; isDirectory=true; length=0; blocksize=33554432; modification_time=1392851462990}
         expected:<1> but was:<2>
        Steve Loughran made changes -
        Component/s fs/swift [ 12322935 ]
        Component/s fs [ 12310689 ]
        Component/s tools [ 12319643 ]
        Steve Loughran made changes -
        Component/s fs [ 12310689 ]
        Jinghui Wang made changes -
        Attachment HADOOP-10351.patch [ 12630261 ]
        Jinghui Wang made changes -
        Description TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot fails because the unit test TestFSMainOperationsSwift creates the testing directory ${test.build.dir} through its parent class. But during the parent classes tearDown, only the ${test.build.dir}/test directory is deleted leaving the ${test.build.dir} in the container. However, tests TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot do not expect the directory to exists in the container thus causing the failure.

          TestSwiftFileSystemLsOperations.testListEmptyRoot:126->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Non-empty root/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
         expected:<0> but was:<1>
          TestSwiftFileSystemLsOperations.testListNonEmptyRoot:137->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Wrong #of root children/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
        [01] SwiftFileStatus{ path=swift://patchtest.softlayer/test; isDirectory=true; length=0; blocksize=33554432; modification_time=1392851462990}
         expected:<1> but was:<2>
        TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot fails because the unit test TestFSMainOperationsSwift creates the testing directory test.build.dir through its parent class. But during the parent classes tearDown, only the test.build.dir/test directory is deleted leaving the test.build.dir in the container. However, tests TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot do not expect the directory to exists in the container thus causing the failure.

          TestSwiftFileSystemLsOperations.testListEmptyRoot:126->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Non-empty root/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
         expected:<0> but was:<1>
          TestSwiftFileSystemLsOperations.testListNonEmptyRoot:137->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Wrong #of root children/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
        [01] SwiftFileStatus{ path=swift://patchtest.softlayer/test; isDirectory=true; length=0; blocksize=33554432; modification_time=1392851462990}
         expected:<1> but was:<2>
        Jinghui Wang made changes -
        Field Original Value New Value
        Description TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot fails because the unit test TestFSMainOperationsSwift creates the testing directory ${test.build.dir} through its parent class. But during the parent classes tearDown, only the ${test.build.dir}/test directory is deleted. However, tests TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot do not expect the directory to exists in the container thus causing the failure.

          TestSwiftFileSystemLsOperations.testListEmptyRoot:126->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Non-empty root/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
         expected:<0> but was:<1>
          TestSwiftFileSystemLsOperations.testListNonEmptyRoot:137->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Wrong #of root children/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
        [01] SwiftFileStatus{ path=swift://patchtest.softlayer/test; isDirectory=true; length=0; blocksize=33554432; modification_time=1392851462990}
         expected:<1> but was:<2>
        TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot fails because the unit test TestFSMainOperationsSwift creates the testing directory ${test.build.dir} through its parent class. But during the parent classes tearDown, only the ${test.build.dir}/test directory is deleted leaving the ${test.build.dir} in the container. However, tests TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot do not expect the directory to exists in the container thus causing the failure.

          TestSwiftFileSystemLsOperations.testListEmptyRoot:126->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Non-empty root/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
         expected:<0> but was:<1>
          TestSwiftFileSystemLsOperations.testListNonEmptyRoot:137->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Wrong #of root children/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440}
        [01] SwiftFileStatus{ path=swift://patchtest.softlayer/test; isDirectory=true; length=0; blocksize=33554432; modification_time=1392851462990}
         expected:<1> but was:<2>
        Jinghui Wang created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Jinghui Wang
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development