Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

FALCON-1974 Cluster update : Allow superuser to update bundle/coord of dependent entities #151

Closed
wants to merge 2 commits into from

Conversation

bvellanki
Copy link
Contributor

No description provided.

//Set end times for old coords
updateCoords(clusterName, oldBundle, EntityUtil.getParallel(oldEntity), effectiveTime, newEntity);
//schedule new entity
String newJobId = scheduleForUpdate(newEntity, cluster, effectiveTime, user);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function scheduleForUpdate also performs user switch (current user -> user -> current user). However, since you already switch the user before calling scheduleForUpdate, the switch is no longer needed in scheduleForUpdate. Better to remove the "user" argument and user switch in scheduleForUpdate, as this function is only being used in updateInternal.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @yzheng-hortonworks , I will make the necessary update.

@ying-eng
Copy link
Contributor

+1

@asfgit asfgit closed this in fcd066a May 20, 2016
pallavi-rao pushed a commit to pallavi-rao/falcon that referenced this pull request Feb 16, 2018
…f dependent entities

Author: bvellanki <bvellanki@hortonworks.com>

Reviewers: "Ying Zheng  <yzheng@hortonworks.com>"

Closes apache#151 from bvellanki/FALCON-1974
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants