ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-15468) file_system get_mount_point_for_dir works incorrect
Date Fri, 18 Mar 2016 13:08:33 GMT

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

Andrew Onischuk commented on AMBARI-15468:
------------------------------------------

Seems like there are 20+ tasks pending on Hadoop QA.
Ran the tests manually.
{noformat}
branch 2.2
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Server ..................................... SUCCESS [1:48.371s]
[INFO] Ambari Agent ...................................... SUCCESS [17.592s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:06.599s
[INFO] Finished at: Fri Mar 18 15:04:17 EET 2016
[INFO] Final Memory: 132M/623M
[INFO] ------------------------------------------------------------------------

trunk
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Server ..................................... SUCCESS [1:32.656s]
[INFO] Ambari Agent ...................................... SUCCESS [14.945s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:48.279s
[INFO] Finished at: Fri Mar 18 15:07:30 EET 2016
[INFO] Final Memory: 140M/920M
[INFO] -----------------------------------------------------------------------
{noformat}

> file_system get_mount_point_for_dir works incorrect
> ---------------------------------------------------
>
>                 Key: AMBARI-15468
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15468
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.2.2
>
>         Attachments: AMBARI-15468.patch
>
>
> **Case 1**:
>     
>     
>     [root@c6403 ~]# mount
>     /dev/mapper/VolGroup-lv_root on / type ext4 (rw)
>     /newFs on /newHdfsDir type ext3 (rw,loop=/dev/loop1)
>     
>     [root@c6403 ~]# python
>     >>> from resource_management import *
>     >>> from resource_management.libraries.functions import file_system
>     >>> with Environment() as env:
>     ...   print file_system.get_mount_point_for_dir('/newHdfsDir/some_dir')
>     ...   print file_system.get_mount_point_for_dir('/newHdfsDir')
>     ... 
>     2016-03-17 13:00:33,640 - Mount point for directory /newHdfsDir/some_dir is /
>     2016-03-17 13:00:33,640 - Mount point for directory /newHdfsDir is /
>     
> It should be /newHdfsDir, not /
> **Reason**   
> /newHdfsDir and / have the same count of os separators.
> **Case 2**:
>     
>     
>     [root@c6403 ~]# mount
>     /dev/mapper/VolGroup-lv_root on / type ext4 (rw)
>     /newFs on /a/a type ext3 (rw,loop=/dev/loop2)
>     /newFs on /a/a1 type ext3 (rw,loop=/dev/loop3)
>     
>     [root@c6403 ~]# python
>     >>> from resource_management import *
>     >>> from resource_management.libraries.functions import file_system
>     >>> with Environment() as env:
>     >>> from resource_management import *
>     >>> from resource_management.libraries.functions import file_system
>     >>> with Environment() as env:
>     ...   print file_system.get_mount_point_for_dir('/a/a1/some_dir')
>     ...   print file_system.get_mount_point_for_dir('/a/a1')
>     ...
>     2016-03-17 13:07:38,899 - Mount point for directory /a/a1/some_dir is /a/a
>     2016-03-17 13:07:38,900 - Mount point for directory /a/a1 is /a/a
>     
> It should be /a/a1, not /a/a



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message