Skip to content

Bump default codec buffer size to 8 KiB - #402

Merged
em3s merged 9 commits into
mainfrom
feat/codec-buffer-8k
Jul 9, 2026
Merged

em3s merged 9 commits into
mainfrom
feat/codec-buffer-8k

Conversation

@zipdoki

@zipdoki zipdoki commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bump the default codec buffer size from 5120 to 8192 bytes.

8 KiB is a common page/IO size and stays well below HBase's MOB threshold (~100 KiB), so encoded rows stay on the regular write path.

Ref: https://hbase.apache.org/docs/architecture/hbase-mob/

Changes

  • Set Constants.Codec.DEFAULT_BUFFER_SIZE to 8192
  • Add a short comment noting the MOB threshold

How to Test

./gradlew :core:test --tests "com.kakao.actionbase.core.codec.*"

AI Assistance

  • This PR was written largely with AI assistance.
    • Tool / model: Claude Code (Opus 4.7)

@zipdoki zipdoki self-assigned this Jul 9, 2026
@zipdoki
zipdoki requested a review from em3s as a code owner July 9, 2026 05:35
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 9, 2026
@zipdoki
zipdoki removed the request for review from em3s July 9, 2026 05:35
@dosubot dosubot Bot added the maintenance Maintenance work. label Jul 9, 2026
eazyhozy
eazyhozy previously approved these changes Jul 9, 2026

@eazyhozy eazyhozy 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.

LGTM👍🏻

offline review: tests for having 8k buffer are required

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 9, 2026
@eazyhozy
eazyhozy self-requested a review July 9, 2026 05:45
@eazyhozy
eazyhozy dismissed their stale review July 9, 2026 05:45

LGTM👍🏻

offline review: tests for having 8k buffer are required

@em3s

em3s commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Please add tests for 8 KiB and over 8 KiB. @zipdoki

Currently, the value is maintained in two places due to the legacy implementation. It would be better to cover both cases in one test file so we do not miss either side.

emeth-kim
emeth-kim approved these changes Jul 9, 2026 •
@em3s

em3s commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Since the value is still maintained in two places due to the legacy implementation, testing it in engine makes sense.

LGTM 👍 @zipdoki

@em3s
em3s requested a review from emeth-kim July 9, 2026 09:03
@em3s
em3s merged commit 2f28e64 into main Jul 9, 2026
2 checks passed
@em3s
em3s deleted the feat/codec-buffer-8k branch July 9, 2026 09:07
zipdoki added a commit that referenced this pull request Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer maintenance Maintenance work. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants