impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharath Vissapragada (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5881: Use native allocation while building catalog updates
Date Tue, 12 Sep 2017 19:07:27 GMT
Bharath Vissapragada has posted comments on this change.

Change subject: IMPALA-5881: Use native allocation while building catalog updates

Patch Set 17:


Fixed a subtle bug in the test allocator.
File fe/src/test/java/org/apache/impala/thrift/

Line 40:           || size >= NativeByteArrayOutputStream.BUFFER_MAX_SIZE_LIMIT) {
> Our real allocator would not OOM if the size is big, at least not in this p

Line 60:   private void writeAndCheck(NativeByteArrayOutputStream nboas,
> I'd prefer to split this up into writeOk() and writeNotOk(). Otherwise, tes

Line 78:     NativeByteArrayOutputStream nboas =
> The first allocation happens here in the c'tor. We need to test that as wel

Line 90:     nboas = new NativeByteArrayOutputStream(testAllocator);
> nit: nbaos

Line 108: 
> remove extraneous newines

Line 114:     testAllocator = new NativeTestAllocator();
> Add a helper function for these smaller tests that creates a new allocator,
File fe/src/test/java/org/apache/impala/thrift/

Line 81:   public void testBasicSerialization()
> We usually call these TestBasicSerialization (first letter is uppercase)

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I383684effa9524734ce3c6c0fb7ed37de0e15782
Gerrit-PatchSet: 17
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Bharath Vissapragada <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Mostafa Mokhtar <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message