[
https://issues.apache.org/jira/browse/AMBARI-14373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15058293#comment-15058293
]
Hudson commented on AMBARI-14373:
---------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #4042 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/4042/])
AMBARI-14373. If a bunch of RMF resources is defined using list of (aonishuk:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a9a20f6b94ab9e35574c46486944d1fbeedc261d])
* ambari-common/src/main/python/resource_management/core/base.py
*
ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka.py
> 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)