Skip to content

HBASE-28666: In WALEntryStream, always use current WALTailingReader if one exists - #5994

Merged
Apache9 merged 1 commit into
apache:masterfrom
HubSpot:dont-recreate-wal-reader
Jun 16, 2024
Merged

HBASE-28666: In WALEntryStream, always use current WALTailingReader if one exists#5994
Apache9 merged 1 commit into
apache:masterfrom
HubSpot:dont-recreate-wal-reader

Conversation

@charlesconnell

Copy link
Copy Markdown
Contributor

There was one code path within a if (reader != null) {} block that did not return and end the method early, thus allowing a subsequent line to re-create the reader. This was not the intention of the author. This PR closes this loophole.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 26sDocker 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.
_ master Compile Tests _
+1 💚mvninstall3m 4smaster passed
+1 💚compile2m 39smaster passed
+1 💚checkstyle0m 34smaster passed
+1 💚spotless0m 41sbranch has no errors when running spotless:check.
+1 💚spotbugs1m 25smaster passed
_ Patch Compile Tests _
+1 💚mvninstall2m 37sthe patch passed
+1 💚compile2m 36sthe patch passed
+1 💚javac2m 36sthe patch passed
+1 💚checkstyle0m 34sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck4m 59sPatch does not cause any errors with Hadoop 3.3.6.
+1 💚spotless0m 39spatch has no errors when running spotless:check.
+1 💚spotbugs1m 33sthe patch passed
_ Other Tests _
+1 💚asflicense0m 11sThe patch does not generate ASF License warnings.
28m 13s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#5994
JIRA IssueHBASE-28666
Optional Testsdupname asflicense javac spotbugs hadoopcheck hbaseanti spotless checkstyle compile
unameLinux b687261aed8a 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 0e8cfdb
Default JavaEclipse Adoptium-11.0.17+8
Max. process+thread count83 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/console
versionsgit=2.34.1 maven=3.8.6 spotbugs=4.7.3
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 🆗reexec0m 15sDocker mode activated.
-0 ⚠️yetus0m 2sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall3m 1smaster passed
+1 💚compile0m 54smaster passed
+1 💚shadedjars5m 19sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 30smaster passed
_ Patch Compile Tests _
+1 💚mvninstall2m 46sthe patch passed
+1 💚compile0m 54sthe patch passed
+1 💚javac0m 54sthe patch passed
+1 💚shadedjars5m 20spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 28sthe patch passed
_ Other Tests _
+1 💚unit214m 8shbase-server in the patch passed.
238m 18s
SubsystemReport/Notes
DockerClientAPI=1.45 ServerAPI=1.45 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR#5994
JIRA IssueHBASE-28666
Optional Testsjavac javadoc unit shadedjars compile
unameLinux e976909d8b50 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 0e8cfdb
Default JavaEclipse Adoptium-17.0.10+7
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/testReport/
Max. process+thread count4875 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/console
versionsgit=2.34.1 maven=3.8.6
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 🆗reexec0m 40sDocker mode activated.
-0 ⚠️yetus0m 2sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall3m 4smaster passed
+1 💚compile0m 51smaster passed
+1 💚shadedjars5m 18sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 28smaster passed
_ Patch Compile Tests _
+1 💚mvninstall2m 45sthe patch passed
+1 💚compile0m 50sthe patch passed
+1 💚javac0m 50sthe patch passed
+1 💚shadedjars5m 19spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 26sthe patch passed
_ Other Tests _
+1 💚unit229m 29shbase-server in the patch passed.
253m 39s
SubsystemReport/Notes
DockerClientAPI=1.45 ServerAPI=1.45 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#5994
JIRA IssueHBASE-28666
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 002909017a61 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 0e8cfdb
Default JavaEclipse Adoptium-11.0.17+8
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/testReport/
Max. process+thread count5143 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/console
versionsgit=2.34.1 maven=3.8.6
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 🆗reexec0m 45sDocker mode activated.
-0 ⚠️yetus0m 2sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall4m 0smaster passed
+1 💚compile1m 13smaster passed
+1 💚shadedjars8m 0sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 40smaster passed
_ Patch Compile Tests _
+1 💚mvninstall3m 36sthe patch passed
+1 💚compile1m 9sthe patch passed
+1 💚javac1m 9sthe patch passed
+1 💚shadedjars7m 54spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 33sthe patch passed
_ Other Tests _
+1 💚unit280m 44shbase-server in the patch passed.
313m 26s
SubsystemReport/Notes
DockerClientAPI=1.45 ServerAPI=1.45 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#5994
JIRA IssueHBASE-28666
Optional Testsjavac javadoc unit shadedjars compile
unameLinux ec5269ed7699 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 0e8cfdb
Default JavaTemurin-1.8.0_352-b08
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/testReport/
Max. process+thread count6054 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5994/1/console
versionsgit=2.34.1 maven=3.8.6
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache9
Apache9 merged commit bd8ad45 into apache:masterJun 16, 2024
Apache9 pushed a commit that referenced this pull request Jun 16, 2024
…ets (#5994)
In WALEntryStream, always use current WALTailingReader if one exists
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd8ad45)
Apache9 pushed a commit that referenced this pull request Jun 16, 2024
…ets (#5994)
In WALEntryStream, always use current WALTailingReader if one exists
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd8ad45)
Apache9 pushed a commit that referenced this pull request Jun 16, 2024
…ets (#5994)
In WALEntryStream, always use current WALTailingReader if one exists
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd8ad45)
Apache9 added a commit that referenced this pull request Jun 16, 2024
Apache9 pushed a commit that referenced this pull request Jun 16, 2024
…ts (#5994)
In WALEntryStream, always use current WALTailingReader if one exists
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Apache9 added a commit that referenced this pull request Jun 16, 2024
Apache9 pushed a commit that referenced this pull request Jun 16, 2024
…ts (#5994)
In WALEntryStream, always use current WALTailingReader if one exists
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd8ad45)
Apache9 added a commit that referenced this pull request Jun 16, 2024
Apache9 pushed a commit that referenced this pull request Jun 16, 2024
…ts (#5994)
In WALEntryStream, always use current WALTailingReader if one exists
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd8ad45)
Apache9 added a commit that referenced this pull request Jun 16, 2024
Apache9 pushed a commit that referenced this pull request Jun 16, 2024
…ts (#5994)
In WALEntryStream, always use current WALTailingReader if one exists
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd8ad45)
@charlesconnell
charlesconnell deleted the dont-recreate-wal-reader branch June 17, 2024 17:35
rmdmattingly pushed a commit to HubSpot/hbase that referenced this pull request Jul 12, 2024
…ts (apache#5994)
In WALEntryStream, always use current WALTailingReader if one exists
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd8ad45)
rmdmattingly added a commit to HubSpot/hbase that referenced this pull request Jul 12, 2024
…ds to leaked sockets (apache#5994) (#106)
In WALEntryStream, always use current WALTailingReader if one exists
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd8ad45)
Co-authored-by: Charles Connell <cconnell@hubspot.com>
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.

3 participants

@charlesconnell@Apache-HBase@Apache9