hbase icon indicating copy to clipboard operation
hbase copied to clipboard

HBASE-28447 New site configuration option "hfile.block.size"

Open apurtell opened this issue 1 year ago • 9 comments

Introduce a new configuration setting - "hfile.block.size" that, if set, will define the default blocksize to use when writing HFiles if a column family schema does not define its own non-default block size. This is a bit complicated but required for compatability. The rules are:

  • If the schema specifies a non default block size, use it.
  • Otherwise, if the configuration specifies a non default block size, use it.
  • Otherwise, use the default block size.

The default is defined by HConstants.DEFAULT_BLOCKSIZE.

Given how compound configurations work the precedence order for a non default block size is: BLOCKSIZE in the column family schema > "hfile.block.size" in CF or table level schema > "hfile.block.size" in site configuration > HConstants.DEFAULT_BLOCKSIZE

apurtell avatar Apr 10 '24 18:04 apurtell

:broken_heart: -1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 30s Docker mode activated.
_ Prechecks _
+1 :green_heart: dupname 0m 0s No case conflicting files found.
+1 :green_heart: hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 :green_heart: @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+0 :ok: mvndep 0m 14s Maven dependency ordering for branch
+1 :green_heart: mvninstall 3m 17s master passed
+1 :green_heart: compile 3m 13s master passed
+1 :green_heart: checkstyle 0m 51s master passed
+0 :ok: refguide 2m 44s branch has no errors when building the reference guide. See footer for rendered docs, which you should manually inspect.
+1 :green_heart: spotless 0m 48s branch has no errors when running spotless:check.
+1 :green_heart: spotbugs 2m 12s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 12s Maven dependency ordering for patch
+1 :green_heart: mvninstall 3m 2s the patch passed
+1 :green_heart: compile 3m 11s the patch passed
+1 :green_heart: javac 3m 11s the patch passed
+1 :green_heart: checkstyle 0m 50s the patch passed
+1 :green_heart: whitespace 0m 0s The patch has no whitespace issues.
+1 :green_heart: xml 0m 1s The patch has no ill-formed XML file.
+0 :ok: refguide 2m 14s patch has no errors when building the reference guide. See footer for rendered docs, which you should manually inspect.
+1 :green_heart: hadoopcheck 5m 42s Patch does not cause any errors with Hadoop 3.3.6.
-1 :x: spotless 0m 44s patch has 1 errors when running spotless:check, run spotless:apply to fix.
+1 :green_heart: spotbugs 2m 21s the patch passed
_ Other Tests _
+1 :green_heart: asflicense 0m 18s The patch does not generate ASF License warnings.
39m 42s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5820
Optional Tests dupname asflicense javac refguide spotless xml spotbugs hadoopcheck hbaseanti checkstyle compile
uname Linux f054e1e46748 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 5d694dae5e
Default Java Eclipse Adoptium-11.0.17+8
refguide https://nightlies.apache.org/hbase/HBase-PreCommit-GitHub-PR/PR-5820/1/yetus-general-check/output/branch-site/book.html
refguide https://nightlies.apache.org/hbase/HBase-PreCommit-GitHub-PR/PR-5820/1/yetus-general-check/output/patch-site/book.html
spotless https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/artifact/yetus-general-check/output/patch-spotless.txt
Max. process+thread count 81 (vs. ulimit of 30000)
modules C: hbase-common hbase-server U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/console
versions git=2.34.1 maven=3.8.6 spotbugs=4.7.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Apr 10 '24 19:04 Apache-HBase

The spotless check fails but when I run 'mvn spotless:apply' on my local branch there are no changes.

apurtell avatar Apr 10 '24 21:04 apurtell

Ah, there was something wrong with CI during the spotless check

[ERROR] An internal error occurred during: "Periodic workspace save.".
java.lang.IllegalStateException: Job manager has been shut down.

apurtell avatar Apr 10 '24 21:04 apurtell

Ya that happens sometimes, not sure why

bbeaudreault avatar Apr 10 '24 22:04 bbeaudreault

:confetti_ball: +1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 29s Docker mode activated.
-0 :warning: yetus 0m 4s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 :ok: mvndep 0m 14s Maven dependency ordering for branch
+1 :green_heart: mvninstall 3m 16s master passed
+1 :green_heart: compile 1m 13s master passed
+1 :green_heart: shadedjars 5m 40s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 41s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 10s Maven dependency ordering for patch
+1 :green_heart: mvninstall 2m 56s the patch passed
+1 :green_heart: compile 1m 11s the patch passed
+1 :green_heart: javac 1m 11s the patch passed
+1 :green_heart: shadedjars 5m 37s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 39s the patch passed
_ Other Tests _
+1 :green_heart: unit 2m 9s hbase-common in the patch passed.
+1 :green_heart: unit 209m 3s hbase-server in the patch passed.
237m 50s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5820
Optional Tests javac javadoc unit shadedjars compile
uname Linux 0b4ed2a636ac 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 5d694dae5e
Default Java Eclipse Adoptium-17.0.10+7
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/testReport/
Max. process+thread count 5484 (vs. ulimit of 30000)
modules C: hbase-common hbase-server U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Apr 10 '24 22:04 Apache-HBase

:confetti_ball: +1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 28s Docker mode activated.
-0 :warning: yetus 0m 4s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 :ok: mvndep 0m 12s Maven dependency ordering for branch
+1 :green_heart: mvninstall 3m 1s master passed
+1 :green_heart: compile 1m 2s master passed
+1 :green_heart: shadedjars 5m 40s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 38s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 12s Maven dependency ordering for patch
+1 :green_heart: mvninstall 2m 45s the patch passed
+1 :green_heart: compile 1m 1s the patch passed
+1 :green_heart: javac 1m 1s the patch passed
+1 :green_heart: shadedjars 5m 32s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 36s the patch passed
_ Other Tests _
+1 :green_heart: unit 2m 16s hbase-common in the patch passed.
+1 :green_heart: unit 217m 36s hbase-server in the patch passed.
246m 16s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5820
Optional Tests javac javadoc unit shadedjars compile
uname Linux 0f5a6ff8f380 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 5d694dae5e
Default Java Eclipse Adoptium-11.0.17+8
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/testReport/
Max. process+thread count 5060 (vs. ulimit of 30000)
modules C: hbase-common hbase-server U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Apr 10 '24 22:04 Apache-HBase

:confetti_ball: +1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 37s Docker mode activated.
-0 :warning: yetus 0m 2s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 :ok: mvndep 0m 11s Maven dependency ordering for branch
+1 :green_heart: mvninstall 2m 40s master passed
+1 :green_heart: compile 1m 1s master passed
+1 :green_heart: shadedjars 5m 17s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 41s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 14s Maven dependency ordering for patch
+1 :green_heart: mvninstall 2m 28s the patch passed
+1 :green_heart: compile 1m 0s the patch passed
+1 :green_heart: javac 1m 0s the patch passed
+1 :green_heart: shadedjars 5m 13s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 0m 41s the patch passed
_ Other Tests _
+1 :green_heart: unit 1m 56s hbase-common in the patch passed.
+1 :green_heart: unit 240m 34s hbase-server in the patch passed.
267m 30s
Subsystem Report/Notes
Docker ClientAPI=1.45 ServerAPI=1.45 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5820
Optional Tests javac javadoc unit shadedjars compile
uname Linux 593234cf39aa 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 5d694dae5e
Default Java Temurin-1.8.0_352-b08
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/testReport/
Max. process+thread count 4936 (vs. ulimit of 30000)
modules C: hbase-common hbase-server U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5820/1/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Apr 10 '24 23:04 Apache-HBase

Introduce a new configuration setting - "hfile.block.size" that, if set, will define the default blocksize to use when writing HFiles if a column family schema does not define its own non-default block size. This is a bit complicated but required for compatability. The rules are:

  • If the schema specifies a non default block size, use it.
  • Otherwise, if the configuration specifies a non default block size, use it.
  • Otherwise, use the default block size.

The default is defined by HConstants.DEFAULT_BLOCKSIZE.

Given how compound configurations work the precedence order for a non default block size is: BLOCKSIZE in the column family schema > "hfile.block.size" in CF or table level schema > "hfile.block.size" in site configuration > HConstants.DEFAULT_BLOCKSIZE

No table level configuration?

Apache9 avatar Apr 11 '24 02:04 Apache9

@apurtell is this ready to be merged? It currently has fixVersion 2.6.0, and I'm looking to create the next RC tomorrow

bbeaudreault avatar Apr 23 '24 18:04 bbeaudreault