Michael Ho has posted comments on this change.

Change subject: IMPALA-3854: Fix use-after-free in HdfsTextScanner::Close()
......................................................................


Patch Set 3:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/3630/3/be/src/exec/hdfs-scan-node.cc
File be/src/exec/hdfs-scan-node.cc:

Line 1225:     // Even though the Stream objects in the ScannerContext are 
destroyed implicitly
> after making the suggested changes I think we can remove this comment
Done


Line 1250:   // Release streams explicitly here for clarity.
> after making the suggested changes I think we can remove this comment
Done


http://gerrit.cloudera.org:8080/#/c/3630/3/be/src/exec/hdfs-scanner.cc
File be/src/exec/hdfs-scanner.cc:

PS3, Line 213: 
> why did you remove this?
We no longer free the stream objects in 
ScannerContext::ReleaseCompletedResources(). I have moved it to 
HdfScanner::Close() instead.


http://gerrit.cloudera.org:8080/#/c/3630/3/be/src/exec/scanner-context.cc
File be/src/exec/scanner-context.cc:

Line 69:   std::unique_ptr<Stream> stream(new Stream(this));
> As discussed offline, the unique_ptr here shows the ownership of the stream
DCHECK added in the destructor. Keeping the unique_ptr based on discussion 
offline.


http://gerrit.cloudera.org:8080/#/c/3630/3/be/src/exec/scanner-context.h
File be/src/exec/scanner-context.h:

Line 286:   void ReleaseAllStreams();
> ClearStreams()?
Done


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ia88f6285563ff669ae215af22ed2d45e5398adae
Gerrit-PatchSet: 3
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Michael Ho <[email protected]>
Gerrit-Reviewer: Alex Behm <[email protected]>
Gerrit-Reviewer: Michael Ho <[email protected]>
Gerrit-HasComments: Yes

Reply via email to