You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bu...@apache.org on 2017/09/11 04:14:48 UTC

[1/2] hbase git commit: HBASE-18759 Fix hbase-shaded-check-invariants failure

Repository: hbase
Updated Branches:
  refs/heads/master 591d86ab2 -> ade85d8e6


HBASE-18759 Fix hbase-shaded-check-invariants failure

* relocate the commons-lang 2.y that comes in from hadoop
* exclude some additional jetty / glassfish / javax.servlet from shaded mapreduce

Signed-off-by: Apekshit Sharma <ap...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/ade85d8e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ade85d8e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ade85d8e

Branch: refs/heads/master
Commit: ade85d8e60fef8d8fad505e65af0de8d80f743f6
Parents: 79d9f7a
Author: Sean Busbey <bu...@apache.org>
Authored: Sat Sep 9 00:11:56 2017 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Sun Sep 10 23:11:01 2017 -0500

----------------------------------------------------------------------
 hbase-shaded/hbase-shaded-mapreduce/pom.xml | 16 ++++++++++++++++
 hbase-shaded/pom.xml                        |  4 ++++
 2 files changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/ade85d8e/hbase-shaded/hbase-shaded-mapreduce/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-shaded/hbase-shaded-mapreduce/pom.xml b/hbase-shaded/hbase-shaded-mapreduce/pom.xml
index f791ddc..d42735a 100644
--- a/hbase-shaded/hbase-shaded-mapreduce/pom.xml
+++ b/hbase-shaded/hbase-shaded-mapreduce/pom.xml
@@ -98,6 +98,18 @@
               </exclusion>
               <!-- Jetty not used by our MR support -->
               <exclusion>
+                <groupId>javax.servlet</groupId>
+                <artifactId>javax.servlet-api</artifactId>
+              </exclusion>
+              <exclusion>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-http</artifactId>
+              </exclusion>
+              <exclusion>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-security</artifactId>
+              </exclusion>
+              <exclusion>
                 <groupId>org.eclipse.jetty</groupId>
                 <artifactId>jetty-server</artifactId>
               </exclusion>
@@ -122,6 +134,10 @@
                 <artifactId>jetty-webapp</artifactId>
               </exclusion>
               <exclusion>
+                <groupId>org.glassfish.web</groupId>
+                <artifactId>javax.servlet.jsp</artifactId>
+              </exclusion>
+              <exclusion>
                 <groupId>org.glassfish.jersey.containers</groupId>
                 <artifactId>jersey-container-servlet-core</artifactId>
               </exclusion>

http://git-wip-us.apache.org/repos/asf/hbase/blob/ade85d8e/hbase-shaded/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-shaded/pom.xml b/hbase-shaded/pom.xml
index 16361b7..b3b6e33 100644
--- a/hbase-shaded/pom.xml
+++ b/hbase-shaded/pom.xml
@@ -318,6 +318,10 @@
                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.net</shadedPattern>
                                     </relocation>
                                     <relocation>
+                                        <pattern>org.apache.commons.lang</pattern>
+                                        <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.lang</shadedPattern>
+                                    </relocation>
+                                    <relocation>
                                         <pattern>org.apache.commons.lang3</pattern>
                                         <shadedPattern>org.apache.hadoop.hbase.shaded.org.apache.commons.lang3</shadedPattern>
                                     </relocation>


[2/2] hbase git commit: HBASE-18760 Make hbase-shaded-check-invariants part of precommit

Posted by bu...@apache.org.
HBASE-18760 Make hbase-shaded-check-invariants part of precommit

Signed-off-by: Apekshit Sharma <ap...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/79d9f7a7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/79d9f7a7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/79d9f7a7

Branch: refs/heads/master
Commit: 79d9f7a73483966f2bd1185cf2cfaf4599d39585
Parents: 591d86a
Author: Sean Busbey <bu...@apache.org>
Authored: Fri Sep 8 14:50:30 2017 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Sun Sep 10 23:11:01 2017 -0500

----------------------------------------------------------------------
 dev-support/hbase-personality.sh | 44 +++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/79d9f7a7/dev-support/hbase-personality.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index 9f591b1..cf7c6b9 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -167,6 +167,50 @@ function personality_modules
 
 ###################################################
 
+add_test_type shadedjars
+
+
+function shadedjars_initialize
+{
+  yetus_debug "initializing shaded client checks."
+  maven_add_install shadedjars
+  add_test shadedjars
+}
+
+function shadedjars_clean
+{
+  "${MAVEN}" "${MAVEN_ARGS[@]}" clean -fae -pl hbase_shaded/hbase-shaded-check-invariants -am -Prelease
+}
+
+## @description test the shaded client artifacts
+## @audience private
+## @stability evolving
+## @param repostatus
+function shadedjars_rebuild
+{
+  local repostatus=$1
+  local logfile="${PATCH_DIR}/${repostatus}-shadedjars.txt"
+
+  big_console_header "Checking shaded client builds on ${repostatus}"
+
+  echo_and_redirect "${logfile}" \
+    "${MAVEN}" "${MAVEN_ARGS[@]}" clean verify -fae --batch-mode \
+      -pl hbase-shaded/hbase-shaded-check-invariants -am \
+      -Dtest=NoUnitTests -DHBasePatchProcess -Prelease \
+      -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true
+
+  count=$(${GREP} -c '\[ERROR\]' "${logfile}")
+  if [[ ${count} -gt 0 ]]; then
+    add_vote_table -1 shadedjars "${repostatus} has ${count} errors when building our shaded downstream artifacts."
+    return 1
+  fi
+
+  add_vote_table +1 shadedjars "${repostatus} has no errors when building our shaded downstream artifacts."
+  return 0
+}
+
+###################################################
+
 add_test_type hadoopcheck
 
 ## @description  hadoopcheck file filter