Skip to content

HBASE-27034 NegativeArraySizeException was encountered during compaction - #4430

Closed
xianjingfeng wants to merge 1 commit into
apache:masterfrom
xianjingfeng:HBASE-27034
Closed

HBASE-27034 NegativeArraySizeException was encountered during compaction#4430
xianjingfeng wants to merge 1 commit into
apache:masterfrom
xianjingfeng:HBASE-27034

Conversation

@xianjingfeng

Copy link
Copy Markdown
Member

No description provided.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 38sDocker 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 56smaster passed
+1 💚compile2m 10smaster passed
+1 💚checkstyle0m 31smaster passed
+1 💚spotless0m 41sbranch has no errors when running spotless:check.
+1 💚spotbugs1m 14smaster passed
_ Patch Compile Tests _
+1 💚mvninstall2m 3sthe patch passed
+1 💚compile2m 9sthe patch passed
+1 💚javac2m 9sthe patch passed
+1 💚checkstyle0m 27sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌hadoopcheck8m 20sThe patch causes 10 errors with Hadoop v3.3.1.
+1 💚spotless0m 37spatch has no errors when running spotless:check.
+1 💚spotbugs1m 19sthe patch passed
_ Other Tests _
+1 💚asflicense0m 15sThe patch does not generate ASF License warnings.
25m 42s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4430/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#4430
Optional Testsdupname asflicense javac spotbugs hadoopcheck hbaseanti spotless checkstyle compile
unameLinux 8a4cfb2d7c6a 5.4.0-1071-aws #76~18.04.1-Ubuntu SMP Mon Mar 28 17:49:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 369adcd
Default JavaAdoptOpenJDK-1.8.0_282-b08
hadoopcheckhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4430/1/artifact/yetus-general-check/output/patch-javac-3.3.1.txt
Max. process+thread count65 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4430/1/console
versionsgit=2.17.1 maven=3.6.3 spotbugs=4.2.2
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 37sDocker 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 15smaster passed
+1 💚compile0m 41smaster passed
+1 💚shadedjars3m 51sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 30smaster passed
_ Patch Compile Tests _
+1 💚mvninstall2m 24sthe patch passed
+1 💚compile0m 41sthe patch passed
+1 💚javac0m 41sthe patch passed
+1 💚shadedjars3m 44spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 23sthe patch passed
_ Other Tests _
+1 💚unit175m 47shbase-server in the patch passed.
194m 32s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4430/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#4430
Optional Testsjavac javadoc unit shadedjars compile
unameLinux bf41c565f8a0 5.4.0-1071-aws #76~18.04.1-Ubuntu SMP Mon Mar 28 17:49:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 369adcd
Default JavaAdoptOpenJDK-11.0.10+9
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4430/1/testReport/
Max. process+thread count2966 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4430/1/console
versionsgit=2.17.1 maven=3.6.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 51sDocker 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 28smaster passed
+1 💚compile0m 41smaster passed
+1 💚shadedjars4m 24sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 27smaster passed
_ Patch Compile Tests _
+1 💚mvninstall2m 31sthe patch passed
+1 💚compile0m 41sthe patch passed
+1 💚javac0m 41sthe patch passed
+1 💚shadedjars4m 20spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 24sthe patch passed
_ Other Tests _
+1 💚unit191m 12shbase-server in the patch passed.
211m 38s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4430/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#4430
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 4d77107fd846 5.4.0-1068-aws #72~18.04.1-Ubuntu SMP Thu Mar 3 08:49:49 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 369adcd
Default JavaAdoptOpenJDK-1.8.0_282-b08
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4430/1/testReport/
Max. process+thread count2946 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4430/1/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@binlijin

Copy link
Copy Markdown
Contributor

Can you describe when this can cause the problem?

@xianjingfeng

xianjingfeng commented May 16, 2022

Copy link
Copy Markdown
MemberAuthor

Can you describe when this can cause the problem?
I don't know, I add some code to print lastCellOfPreviousBlock and i found it's value was modified, but i don't know where it was modified, We have a table for storing logs and this problem happens many times every day but other table not.
Other people seem to have encountered this problem. https://developer.aliyun.com/ask/387299

@Apache9

Copy link
Copy Markdown
Contributor

The change here will impact performance, so we need more detailed analysis on what is the root cause, and then decide how to better fix it.

@xianjingfeng

Copy link
Copy Markdown
MemberAuthor

The change here will impact performance, so we need more detailed analysis on what is the root cause, and then decide how to better fix it.
HBASE-16372 has explain why references to previous cell in read path will lead to incorrect results. So method beforeShipped of writer was called when bytesWrittenProgressForShippedCall > shippedCallSizeLimit , But this trigger condition looks incorrect

@Apache9

Copy link
Copy Markdown
Contributor

The change here will impact performance, so we need more detailed analysis on what is the root cause, and then decide how to better fix it.
HBASE-16372 has explain why references to previous cell in read path will lead to incorrect results. So method beforeShipped of writer was called when bytesWrittenProgressForShippedCall > shippedCallSizeLimit , But this trigger condition looks incorrect

Mind explaining why it is incorrect?

@xianjingfeng

xianjingfeng commented Jun 6, 2022

Copy link
Copy Markdown
MemberAuthor

Mind explaining why it is incorrect?

For example, if the number of files to compact is 10 and blocksize is 64k, beforeShipped was called once when every 640k was writeed. How does it make sure the the block that containing lastCellOfPreviousBlock will not be evicted in the meantime? I can't understand. More details in org.apache.hadoop.hbase.regionserver.compactions.Compactor#performCompaction,

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

@xianjingfeng@Apache-HBase@binlijin@Apache9