You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2015/12/15 15:28:46 UTC
[jira] [Commented] (AMBARI-14373) If a bunch of RMF resources is
defined using list of names, list is modified in runtime
[ https://issues.apache.org/jira/browse/AMBARI-14373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15058125#comment-15058125 ]
Andrew Onischuk commented on AMBARI-14373:
------------------------------------------
Seems like hudson has been broken for a while, I'm attaching my tests results:
{noformat}
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Web ........................................ SUCCESS [56.289s]
[INFO] Ambari Views ...................................... SUCCESS [3.739s]
[INFO] Ambari Admin View ................................. SUCCESS [33.879s]
[INFO] Ambari Metrics Common ............................. SUCCESS [4.264s]
[INFO] Ambari Server ..................................... SUCCESS [58:27.947s]
[INFO] Ambari Agent ...................................... SUCCESS [25.712s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:00:32.554s
[INFO] Finished at: Tue Dec 15 15:13:14 EET 2015
[INFO] Final Memory: 61M/684M
{noformat}
> If a bunch of RMF resources is defined using list of names, list is modified in runtime
> ---------------------------------------------------------------------------------------
>
> Key: AMBARI-14373
> URL: https://issues.apache.org/jira/browse/AMBARI-14373
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.2.0
> Reporter: Dmitry Lysnichenko
> Assignee: Andrew Onischuk
> Fix For: 2.3.0
>
> Attachments: AMBARI-14373.patch
>
>
> Given code like
> {code}
> base_dirs = [params.kafka_log_dir, params.kafka_pid_dir, params.conf_dir]
> Directory(base_dirs,
> mode=0755,
> cd_access='a',
> owner=params.kafka_user,
> group=params.user_group,
> recursive=True
> )
> set_dir_ownership(base_dirs)
> {code}
> base_dirs becomes empty after using it in Directory definition (there is a side effect here)
> A requirement for this Jira is to remove the shallow copy slice in {{kafka.py}}:
> {code}
> Directory(kafka_data_dirs[:], # Todo: remove list copy when AMBARI-14373 is fixed
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)