Skip to content

GH-4409: Fix DefaultDataBag iteration at spill threshold - #4420

Open
Zhou-Kan wants to merge 1 commit into
apache:mainfrom
Zhou-Kan:fix/gh-4409-default-data-bag
Open

Zhou-Kan wants to merge 1 commit into
apache:mainfrom
Zhou-Kan:fix/gh-4409-default-data-bag

Conversation

@Zhou-Kan

Copy link
Copy Markdown

GitHub issue resolved #4409

Pull request Description:

Use the spilled flag in DefaultDataBag.iterator() so a bag containing
exactly the spill threshold number of items is read from memory.

Add a regression test covering iteration at the exact threshold.

Tests:

mvn -pl jena-arq -am \
  -Dtest=org.apache.jena.atlas.data.TS_Data \
  -Dsurefire.failIfNoSpecifiedTests=false test

  • Tests are included.
  • Documentation changes are not required.
  • Commits have been squashed to remove intermediate development commit messages.
  • Key commit messages start with the issue number (GH-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.


See the Apache Jena "Contributing" guide.

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.

DefaultDataBag.iterator: IndexOutOfBoundsException when the bag holds exactly the spill threshold

1 participant