Skip to content

Add memory used to scan trace spans - #6524

Merged
DomGarguilo merged 2 commits into
apache:2.1from
DomGarguilo:scanTraceFix
Sep 3, 2026
Merged

Add memory used to scan trace spans#6524
DomGarguilo merged 2 commits into
apache:2.1from
DomGarguilo:scanTraceFix

Conversation

@DomGarguilo

Copy link
Copy Markdown
Member

Closes #6022

table.scan.max.memory is checked against KVEntry.estimateMemoryUsed() (which is the bytes + 288 bytes per entry overhead for the java object), but accumulo.scan.bytes.returned reports bytes only. Meaning a stopped batch will report lower than actual. For example a batch that stopped at 1M will report ~820k making it seem like the config was ignored.

This PR adds accumulo.scan.memory.used with the value the limit actually uses which clarifies the property description and helps outline the difference.

@DomGarguilo DomGarguilo self-assigned this Sep 1, 2026
@dlmarion

dlmarion commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@DomGarguilo - see #6526

Edit: Nevermind - I see this is targeted for the 2.1 branch.

Comment thread test/src/main/java/org/apache/accumulo/test/tracing/ScanTracingIT.java Outdated
@DomGarguilo
DomGarguilo merged commit 1bbee05 into apache:2.1 Sep 3, 2026
9 checks passed
@DomGarguilo
DomGarguilo deleted the scanTraceFix branch September 3, 2026 15:41
Sign up for free to 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.

Investigate why numbers seen in scan trace do not match configuration

2 participants