Sailesh Mukil has posted comments on this change. Change subject: IMPALA-5857: avoid invalid free of hedged read metrics ......................................................................
Patch Set 1: Code-Review+2 (1 comment) http://gerrit.cloudera.org:8080/#/c/7885/1/be/src/runtime/disk-io-mgr-scan-range.cc File be/src/runtime/disk-io-mgr-scan-range.cc: PS1, Line 354: struct hdfsHedgedReadMetrics* hedged_metrics; > I think it's coincidental that hdfsFreeHedgedReadMetrics() currently works It just calls a free(ptr): http://github.mtv.cloudera.com/CDH/hadoop/blob/9ffaadf806c7a061f3494ebdcaec9d43da24b2bf/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/hdfs.c#L174 But I agree that it's better to rely on the documented interface rather than the internal implementation that could change at any point. -- To view, visit http://gerrit.cloudera.org:8080/7885 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I93baf3b672429c0283d7f031ff302aca31e05be4 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tim Armstrong <[email protected]> Gerrit-Reviewer: Matthew Jacobs <[email protected]> Gerrit-Reviewer: Sailesh Mukil <[email protected]> Gerrit-Reviewer: Tim Armstrong <[email protected]> Gerrit-HasComments: Yes
