Gergely Fürnstáhl has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18191 )

Change subject: IMPALA-9433: Improved caching of HdfsFileHandles
......................................................................


Patch Set 21:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/18191/21/be/src/util/lru-multi-cache.h
File be/src/util/lru-multi-cache.h:

http://gerrit.cloudera.org:8080/#/c/18191/21/be/src/util/lru-multi-cache.h@170
PS21, Line 170:     Container_internal& container;
              :     typename Container_internal::iterator it;
> I haven't tried this, but here is something that might work:
Started to implement with boost::optional, could work for Release/Destroy, but 
not for eviction. EvictOne only sees the ValueType_internal object through the 
LRU list, that's why I put the self referencing iterator there in the beginning.

I could add another layer of indirection, not using the ValueType_internal as 
the LruList's inner type, rather a seperate inner class which has a 
Container::iterator member and the intrusive list hook, but that somewhat loses 
the point of the intrusive list, I don't really like it



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6b5c5e9e2b5db2847ab88c41f667c9ca1b03d51a
Gerrit-Change-Number: 18191
Gerrit-PatchSet: 21
Gerrit-Owner: Gergely Fürnstáhl <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Gergely Fürnstáhl <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Fri, 25 Feb 2022 11:24:23 +0000
Gerrit-HasComments: Yes

Reply via email to