Skip to content

Conversation

@Yiran-wu
Copy link
Contributor

I think we need some metrics to measure the amount of traffic being read and written to each region, which can help us more clearly analyze how much network resources are consumed by each region.

putBytes/getBytes/scanBytes/deleteBytes/incrementBytes/appendBytes/bulkLoadBytes

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 9s 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.
-0 ⚠️ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ master Compile Tests _
+0 🆗 mvndep 0m 34s Maven dependency ordering for branch
+1 💚 mvninstall 5m 46s master passed
+1 💚 compile 1m 32s master passed
+1 💚 checkstyle 1m 41s master passed
+1 💚 shadedjars 5m 1s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 1m 6s master passed
+0 🆗 spotbugs 5m 8s Used deprecated FindBugs config; considering switching to SpotBugs.
+1 💚 findbugs 6m 2s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 14s Maven dependency ordering for patch
+1 💚 mvninstall 5m 29s the patch passed
+1 💚 compile 1m 37s the patch passed
+1 💚 javac 1m 37s the patch passed
-1 ❌ checkstyle 1m 20s hbase-server: The patch generated 1 new + 269 unchanged - 2 fixed = 270 total (was 271)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 5m 53s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 19m 6s Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 💚 javadoc 1m 6s the patch passed
-1 ❌ findbugs 5m 10s hbase-server generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
_ Other Tests _
+1 💚 unit 0m 33s hbase-hadoop-compat in the patch passed.
+1 💚 unit 0m 39s hbase-hadoop2-compat in the patch passed.
+1 💚 unit 156m 36s hbase-server in the patch passed.
+1 💚 asflicense 1m 14s The patch does not generate ASF License warnings.
230m 48s
Reason Tests
FindBugs module:hbase-server
Nullcheck of storeFileInfo at line 5669 of value previously dereferenced in org.apache.hadoop.hbase.regionserver.HRegion.replayWALBulkLoadEventMarker(WALProtos$BulkLoadDescriptor) At HRegion.java:5669 of value previously dereferenced in org.apache.hadoop.hbase.regionserver.HRegion.replayWALBulkLoadEventMarker(WALProtos$BulkLoadDescriptor) At HRegion.java:[line 5669]
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/1/artifact/out/Dockerfile
GITHUB PR #1069
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 187d8b9a8373 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/Base-PreCommit-GitHub-PR_PR-1069/out/precommit/personality/provided.sh
git revision master / 75b8501
Default Java 1.8.0_181
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/1/artifact/out/diff-checkstyle-hbase-server.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/1/artifact/out/new-findbugs-hbase-server.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/1/testReport/
Max. process+thread count 5469 (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-1069/1/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
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 3m 41s 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.
-0 ⚠️ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ master Compile Tests _
+0 🆗 mvndep 0m 34s Maven dependency ordering for branch
+1 💚 mvninstall 5m 52s master passed
+1 💚 compile 1m 29s master passed
+1 💚 checkstyle 1m 41s master passed
+1 💚 shadedjars 5m 3s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 1m 6s master passed
+0 🆗 spotbugs 4m 59s Used deprecated FindBugs config; considering switching to SpotBugs.
+1 💚 findbugs 5m 51s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 14s Maven dependency ordering for patch
+1 💚 mvninstall 5m 28s the patch passed
+1 💚 compile 1m 33s the patch passed
+1 💚 javac 1m 33s the patch passed
+1 💚 checkstyle 0m 10s The patch passed checkstyle in hbase-hadoop-compat
+1 💚 checkstyle 0m 12s The patch passed checkstyle in hbase-hadoop2-compat
+1 💚 checkstyle 1m 17s hbase-server: The patch generated 0 new + 269 unchanged - 2 fixed = 269 total (was 271)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 5m 3s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 17m 13s Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 💚 javadoc 1m 4s the patch passed
-1 ❌ findbugs 5m 11s hbase-server generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
_ Other Tests _
+1 💚 unit 0m 32s hbase-hadoop-compat in the patch passed.
+1 💚 unit 0m 39s hbase-hadoop2-compat in the patch passed.
+1 💚 unit 159m 27s hbase-server in the patch passed.
+1 💚 asflicense 1m 13s The patch does not generate ASF License warnings.
232m 46s
Reason Tests
FindBugs module:hbase-server
Nullcheck of storeFileInfo at line 5669 of value previously dereferenced in org.apache.hadoop.hbase.regionserver.HRegion.replayWALBulkLoadEventMarker(WALProtos$BulkLoadDescriptor) At HRegion.java:5669 of value previously dereferenced in org.apache.hadoop.hbase.regionserver.HRegion.replayWALBulkLoadEventMarker(WALProtos$BulkLoadDescriptor) At HRegion.java:[line 5669]
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/2/artifact/out/Dockerfile
GITHUB PR #1069
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux ef5413e83807 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/Base-PreCommit-GitHub-PR_PR-1069/out/precommit/personality/provided.sh
git revision master / 50e2644
Default Java 1.8.0_181
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/2/artifact/out/new-findbugs-hbase-server.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/2/testReport/
Max. process+thread count 5354 (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-1069/2/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Yiran-wu
Copy link
Contributor Author

This error can be ignored. I didn't change it. What about the others?

Nullcheck of storeFileInfo at line 5669

Copy link
Contributor

@saintstack saintstack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this. For sure we are not double counting? These are not exposed already? If not, nice addition. They just show in JMX? Exposing them in UI would be a follow-on?

Thanks for doing this.

if (mutation instanceof Put) {
HRegion.updateCellTimestamps(familyCellMaps[index].values(), byteTS);
miniBatchOp.incrementNumOfPuts();
miniBatchOp.incrementBytesForPuts(mutation.heapSize());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we traverse any synchronize blocks here or update any volatiles? In other words, wondering what the cost of these updates are.

We are also bulking up metrics w/ these added numbers... the metrics we send the master on each report (every second or so).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We spend a lot of cpu counting currently. This adds to the counting load.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saintstack Thanks for review
At present, we only have aggregate information and cannot know how much network resources are used in each region.

public void updatePut(final long size) {
source.updatePut();
source.updatePutBytes(size);
source.updateReceivedBytes(size);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between put and received? They are not the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Received contains all write operations such as increment/append/put/bulkload, putBytes consists of its own

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 0s Docker mode activated.
-1 ❌ patch 0m 3s #1069 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.
Subsystem Report/Notes
GITHUB PR #1069
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/1/console
versions git=2.17.1
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

2 similar comments
@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 0s Docker mode activated.
-1 ❌ patch 0m 3s #1069 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.
Subsystem Report/Notes
GITHUB PR #1069
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/1/console
versions git=2.17.1
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 0s Docker mode activated.
-1 ❌ patch 0m 3s #1069 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.
Subsystem Report/Notes
GITHUB PR #1069
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1069/1/console
versions git=2.17.1
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants