Bikramjeet Vig has posted comments on this change.

Change subject: IMPALA-3671: Add query option to limit scratch space usage
......................................................................


Patch Set 3:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/3938/3/be/src/runtime/tmp-file-mgr.cc
File be/src/runtime/tmp-file-mgr.cc:

Line 216:     file_group_(file_group),
> Is it possible for file_group to be NULL here? Add a DCHECK?
Done. Added a DCHECK for the FileGroup constructor as well where TmpFileMgr obj 
cannot be null.


PS3, Line 225: file_group_ != NULL
> Is this check necessary? file_group_ should be non-NULL always, right?
Done


http://gerrit.cloudera.org:8080/#/c/3938/3/be/src/runtime/tmp-file-mgr.h
File be/src/runtime/tmp-file-mgr.h:

Line 143:     ~FileGroup(){
> Nit: we normally put it after the constructor. Best to be consistent so it'
Done


Line 154:     boost::ptr_vector<File> tmp_files_;
> I'm ok with leaving as-is, since this is carried over from BufferedBlockMgr
switched to using vector<unique_ptr<>> instead


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3e9039ad1c0df978ab71b956af33fd997714e73
Gerrit-PatchSet: 3
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Bikramjeet Vig <[email protected]>
Gerrit-Reviewer: Bikramjeet Vig <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-HasComments: Yes

Reply via email to