Bharath Vissapragada has posted comments on this change.

Change subject: IMPALA-4789: Fix slow metadata loading due to inconsistent 
paths.
......................................................................


Patch Set 1: Code-Review+1

(1 comment)

The fix makes sense to me. We are doing a lot of un-needed isDescendantPath() 
calls. Thanks for fixing it.

http://gerrit.cloudera.org:8080/#/c/5743/1/fe/src/main/java/org/apache/impala/common/FileSystemUtil.java
File fe/src/main/java/org/apache/impala/common/FileSystemUtil.java:

Line 433:     while (!p.isRoot() && p.depth() != parent.depth()) p = 
p.getParent();
Now that we are here, should we consider fixing this method to make it more 
faster by avoiding p.getParent() ?


-- 
To view, visit http://gerrit.cloudera.org:8080/5743
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8c881b7cb155032b82fba0e29350ca31de388d55
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Alex Behm <alex.b...@cloudera.com>
Gerrit-Reviewer: Bharath Vissapragada <bhara...@cloudera.com>
Gerrit-HasComments: Yes

Reply via email to