falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "karan kumar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FALCON-967) Bettor Error message while feed submission with non path with wrong perms
Date Mon, 22 Dec 2014 15:25:13 GMT
karan kumar created FALCON-967:
----------------------------------

             Summary: Bettor Error message while feed submission with non path with wrong
perms
                 Key: FALCON-967
                 URL: https://issues.apache.org/jira/browse/FALCON-967
             Project: Falcon
          Issue Type: Bug
            Reporter: karan kumar
            Priority: Minor


Suppose a feed at path <a/b/c/yyyy/mm/dd/e> is submitted with acl user as "user1".
On hdfs path <a/b/c> has the fileowner as "user2".
Falcon fails to submit the feed with this error message.

Caused by: org.apache.falcon.FalconException: Feed ACL owner user1 doesn't match the actual
file owner user2 for location /a/b/${YEAR}-${MONTH}-${DAY}/data
 
In the case where  /a/b/${YEAR}-${MONTH}-${DAY}/data has perms with user1 falcon only checks
for perms till /a/b

{noformat}
private String getRelativePath(Location location) {
        // if the path contains variables, locate on the "parent" path (just before first
variable usage)
        Matcher matcher = FeedDataPath.PATTERN.matcher(location.getPath());
        boolean timedPath = matcher.find();
        if (timedPath) {
            return location.getPath().substring(0, matcher.start());
        }
        return location.getPath();
    }
{noformat}

but the error message prints the full feed path.
The error message should contain path till /a/b IMHO.


 



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

Mime
View raw message