apache / apache/bookkeeper

LedgerEntry#getLength does not do what the documentation says

Open
#1,411 12 comments 0 reactions 0 assignees View on GitHub
area/client triage/week-10 type/bug
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

You would expect getLength on a LedgerEntry to return the length of the data in the entry. The documentation says it does this, and the Mock implementation do so too. But this is not what it does. It in fact returns the length of the ledger up to and including this entry.

At the very least this is a documentation bug, but this name is super confusing even if the documentation is updated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.