[ 
https://issues.apache.org/jira/browse/GOBBLIN-2128?focusedWorklogId=929701&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-929701
 ]

ASF GitHub Bot logged work on GOBBLIN-2128:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Aug/24 19:06
            Start Date: 11/Aug/24 19:06
    Worklog Time Spent: 10m 
      Work Description: Will-Lo merged PR #4020:
URL: https://github.com/apache/gobblin/pull/4020




Issue Time Tracking
-------------------

    Worklog Id:     (was: 929701)
    Time Spent: 50m  (was: 40m)

> Set permission in Manifest distcp does not set all paths correctly
> ------------------------------------------------------------------
>
>                 Key: GOBBLIN-2128
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-2128
>             Project: Apache Gobblin
>          Issue Type: Bug
>            Reporter: William Lo
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> There's a bug in the treemap for `SetPermissionCommitStep` where paths of the 
> equal file depth can be misassigned permissions due to an error in the 
> Treemap initialization:
> {code:java}
> Long.compare(o1.chars().filter(ch -> ch == '/').count(), o2.chars().filter(ch 
> -> ch == '/').count()) {code}
> Treats any key with the same depth as equal, this could lead to incorrect 
> behavior when performing map operations in this map.
> We want to rearrange this so that the comparator also compares the source 
> string.
> Additionally, build off the map from the same file permissions as the 
> ancestor tree in copyable file so that it can stay consistent permission 
> reading and reduce FS calls.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to