impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimitris Tsirogiannis (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4029: Reduce memory requirements for storing file metadata
Date Mon, 17 Apr 2017 20:22:41 GMT
Dimitris Tsirogiannis has posted comments on this change.

Change subject: IMPALA-4029: Reduce memory requirements for storing file metadata

Patch Set 4:

File common/fbs/CatalogObjects.fbs:

Line 40:   // Total length of the block
> It can be computed based on the offset, file length, and block size. No nee
Good point. Left a TODO.

Line 65:   last_modification_time: long (id: 3);
> I was mostly wondering if the field order matters. For example, could we sa
Interesting thought. Left a TODO to investigate later.
File fe/src/main/java/org/apache/impala/catalog/

Line 199:     private static int[] loadBlockMetadata(FlatBufferBuilder fbb,
> createBlockMetadata()?

Line 303:     private final boolean isCached_;
> hasCachedReplica_

Line 372:     private static short[] loadDiskIds(BlockLocation location, FileDescStats stats)
> mapDiskIds() or createDiskIds()?

Line 380:         return Shorts.toArray(Collections.<Short>emptyList());
> why not:
hahah. I wonder if I could add another unnecessary step :P

Line 387:       List<Short> diskIDs = new ArrayList<Short>(storageIds.length);
> Why not a short[]? The size is fixed and you can even use the 'i' index in 

Line 403:     public boolean isCached() { return isCached_; }
> hasCachedReplica()
File fe/src/main/java/org/apache/impala/catalog/

Line 110:     return storedInImpaladCatalogCache_ || RuntimeEnv.INSTANCE.isTestEnv();
> Comment on the test env condition

Line 287:     // Indicate that this table is stored in an Impalad catalog cache.
> no need for comment

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I483d3cadc9d459f71a310c35a130d073597b0983
Gerrit-PatchSet: 4
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Henry Robinson <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message