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

FALCON-2080 Exceptions in the log #227

Closed
wants to merge 3 commits into from

Conversation

PraveenAdlakha
Copy link
Contributor

No description provided.

@@ -442,7 +443,11 @@ private boolean checkEntityInstanceAvailability(String entityName, String cluste
String entityType) throws
FalconException {
Entity entity = EntityUtil.getEntity(entityType, entityName);

if (entity.getACL().getOwner() != null && !entity.getACL().getOwner().isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be better to have a method like OozieWorkflowEngine::switchUser() and switch back after the checkInstance command is run.

Copy link
Contributor

Choose a reason for hiding this comment

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

StringUtils.isNotBlank() can be used, instead of checking for null and empty condition for owner String value.

@pallavi-rao
Copy link

Agree with @bvellanki. I too think it is better to use the switchUser in OozieWorkflowEngine like it is done in other methods of OWE.

Entity entity = EntityUtil.getEntity(entityType, entityName);

autheticateUser(entity);

Choose a reason for hiding this comment

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

Nit: Typo : authenticate (it says autheticate)

@PraveenAdlakha
Copy link
Contributor Author

Hi All,

As we will be running the code in multithreaded mode thats why not removed the static method which was there in earlier commit.
Also I am not using OWE method as both the methods are not exactly same.Let me know in case there is any concern.

Thanks

@pallavi-rao
Copy link

pallavi-rao commented Aug 26, 2016

+1. Will merge shortly unless anyone has further comments

@peeyushb
Copy link
Contributor

+1. Looks good.

@asfgit asfgit closed this in 9655d74 Aug 29, 2016
pallavi-rao pushed a commit to pallavi-rao/falcon that referenced this pull request Feb 16, 2018
Author: Praveen Adlakha <adlakha.praveen@gmail.com>

Reviewers: @pallavi-rao, @peeyushb

Closes apache#227 from PraveenAdlakha/2080 and squashes the following commits:

2ac9ead [Praveen Adlakha] comments addressed
458a669 [Praveen Adlakha] comments addressed
ed6f7fe [Praveen Adlakha] FALCON-2080 Exceptions in the log
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants