Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBASE-8868. add metric to report client shortcircuit reads. #1334

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

jojochuang
Copy link
Contributor

Expose file system level read metrics for RegionServer.

If the HBase RS runs on top of HDFS, calculate the aggregation of
ReadStatistics of each HdfsFileInputStream. These metrics include:
(1) total number of bytes read from HDFS.
(2) total number of bytes read from local DataNode.
(3) total number of bytes read locally through short-circuit read.
(4) total number of bytes read locally through zero-copy read.

Because HDFS ReadStatistics is calculated per input stream, it is not
feasible to update the aggregated number in real time. Instead, the
metrics are updated when an input stream is closed.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 24s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 34s Maven dependency ordering for branch
+1 💚 mvninstall 6m 6s master passed
+1 💚 compile 3m 27s master passed
+1 💚 shadedjars 5m 24s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 4m 41s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 15s Maven dependency ordering for patch
+1 💚 mvninstall 6m 42s the patch passed
+1 💚 compile 3m 26s the patch passed
+1 💚 javac 3m 26s the patch passed
+1 💚 shadedjars 5m 24s patch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 3m 46s the patch passed
_ Other Tests _
-1 ❌ unit 11m 15s root in the patch failed.
53m 14s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR #1334
Optional Tests javac javadoc unit shadedjars compile
uname Linux a3e7333cf7b9 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / afc1746
Default Java 1.8.0_232
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk8-hadoop2-check/output/patch-unit-root.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/testReport/
Max. process+thread count 566 (vs. ulimit of 10000)
modules C: hbase-hadoop-compat hbase-hadoop2-compat hbase-server . U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/console
versions git=2.17.1 maven=2018-06-17T18:33:14Z)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@jojochuang
Copy link
Contributor Author

The test TestVerifyBucketCacheFile#testRetrieveFromFile fails consistently. However, it doesn't look like it was introduced by this patch. HBASE-23976 Nick reported the same issue.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 2m 11s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗 mvndep 0m 48s Maven dependency ordering for branch
+1 💚 mvninstall 8m 6s master passed
+1 💚 checkstyle 3m 7s master passed
+0 🆗 refguide 6m 33s branch has no errors when building the reference guide. See footer for rendered docs, which you should manually inspect.
-1 ❌ spotbugs 15m 47s root in master has 1 extant spotbugs warnings.
-1 ❌ spotbugs 2m 45s hbase-server in master has 1 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 16s Maven dependency ordering for patch
+1 💚 mvninstall 7m 28s the patch passed
-0 ⚠️ checkstyle 2m 41s root: The patch generated 2 new + 10 unchanged - 0 fixed = 12 total (was 10)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+0 🆗 refguide 5m 23s patch has no errors when building the reference guide. See footer for rendered docs, which you should manually inspect.
+1 💚 hadoopcheck 12m 14s Patch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚 spotbugs 16m 42s the patch passed
_ Other Tests _
+1 💚 asflicense 0m 46s The patch does not generate ASF License warnings.
94m 41s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1334
Optional Tests dupname asflicense spotbugs hadoopcheck hbaseanti checkstyle refguide
uname Linux d0566709b869 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / afc1746
refguide https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-general-check/output/branch-site/book.html
spotbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-general-check/output/branch-spotbugs-root-warnings.html
spotbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-general-check/output/branch-spotbugs-hbase-server-warnings.html
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-general-check/output/diff-checkstyle-root.txt
refguide https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-general-check/output/patch-site/book.html
Max. process+thread count 84 (vs. ulimit of 10000)
modules C: hbase-hadoop-compat hbase-hadoop2-compat hbase-server . U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/console
versions git=2.17.1 maven=2018-06-17T18:33:14Z) spotbugs=3.1.12
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 30s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 34s Maven dependency ordering for branch
+1 💚 mvninstall 6m 28s master passed
+1 💚 compile 3m 56s master passed
-1 ❌ shadedjars 0m 10s branch has 7 errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 18s hbase-hadoop-compat in master failed.
-0 ⚠️ javadoc 0m 17s hbase-hadoop2-compat in master failed.
-0 ⚠️ javadoc 0m 20s root in master failed.
-0 ⚠️ javadoc 0m 38s hbase-server in master failed.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 22s Maven dependency ordering for patch
+1 💚 mvninstall 6m 8s the patch passed
+1 💚 compile 3m 55s the patch passed
+1 💚 javac 3m 55s the patch passed
-1 ❌ shadedjars 0m 9s patch has 7 errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 16s hbase-hadoop-compat in the patch failed.
-0 ⚠️ javadoc 0m 17s hbase-hadoop2-compat in the patch failed.
-0 ⚠️ javadoc 0m 40s hbase-server in the patch failed.
-0 ⚠️ javadoc 0m 19s root in the patch failed.
_ Other Tests _
-0 ⚠️ unit 75m 28s root in the patch failed.
103m 51s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR #1334
Optional Tests javac javadoc unit shadedjars compile
uname Linux fbc2355cea06 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / afc1746
Default Java 2020-01-14
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/branch-shadedjars.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-hadoop-compat.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-hadoop2-compat.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-root.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/patch-shadedjars.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-hadoop-compat.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-hadoop2-compat.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-root.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-root.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/testReport/
Max. process+thread count 6178 (vs. ulimit of 10000)
modules C: hbase-hadoop-compat hbase-hadoop2-compat hbase-server . U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1334/1/console
versions git=2.17.1 maven=2018-06-17T18:33:14Z)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@jojochuang
Copy link
Contributor Author

Believe the test failure is due to HBASE-23829.

@saintstack saintstack merged commit 84977ee into apache:master Mar 24, 2020
asfgit pushed a commit that referenced this pull request Mar 24, 2020
asfgit pushed a commit that referenced this pull request Mar 24, 2020
@jojochuang
Copy link
Contributor Author

Thanks Stack!

jojochuang added a commit to jojochuang/hbase that referenced this pull request Mar 31, 2020
)

Signed-off-by: stack <stack@apache.net>
(cherry picked from commit 4ec1909)

 Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
jojochuang added a commit to jojochuang/hbase that referenced this pull request Apr 3, 2020
Signed-off-by: stack <stack@apache.net>
(cherry picked from commit 4ec1909)

 Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
busbey pushed a commit that referenced this pull request Apr 8, 2020
branch-2.2 backport of #1334

Signed-off-by: stack <stack@apache.net>
(cherry picked from commit 4ec1909)

 Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java

Signed-off-by: Sean Busbey <busbey@apache.org>
asfgit pushed a commit that referenced this pull request Apr 15, 2020
branch-1 backport of #1334

Signed-off-by: stack <stack@apache.net>
Signed-off-by: Sean Busbey <busbey@apache.org>

Co-authored-by: Andrew Purtell <apurtell@apache.org>
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
Reidddddd pushed a commit to Reidddddd/hbase that referenced this pull request Apr 22, 2020
branch-1 backport of apache#1334

Signed-off-by: stack <stack@apache.net>
Signed-off-by: Sean Busbey <busbey@apache.org>

Co-authored-by: Andrew Purtell <apurtell@apache.org>
infraio pushed a commit to infraio/hbase that referenced this pull request Aug 17, 2020
symat pushed a commit to symat/hbase that referenced this pull request Feb 17, 2021
branch-2.2 backport of apache#1334

Signed-off-by: stack <stack@apache.net>
(cherry picked from commit 4ec1909)

 Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java

Signed-off-by: Sean Busbey <busbey@apache.org>
(cherry picked from commit 8a15e0b)

Change-Id: I259f77f1fbec1725873bfac9dab944267851648d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants