Tim Armstrong has posted comments on this change. Change subject: IMPALA-5857: avoid invalid free of hedged read metrics ......................................................................
Patch Set 1: (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; > Would it be less confusing if we just initialized 'hedged_metrics' to NULL I think it's coincidental that hdfsFreeHedgedReadMetrics() currently works if the argument is a NULL pointer. It's not documented in the interface. Seems like a bad idea to depend on the behaviour. -- 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
