impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry Robinson (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4758: (1/2) Update gutil/ from Kudu@a1bfd7b
Date Tue, 28 Mar 2017 20:59:03 GMT
Henry Robinson has posted comments on this change.

Change subject: IMPALA-4758: (1/2) Update gutil/ from Kudu@a1bfd7b

Patch Set 7:


I don't think there's a new upstream version of this code in Kudu (which comes from
But they made some local changes that were necessary to keep the kudu library dependencies

I think having gutil as a toolchain dependency might make some sense in the future, so that
it's easier to replay the patches we want if we ever upgrade the base code.

For now, I've split the two commits a bit better: this commit only imports the code (and touches
CMakeLists.txt). The following commit makes all the code changes required to have it compile.
That way only that commit needs to be checked in the future if we have to do this again.
File be/src/gutil/

Line 88: }
> why did these move from the header?
I moved our implementation into our BitUtil class. These went back to the .cc file where they
were originally.
File be/src/gutil/gscoped_ptr.h:

PS7, Line 112: kudu
> is that intentional?
It happened in this kudu commit:

"gutil: move classes used by exported client into kudu namespace"

To me it's unfortunate but benign. Since the kutil libraries use these classes (much more
than we do), we'd have to change the namespacing either here or there. I think, but am prepared
to be convinced otherwise, that it's better to have as few changes to these bulk imports as
File be/src/gutil/port.h:

PS7, Line 939: kudu
> is that expected?
Came with the bulk-import. Since it's commented out, I didn't investigate too deeply (again,
it's a place where fidelity to the source probably outweighs cleanliness concerns).
File be/src/gutil/walltime.h:

PS7, Line 83: 1e6
> we had intentionally changed these so that we'd be using integer operations

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic708a9c4e76ede17af9b06e0a0a8e9ae7d357960
Gerrit-PatchSet: 7
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Henry Robinson <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Henry Robinson <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message