Skip to content

HBASE-25627: [Backport]HBase replication should have a metric to represent if the source is stuck getting initialized - #3009

Merged
bharathv merged 2 commits into
apache:branch-1from
sandeepvinayak:HBASE-25627-branch-1
Mar 23, 2021
Merged

HBASE-25627: [Backport]HBase replication should have a metric to represent if the source is stuck getting initialized#3009
bharathv merged 2 commits into
apache:branch-1from
sandeepvinayak:HBASE-25627-branch-1

Conversation

@sandeepvinayak

@sandeepvinayaksandeepvinayak commented Mar 3, 2021

Copy link
Copy Markdown
Contributor

Please refer to jira for the description.
https://issues.apache.org/jira/browse/HBASE-25627

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 49sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
+0 🆗mvndep2m 26sMaven dependency ordering for branch
+1 💚mvninstall8m 1sbranch-1 passed
+1 💚compile1m 13sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚compile1m 20sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚checkstyle2m 10sbranch-1 passed
+1 💚shadedjars3m 2sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 10sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 15sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+0 🆗spotbugs2m 45sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs4m 7sbranch-1 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
-1 ❌mvninstall1m 13sroot in the patch failed.
-1 ❌compile0m 35shbase-server in the patch failed with JDK Azul Systems, Inc.-1.8.0_262-b19.
-1 ❌javac0m 35shbase-server in the patch failed with JDK Azul Systems, Inc.-1.8.0_262-b19.
-1 ❌compile0m 42shbase-server in the patch failed with JDK Azul Systems, Inc.-1.7.0_272-b10.
-1 ❌javac0m 42shbase-server in the patch failed with JDK Azul Systems, Inc.-1.7.0_272-b10.
+1 💚checkstyle0m 13sThe patch passed checkstyle in hbase-hadoop-compat
+1 💚checkstyle0m 15shbase-hadoop2-compat: The patch generated 0 new + 1 unchanged - 8 fixed = 1 total (was 9)
+1 💚checkstyle1m 27shbase-server: The patch generated 0 new + 1 unchanged - 1 fixed = 1 total (was 2)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌shadedjars1m 54spatch has 14 errors when building our shaded downstream artifacts.
-1 ❌hadoopcheck1m 12sThe patch causes 14 errors with Hadoop v2.8.5.
-1 ❌hadoopcheck3m 7sThe patch causes 14 errors with Hadoop v2.9.2.
+1 💚javadoc0m 59sthe patch passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 13sthe patch passed with JDK Azul Systems, Inc.-1.7.0_272-b10
-1 ❌findbugs0m 46shbase-server in the patch failed.
_ Other Tests _
+1 💚unit0m 28shbase-hadoop-compat in the patch passed.
+1 💚unit0m 40shbase-hadoop2-compat in the patch passed.
-1 ❌unit0m 46shbase-server in the patch failed.
+1 💚asflicense0m 37sThe patch does not generate ASF License warnings.
51m 33s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/Dockerfile
GITHUB PR#3009
JIRA IssueHBASE-25627
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 4e33ab635cbe 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-home/workspace/Base-PreCommit-GitHub-PR_PR-3009/out/precommit/personality/provided.sh
git revisionbranch-1 / 4cfbf19
Default JavaAzul Systems, Inc.-1.7.0_272-b10
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:Azul Systems, Inc.-1.8.0_262-b19 /usr/lib/jvm/zulu-7-amd64:Azul Systems, Inc.-1.7.0_272-b10
mvninstallhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-mvninstall-root.txt
compilehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-compile-hbase-server-jdkAzulSystems,Inc.-1.8.0_262-b19.txt
javachttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-compile-hbase-server-jdkAzulSystems,Inc.-1.8.0_262-b19.txt
compilehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-compile-hbase-server-jdkAzulSystems,Inc.-1.7.0_272-b10.txt
javachttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-compile-hbase-server-jdkAzulSystems,Inc.-1.7.0_272-b10.txt
shadedjarshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-shadedjars.txt
hadoopcheckhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-javac-2.8.5.txt
hadoopcheckhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-javac-2.9.2.txt
findbugshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-findbugs-hbase-server.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/testReport/
Max. process+thread count181 (vs. ulimit of 10000)
modulesC: hbase-hadoop-compat hbase-hadoop2-compat hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/1/console
versionsgit=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@wchevreuilwchevreuil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this relevant/affecting branch-1 only? Shouldn't we target master branch as the primary branch for the changes, then backport it to all related lower branches?

}

@Override
public void setPeerZkConnectionFailures(boolean success) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since this is a numeric metric, we should comply with the other numeric metrics and provide an incrPeerZkConnectionFailures method, rather than a setter.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@wchevreuil This was intentional since we want to reset it to zero once we get the success connection.
Do you suggest having a separate method for a reset?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This logic in a global source doesn't give the intended result here because peerZkConnectionFailures is reset to 0 if any source succeeds. That doesn't seem right.

@apurtellapurtellMar 3, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, add a separate method for set, but set methods on counter metrics accept the integer value as the new value for the metric, not a weird boolean. Set and Increment is fine. Set(0) to reset.

while (this.isSourceActive() && this.peerClusterId == null) {
this.peerClusterId = replicationEndpoint.getPeerUUID();
if (this.isSourceActive() && this.peerClusterId == null) {
metrics.setPeerZkConnectionFailures(false);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One of the motivations described in the jira is that there's no evidence of this condition in the logs. Since log files are normally the first source of info operators normally look after, is it possible to add a WARN reporting the peerId info is missing, possibly due to ZK connectivity issues?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, I agree that WARN should be there as well but the metric helps to monitor and alert in this case. Since connection to peer's ZK blocks the whole replication, it should be good to monitor this as a metric.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Had a brief discussion offline with @sandeepvinayak on how to generalize this. I think the intent here is capture and flag any sources that are stuck during initialization and ZK connection failure is just a symptom. So capturing those ZK failure count may not add much value, instead we track number of uninitialized sources, (gauge) that'd be much more helpful.

So one way forward is to track number of such uninitialized sources at a global scope (that the monitoring tooling can flag if its > 0 for a time window) and then backport https://issues.apache.org/jira/browse/HBASE-22731 to branch-1. These two together should help us narrow down it to the right RS and root cause.

Thoughts?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agree with @wchevreuil , metrics and logs are consumed differently by operators and a reasonable request to add a log is not solved by emitting a metric

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

yeah, I have added a metric as well as a log.

}

@Override
public void setPeerZkConnectionFailures(boolean success) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This logic in a global source doesn't give the intended result here because peerZkConnectionFailures is reset to 0 if any source succeeds. That doesn't seem right.

while (this.isSourceActive() && this.peerClusterId == null) {
this.peerClusterId = replicationEndpoint.getPeerUUID();
if (this.isSourceActive() && this.peerClusterId == null) {
metrics.setPeerZkConnectionFailures(false);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Had a brief discussion offline with @sandeepvinayak on how to generalize this. I think the intent here is capture and flag any sources that are stuck during initialization and ZK connection failure is just a symptom. So capturing those ZK failure count may not add much value, instead we track number of uninitialized sources, (gauge) that'd be much more helpful.

So one way forward is to track number of such uninitialized sources at a global scope (that the monitoring tooling can flag if its > 0 for a time window) and then backport https://issues.apache.org/jira/browse/HBASE-22731 to branch-1. These two together should help us narrow down it to the right RS and root cause.

Thoughts?

public static final String SOURCE_FAILED_RECOVERY_QUEUES = "source.failedRecoverQueues";
/* Used to track the age of oldest wal in ms since its creation time */
String OLDEST_WAL_AGE = "source.oldestWalAge";
public static final String SOURCE_PEER_ZK_CONNECTION_FAILURE = "source.peerZkConnectionFailure";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we just call this peerConnectionFailure? ZK may or may not be the reason, if not now, then in the future. What we want to count is connection failures, let the naming reflect that. (We need to care about metric names because it becomes part of operational compat.)

void incrFailedRecoveryQueue();
void setOldestWalAge(long age);
long getOldestWalAge();
void setPeerZkConnectionFailures(boolean success);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is weird. It should be an increment function. See above incrFailedRecoveryQueue as example.

void setOldestWalAge(long age);
long getOldestWalAge();
void setPeerZkConnectionFailures(boolean success);
long getPeerZkConnectionFailures();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Getters are not needed by convention here, remove

}

@Override
public void setPeerZkConnectionFailures(boolean success) {

@apurtellapurtellMar 3, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, add a separate method for set, but set methods on counter metrics accept the integer value as the new value for the metric, not a weird boolean. Set and Increment is fine. Set(0) to reset.

while (this.isSourceActive() && this.peerClusterId == null) {
this.peerClusterId = replicationEndpoint.getPeerUUID();
if (this.isSourceActive() && this.peerClusterId == null) {
metrics.setPeerZkConnectionFailures(false);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agree with @wchevreuil , metrics and logs are consumed differently by operators and a reasonable request to add a log is not solved by emitting a metric

@apurtell

Copy link
Copy Markdown
Contributor

I also agree with @wchevreuil that starting with branch-1 for an issue that affects all branches is upside down. We should have a master patch and merge it before merging this. Sure, a separate PR may be needed for branch-1 because of code difference, that is fine, but patch application should proceed in the normal order, which is master -> branch-2 -> releasing branch-2s -> branch-1.

@bharathv

Copy link
Copy Markdown
Contributor

@apurtell I believe our reviews overlapped. I proposed an alternative metric to track. It helps to track the number of uninitialized sources (stuck during initialization) that we can flag via monitoring right away (along with additional logging from back port of HBASE-22731).

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec12m 29sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
+0 🆗mvndep2m 25sMaven dependency ordering for branch
+1 💚mvninstall8m 4sbranch-1 passed
+1 💚compile1m 8sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚compile1m 20sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚checkstyle2m 16sbranch-1 passed
+1 💚shadedjars3m 16sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 5sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 14sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+0 🆗spotbugs2m 54sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs4m 17sbranch-1 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for patch
+1 💚mvninstall2m 4sthe patch passed
+1 💚compile1m 8sthe patch passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javac1m 8sthe patch passed
+1 💚compile1m 20sthe patch passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚javac1m 20sthe patch passed
+1 💚checkstyle0m 13sThe patch passed checkstyle in hbase-hadoop-compat
+1 💚checkstyle0m 14shbase-hadoop2-compat: The patch generated 0 new + 1 unchanged - 8 fixed = 1 total (was 9)
+1 💚checkstyle1m 44shbase-server: The patch generated 0 new + 1 unchanged - 1 fixed = 1 total (was 2)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedjars3m 5spatch has no errors when building our shaded downstream artifacts.
+1 💚hadoopcheck4m 50sPatch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚javadoc0m 57sthe patch passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 15sthe patch passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚findbugs4m 40sthe patch passed
_ Other Tests _
+1 💚unit0m 27shbase-hadoop-compat in the patch passed.
+1 💚unit0m 37shbase-hadoop2-compat in the patch passed.
+1 💚unit118m 40shbase-server in the patch passed.
+1 💚asflicense0m 59sThe patch does not generate ASF License warnings.
184m 21s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/2/artifact/out/Dockerfile
GITHUB PR#3009
JIRA IssueHBASE-25627
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 988d48e1a065 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-home/workspace/Base-PreCommit-GitHub-PR_PR-3009/out/precommit/personality/provided.sh
git revisionbranch-1 / 4cfbf19
Default JavaAzul Systems, Inc.-1.7.0_272-b10
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:Azul Systems, Inc.-1.8.0_262-b19 /usr/lib/jvm/zulu-7-amd64:Azul Systems, Inc.-1.7.0_272-b10
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/2/testReport/
Max. process+thread count3694 (vs. ulimit of 10000)
modulesC: hbase-hadoop-compat hbase-hadoop2-compat hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/2/console
versionsgit=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec11m 49sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
+0 🆗mvndep2m 27sMaven dependency ordering for branch
+1 💚mvninstall8m 7sbranch-1 passed
+1 💚compile1m 8sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚compile1m 18sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚checkstyle2m 7sbranch-1 passed
+1 💚shadedjars3m 0sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 8sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 17sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+0 🆗spotbugs2m 43sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs4m 7sbranch-1 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for patch
+1 💚mvninstall1m 58sthe patch passed
+1 💚compile1m 11sthe patch passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javac1m 11sthe patch passed
+1 💚compile1m 20sthe patch passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚javac1m 20sthe patch passed
+1 💚checkstyle0m 14sThe patch passed checkstyle in hbase-hadoop-compat
+1 💚checkstyle0m 16shbase-hadoop2-compat: The patch generated 0 new + 1 unchanged - 8 fixed = 1 total (was 9)
+1 💚checkstyle1m 30shbase-server: The patch generated 0 new + 1 unchanged - 1 fixed = 1 total (was 2)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedjars2m 50spatch has no errors when building our shaded downstream artifacts.
+1 💚hadoopcheck4m 39sPatch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚javadoc1m 0sthe patch passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 16sthe patch passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚findbugs4m 23sthe patch passed
_ Other Tests _
+1 💚unit0m 28shbase-hadoop-compat in the patch passed.
+1 💚unit0m 40shbase-hadoop2-compat in the patch passed.
+1 💚unit120m 9shbase-server in the patch passed.
+1 💚asflicense1m 19sThe patch does not generate ASF License warnings.
184m 10s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/3/artifact/out/Dockerfile
GITHUB PR#3009
JIRA IssueHBASE-25627
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux efad72cacb2b 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-home/workspace/Base-PreCommit-GitHub-PR_PR-3009/out/precommit/personality/provided.sh
git revisionbranch-1 / 4cfbf19
Default JavaAzul Systems, Inc.-1.7.0_272-b10
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:Azul Systems, Inc.-1.8.0_262-b19 /usr/lib/jvm/zulu-7-amd64:Azul Systems, Inc.-1.7.0_272-b10
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/3/testReport/
Max. process+thread count4208 (vs. ulimit of 10000)
modulesC: hbase-hadoop-compat hbase-hadoop2-compat hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/3/console
versionsgit=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@sandeepvinayak

sandeepvinayak commented Mar 5, 2021

Copy link
Copy Markdown
ContributorAuthor

@bharathv@apurtell@wchevreuil I believe @bharathv suggestion to have a metric at source level instead makes sense to me. That metric will eventually catch the situation of peer connection failure as well.
I have raised a PR for master branch here. Can you please review it?

Once that is committed, I can change this one on branch-1.

@bharathv

Copy link
Copy Markdown
Contributor

@sandeepvinayak Mind refreshing this PR with the latest patch? Thanks.

@sandeepvinayaksandeepvinayak changed the title HBASE-25627: HBase replication should have a metric to represent if it cannot talk to peer's zkHBASE-25627: HBase replication should have a metric to represent if the source is stuck getting initializedMar 20, 2021
@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 12sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
+0 🆗mvndep2m 27sMaven dependency ordering for branch
+1 💚mvninstall8m 0sbranch-1 passed
+1 💚compile1m 9sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚compile1m 21sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚checkstyle2m 6sbranch-1 passed
+1 💚shadedjars3m 2sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 9sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 16sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+0 🆗spotbugs2m 41sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs4m 5sbranch-1 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 18sMaven dependency ordering for patch
+1 💚mvninstall1m 55sthe patch passed
+1 💚compile1m 11sthe patch passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javac1m 11sthe patch passed
+1 💚compile1m 18sthe patch passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚javac1m 18sthe patch passed
-1 ❌checkstyle1m 31shbase-server: The patch generated 1 new + 15 unchanged - 2 fixed = 16 total (was 17)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedjars2m 47spatch has no errors when building our shaded downstream artifacts.
+1 💚hadoopcheck4m 34sPatch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚javadoc1m 0sthe patch passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 16sthe patch passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚findbugs4m 24sthe patch passed
_ Other Tests _
+1 💚unit0m 29shbase-hadoop-compat in the patch passed.
+1 💚unit0m 40shbase-hadoop2-compat in the patch passed.
-1 ❌unit100m 13shbase-server in the patch failed.
+1 💚asflicense1m 14sThe patch does not generate ASF License warnings.
153m 29s
ReasonTests
Failed junit testshadoop.hbase.TestCachedClusterId
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/4/artifact/out/Dockerfile
GITHUB PR#3009
JIRA IssueHBASE-25627
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux b439bb2a9230 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-home/workspace/Base-PreCommit-GitHub-PR_PR-3009/out/precommit/personality/provided.sh
git revisionbranch-1 / bea87b3
Default JavaAzul Systems, Inc.-1.7.0_272-b10
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:Azul Systems, Inc.-1.8.0_262-b19 /usr/lib/jvm/zulu-7-amd64:Azul Systems, Inc.-1.7.0_272-b10
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/4/artifact/out/diff-checkstyle-hbase-server.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/4/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/4/testReport/
Max. process+thread count3533 (vs. ulimit of 10000)
modulesC: hbase-hadoop-compat hbase-hadoop2-compat hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/4/console
versionsgit=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 7sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
+0 🆗mvndep2m 29sMaven dependency ordering for branch
+1 💚mvninstall8m 7sbranch-1 passed
+1 💚compile1m 11sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚compile1m 22sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚checkstyle2m 5sbranch-1 passed
+1 💚shadedjars2m 59sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 9sbranch-1 passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 15sbranch-1 passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+0 🆗spotbugs2m 46sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs4m 8sbranch-1 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for patch
+1 💚mvninstall1m 53sthe patch passed
+1 💚compile1m 11sthe patch passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javac1m 11sthe patch passed
+1 💚compile1m 18sthe patch passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚javac1m 18sthe patch passed
+1 💚checkstyle0m 14sThe patch passed checkstyle in hbase-hadoop-compat
+1 💚checkstyle0m 15sThe patch passed checkstyle in hbase-hadoop2-compat
+1 💚checkstyle1m 28shbase-server: The patch generated 0 new + 15 unchanged - 2 fixed = 15 total (was 17)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedjars2m 48spatch has no errors when building our shaded downstream artifacts.
+1 💚hadoopcheck4m 38sPatch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚javadoc1m 1sthe patch passed with JDK Azul Systems, Inc.-1.8.0_262-b19
+1 💚javadoc1m 17sthe patch passed with JDK Azul Systems, Inc.-1.7.0_272-b10
+1 💚findbugs4m 24sthe patch passed
_ Other Tests _
+1 💚unit0m 28shbase-hadoop-compat in the patch passed.
+1 💚unit0m 40shbase-hadoop2-compat in the patch passed.
+1 💚unit104m 0shbase-server in the patch passed.
+1 💚asflicense1m 19sThe patch does not generate ASF License warnings.
157m 27s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/5/artifact/out/Dockerfile
GITHUB PR#3009
JIRA IssueHBASE-25627
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 386c8a914803 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-home/workspace/Base-PreCommit-GitHub-PR_PR-3009/out/precommit/personality/provided.sh
git revisionbranch-1 / f807800
Default JavaAzul Systems, Inc.-1.7.0_272-b10
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:Azul Systems, Inc.-1.8.0_262-b19 /usr/lib/jvm/zulu-7-amd64:Azul Systems, Inc.-1.7.0_272-b10
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/5/testReport/
Max. process+thread count3703 (vs. ulimit of 10000)
modulesC: hbase-hadoop-compat hbase-hadoop2-compat hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3009/5/console
versionsgit=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@sandeepvinayaksandeepvinayak changed the title HBASE-25627: HBase replication should have a metric to represent if the source is stuck getting initializedHBASE-25627: [Backport]HBase replication should have a metric to represent if the source is stuck getting initializedMar 21, 2021
@sandeepvinayak

Copy link
Copy Markdown
ContributorAuthor

fyi @bharathv

@bharathvbharathv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll let other reviewers take a look or merge by EOD.

@bharathv
bharathv merged commit 97c152e into apache:branch-1Mar 23, 2021
Sign up for freeto 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.

5 participants

@sandeepvinayak@Apache-HBase@apurtell@bharathv@wchevreuil