You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Grant Henke (Code Review)" <ge...@cloudera.org> on 2020/04/27 00:43:20 UTC

[kudu-CR](branch-1.12.x) [binary-jar] Fix macOS binary jar libc++abi error

Grant Henke has uploaded this change for review. ( http://gerrit.cloudera.org:8080/15813


Change subject: [binary-jar] Fix macOS binary jar libc++abi error
......................................................................

[binary-jar] Fix macOS binary jar libc++abi error

The macOS binary jar was broken by commit 458e6ce because
thirdparty now builds with libc++abi for normal builds.

This resulted in an error like the below when using a macOS binary jar:
    [main] INFO org.apache.kudu.shaded.com.google.gradle.osdetector.OsDetector - os.detected.classifier=osx-x86_64
    [main] INFO org.apache.kudu.test.cluster.KuduBinaryLocator - Using Kudu binary jar directory: /var/folders/3y/nrs6__c10n107f357n7yx2100000gp/T/kudu-binary-jar6249991106299083358
    [main] INFO org.apache.kudu.test.cluster.MiniKuduCluster - Starting process: [/var/folders/3y/nrs6__c10n107f357n7yx2100000gp/T/kudu-binary-jar6249991106299083358/kudu-binary-1.12.0-osx-x86_64/bin/kudu, test, mini_cluster, --serialization=pb]
    [cluster stderr printer] INFO org.apache.kudu.test.cluster.MiniKuduCluster - dyld: Library not loaded: @rpath/libc++abi.1.dylib
    [cluster stderr printer] INFO org.apache.kudu.test.cluster.MiniKuduCluster -   Referenced from: /private/var/folders/3y/nrs6__c10n107f357n7yx2100000gp/T/kudu-binary-jar6249991106299083358/kudu-binary-1.12.0-osx-x86_64/lib/libglog.0.dylib
    [cluster stderr printer] INFO org.apache.kudu.test.cluster.MiniKuduCluster -   Reason: image not found
    [main] ERROR org.apache.kudu.test.junit.RetryRule - org.apache.kudu.examples.ExampleTest.testCreateExampleTable: failed attempt 1
    java.io.EOFException

This patch fixes the issue by adjusting the `PAT_MACOS_LIB_EXCLUDE`
regex to ensure the libc++abi library is not excluded from the jar.
Additionaly it adjusts the licence file to include the libc++abi.

Change-Id: I395fd39d62fd7bfcd2aa2b0781d77c3a16e19d4b
Reviewed-on: http://gerrit.cloudera.org:8080/15812
Tested-by: Kudu Jenkins
Reviewed-by: Hao Hao <ha...@cloudera.com>
(cherry picked from commit ae4b71548726314a0bc0a5258de454d1a65d08a3)
---
M build-support/mini-cluster/LICENSE-BINARY-JAR-OSX.txt
M build-support/mini-cluster/relocate_binaries_for_mini_cluster.py
2 files changed, 5 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/13/15813/1
-- 
To view, visit http://gerrit.cloudera.org:8080/15813
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: branch-1.12.x
Gerrit-MessageType: newchange
Gerrit-Change-Id: I395fd39d62fd7bfcd2aa2b0781d77c3a16e19d4b
Gerrit-Change-Number: 15813
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>

[kudu-CR](branch-1.12.x) [binary-jar] Fix macOS binary jar libc++abi error

Posted by "Grant Henke (Code Review)" <ge...@cloudera.org>.
Grant Henke has removed a vote on this change.

Change subject: [binary-jar] Fix macOS binary jar libc++abi error
......................................................................


Removed Verified-1 by Kudu Jenkins (120)
-- 
To view, visit http://gerrit.cloudera.org:8080/15813
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: branch-1.12.x
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I395fd39d62fd7bfcd2aa2b0781d77c3a16e19d4b
Gerrit-Change-Number: 15813
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)

[kudu-CR](branch-1.12.x) [binary-jar] Fix macOS binary jar libc++abi error

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/15813 )

Change subject: [binary-jar] Fix macOS binary jar libc++abi error
......................................................................


Patch Set 1: Code-Review+2


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

Gerrit-Project: kudu
Gerrit-Branch: branch-1.12.x
Gerrit-MessageType: comment
Gerrit-Change-Id: I395fd39d62fd7bfcd2aa2b0781d77c3a16e19d4b
Gerrit-Change-Number: 15813
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Mon, 27 Apr 2020 14:58:28 +0000
Gerrit-HasComments: No

[kudu-CR](branch-1.12.x) [binary-jar] Fix macOS binary jar libc++abi error

Posted by "Grant Henke (Code Review)" <ge...@cloudera.org>.
Grant Henke has posted comments on this change. ( http://gerrit.cloudera.org:8080/15813 )

Change subject: [binary-jar] Fix macOS binary jar libc++abi error
......................................................................


Patch Set 1: Verified+1


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

Gerrit-Project: kudu
Gerrit-Branch: branch-1.12.x
Gerrit-MessageType: comment
Gerrit-Change-Id: I395fd39d62fd7bfcd2aa2b0781d77c3a16e19d4b
Gerrit-Change-Number: 15813
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Mon, 27 Apr 2020 14:03:22 +0000
Gerrit-HasComments: No

[kudu-CR](branch-1.12.x) [binary-jar] Fix macOS binary jar libc++abi error

Posted by "Grant Henke (Code Review)" <ge...@cloudera.org>.
Grant Henke has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/15813 )

Change subject: [binary-jar] Fix macOS binary jar libc++abi error
......................................................................

[binary-jar] Fix macOS binary jar libc++abi error

The macOS binary jar was broken by commit 458e6ce because
thirdparty now builds with libc++abi for normal builds.

This resulted in an error like the below when using a macOS binary jar:
    [main] INFO org.apache.kudu.shaded.com.google.gradle.osdetector.OsDetector - os.detected.classifier=osx-x86_64
    [main] INFO org.apache.kudu.test.cluster.KuduBinaryLocator - Using Kudu binary jar directory: /var/folders/3y/nrs6__c10n107f357n7yx2100000gp/T/kudu-binary-jar6249991106299083358
    [main] INFO org.apache.kudu.test.cluster.MiniKuduCluster - Starting process: [/var/folders/3y/nrs6__c10n107f357n7yx2100000gp/T/kudu-binary-jar6249991106299083358/kudu-binary-1.12.0-osx-x86_64/bin/kudu, test, mini_cluster, --serialization=pb]
    [cluster stderr printer] INFO org.apache.kudu.test.cluster.MiniKuduCluster - dyld: Library not loaded: @rpath/libc++abi.1.dylib
    [cluster stderr printer] INFO org.apache.kudu.test.cluster.MiniKuduCluster -   Referenced from: /private/var/folders/3y/nrs6__c10n107f357n7yx2100000gp/T/kudu-binary-jar6249991106299083358/kudu-binary-1.12.0-osx-x86_64/lib/libglog.0.dylib
    [cluster stderr printer] INFO org.apache.kudu.test.cluster.MiniKuduCluster -   Reason: image not found
    [main] ERROR org.apache.kudu.test.junit.RetryRule - org.apache.kudu.examples.ExampleTest.testCreateExampleTable: failed attempt 1
    java.io.EOFException

This patch fixes the issue by adjusting the `PAT_MACOS_LIB_EXCLUDE`
regex to ensure the libc++abi library is not excluded from the jar.
Additionaly it adjusts the licence file to include the libc++abi.

Change-Id: I395fd39d62fd7bfcd2aa2b0781d77c3a16e19d4b
Reviewed-on: http://gerrit.cloudera.org:8080/15812
Tested-by: Kudu Jenkins
Reviewed-by: Hao Hao <ha...@cloudera.com>
(cherry picked from commit ae4b71548726314a0bc0a5258de454d1a65d08a3)
Reviewed-on: http://gerrit.cloudera.org:8080/15813
Tested-by: Grant Henke <gr...@apache.org>
Reviewed-by: Alexey Serbin <as...@cloudera.com>
---
M build-support/mini-cluster/LICENSE-BINARY-JAR-OSX.txt
M build-support/mini-cluster/relocate_binaries_for_mini_cluster.py
2 files changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Grant Henke: Verified
  Alexey Serbin: Looks good to me, approved

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

Gerrit-Project: kudu
Gerrit-Branch: branch-1.12.x
Gerrit-MessageType: merged
Gerrit-Change-Id: I395fd39d62fd7bfcd2aa2b0781d77c3a16e19d4b
Gerrit-Change-Number: 15813
Gerrit-PatchSet: 2
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)