Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #864 from zalando/ARUHA-1624-out-of-memory
Browse files Browse the repository at this point in the history
Aruha 1624 out of memory
  • Loading branch information
v-stepanov authored Apr 25, 2018
2 parents f56de8a + 9a90b69 commit 46f9610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed
- Fixed commit for subscriptions that use direct assignment of partitions
- Fixed OutOfMemoryError when using huge values for batch_limit and max_uncommitted_events


## [2.6.3] - 2018-04-10

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ long getBytesInMemory() {
}

private List<ConsumedEvent> extract(final int count) {
final List<ConsumedEvent> result = new ArrayList<>(count);
final List<ConsumedEvent> result = new ArrayList<>();
for (int i = 0; i < count && !nakadiEvents.isEmpty(); ++i) {
final ConsumedEvent event = nakadiEvents.remove(0);
bytesInMemory -= event.getEvent().length;
Expand Down

0 comments on commit 46f9610

Please sign in to comment.