Arnab Karmakar has posted comments on this change. ( 
https://gerrit.cloudera.org/25113 )

Change subject: IMPALA-15428: Avoid retaining host stats in partition 
FileMetadataStats
......................................................................


Patch Set 3:

(6 comments)

Thanks for the comments!

https://gerrit.cloudera.org/#/c/25113/1/fe/src/main/java/org/apache/impala/catalog/FileMetadataLoader.java
File fe/src/main/java/org/apache/impala/catalog/FileMetadataLoader.java:

https://gerrit.cloudera.org/#/c/25113/1/fe/src/main/java/org/apache/impala/catalog/FileMetadataLoader.java@85
PS1, Line 85: .
> nit: remove this since it's obvious. FileMetadataLoader is transient in cat
Done


https://gerrit.cloudera.org/#/c/25113/1/fe/src/main/java/org/apache/impala/catalog/FileMetadataLoader.java@190
PS1, Line 190:     fileMetadataHostStats_ = new FileMetadataHostStats();
> If we always create a new instance here, I think we don't need the same on
Done. Removed the instance from L86.


https://gerrit.cloudera.org/#/c/25113/1/fe/src/main/java/org/apache/impala/catalog/HdfsTable.java
File fe/src/main/java/org/apache/impala/catalog/HdfsTable.java:

https://gerrit.cloudera.org/#/c/25113/1/fe/src/main/java/org/apache/impala/catalog/HdfsTable.java@759
PS1, Line 759:  = null;
> I don't think we need this since toLogString() supports a null loadHostStat
Replaced the instantiation with null.


https://gerrit.cloudera.org/#/c/25113/1/fe/src/main/java/org/apache/impala/catalog/ParallelFileMetadataLoader.java
File fe/src/main/java/org/apache/impala/catalog/ParallelFileMetadataLoader.java:

https://gerrit.cloudera.org/#/c/25113/1/fe/src/main/java/org/apache/impala/catalog/ParallelFileMetadataLoader.java@180
PS1, Line 180:     if (loaders_.isEmpty()) return;
> nit: move this below the quick return and don't need the initialization on
Done


https://gerrit.cloudera.org/#/c/25113/1/fe/src/test/java/org/apache/impala/catalog/FileMetadataLoaderTest.java
File fe/src/test/java/org/apache/impala/catalog/FileMetadataLoaderTest.java:

https://gerrit.cloudera.org/#/c/25113/1/fe/src/test/java/org/apache/impala/catalog/FileMetadataLoaderTest.java@133
PS1, Line 133: >
> Is it intended to change ">=" to ">"? Will this fail in S3 builds?
Thanks for noticing this! I dont remember correctly, I think it was 
unintentional. Restored it back to >= 0.


https://gerrit.cloudera.org/#/c/25113/1/tests/custom_cluster/test_file_metadata_stats.py
File tests/custom_cluster/test_file_metadata_stats.py:

https://gerrit.cloudera.org/#/c/25113/1/tests/custom_cluster/test_file_metadata_stats.py@154
PS1, Line 154:
             :
             :
> This already reuses the file metadata that reloaded after INSERT. I think w
This doesn't really provide much extra coverage, I deleted 
test_file_metadata_stats_hosts_on_refresh.
The log regex in test_file_metadata_stats_unpartitioned_table now ends with 
.*Hosts: \d+, after Files: \d+.*Blocks: \d+.



--
To view, visit https://gerrit.cloudera.org/25113
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I4bc33ae36cfc29a63a1eff79f126b36c1c2acd8b
Gerrit-Change-Number: 25113
Gerrit-PatchSet: 3
Gerrit-Owner: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Comment-Date: Thu, 12 Nov 2026 03:31:41 +0000
Gerrit-HasComments: Yes

Reply via email to