Skip to content

HBASE-22681 The 'assert highestUnsyncedTxid < entry.getTxid();' in Ab… - #376

Merged
Apache9 merged 1 commit into
apache:masterfrom
Apache9:HBASE-22681
Jul 13, 2019
Merged

HBASE-22681 The 'assert highestUnsyncedTxid < entry.getTxid();' in Ab…#376
Apache9 merged 1 commit into
apache:masterfrom
Apache9:HBASE-22681

Conversation

@Apache9

Copy link
Copy Markdown
Contributor

…stractFWAL.append may fail when using AsyncFSWAL

…stractFWAL.append may fail when using AsyncFSWAL
@Apache9

Copy link
Copy Markdown
ContributorAuthor

Please see the comments in

https://issues.apache.org/jira/browse/HBASE-22681

The newly introduced UT can not pass due to a race in LogRoller, so here we just fix the problem in AsyncFSWAL, without adding the new test, will file a new issue to add the UT and also fix the race in LogRoller.

@xcangCRM

Copy link
Copy Markdown
Contributor

I see from the JIRA you mentioned you want to use Set instead of the Dequeue. Is this not the case anymore?

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec117Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
-0test4tests0The 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 _
+1mvninstall355master passed
+1compile66master passed
+1checkstyle92master passed
+1shadedjars341branch has no errors when building our shaded downstream artifacts.
+1findbugs251master passed
+1javadoc48master passed
_ Patch Compile Tests _
+1mvninstall333the patch passed
+1compile68the patch passed
+1javac68the patch passed
+1checkstyle90the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars351patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck1089Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs266the patch passed
+1javadoc39the patch passed
_ Other Tests _
+1unit12983hbase-server in the patch passed.
+1asflicense31The patch does not generate ASF License warnings.
16944
SubsystemReport/Notes
DockerClient=18.09.7 Server=18.09.7 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-376/1/artifact/out/Dockerfile
GITHUB PR#376
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 44802e305c1e 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 438bf32
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-376/1/testReport/
Max. process+thread count4798 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-376/1/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache9

Copy link
Copy Markdown
ContributorAuthor

I see from the JIRA you mentioned you want to use Set instead of the Dequeue. Is this not the case anymore?

After considering I do not think we need to use a Set, just check the txid is enough. Using a TreeSet will introduce unnecessary compare operations.

@openinxopeninx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So here we ensure the entry we put into the unackedAppends is always increasing.. LGTM.

@Apache9
Apache9 merged commit 032c18f into apache:masterJul 13, 2019
asfgit pushed a commit that referenced this pull request Jul 13, 2019
…stractFWAL.append may fail when using AsyncFSWAL (#376)
Signed-off-by: Zheng Hu <openinx@gmail.com>
asfgit pushed a commit that referenced this pull request Jul 13, 2019
…stractFWAL.append may fail when using AsyncFSWAL (#376)
Signed-off-by: Zheng Hu <openinx@gmail.com>
asfgit pushed a commit that referenced this pull request Jul 13, 2019
…stractFWAL.append may fail when using AsyncFSWAL (#376)
Signed-off-by: Zheng Hu <openinx@gmail.com>
asfgit pushed a commit that referenced this pull request Jul 13, 2019
…stractFWAL.append may fail when using AsyncFSWAL (#376)
Signed-off-by: Zheng Hu <openinx@gmail.com>
infraio pushed a commit to infraio/hbase that referenced this pull request Aug 17, 2020
…stractFWAL.append may fail when using AsyncFSWAL (apache#376)
Signed-off-by: Zheng Hu <openinx@gmail.com>
symat pushed a commit to symat/hbase that referenced this pull request Feb 17, 2021
…stractFWAL.append may fail when using AsyncFSWAL (apache#376)
Signed-off-by: Zheng Hu <openinx@gmail.com>
(cherry picked from commit b850622)
Change-Id: Icce057f9b0c86caf6ca07d9f0c2c91f599693019
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.

4 participants

@Apache9@xcangCRM@Apache-HBase@openinx