Skip to content

Conversation

@wenbingshen
Copy link
Member

Motivation

Original PR: #1755,
It should be that this PR forgot to modify the memory application method.

When the direct memory is insufficient, it does not fall back to the jvm memory, and the bookie hangs directly.

image

image

Changes

Use OutOfMemoryPolicy when the direct memory is insufficient when reading the entry in ReadCache.

@wenbingshen
Copy link
Member Author

@merlimat @eolivelli @dlg99 @codelipenghui PTAL, thanks.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wenbingshen
Copy link
Member Author

@sijie Seeing that you once mentioned a PR #2158, it seems that you also want to solve all related codes, but in the end this PR was not merged. Here I just want to solve the problem that read back to the JVM memory in ReadCache when direct memory is insufficient. Can you help review it. Thanks.

@dlg99 dlg99 closed this Feb 14, 2022
@dlg99 dlg99 reopened this Feb 14, 2022
@dlg99
Copy link
Contributor

dlg99 commented Feb 14, 2022

closed/reopened to re-trigger merge/CI

@dlg99 dlg99 added this to the 4.15.0 milestone Feb 14, 2022
@dlg99 dlg99 merged commit f19544b into apache:master Feb 14, 2022
StevenLuMT pushed a commit to StevenLuMT/bookkeeper that referenced this pull request Feb 16, 2022
…ding the entry in ReadCache

### Motivation

Original PR: apache#1755,
It should be that this PR forgot to modify the memory application method.

When the direct memory is insufficient, it does not fall back to the jvm memory, and the bookie hangs directly.

![image](https://user-images.githubusercontent.com/35599757/137859349-f145bb88-7d1c-4739-b6d1-6f8987831cc0.png)

![image](https://user-images.githubusercontent.com/35599757/137859462-4e2b3dc5-3287-4bf7-8dad-048ad8a7723f.png)



### Changes

Use `OutOfMemoryPolicy` when the direct memory is insufficient when reading the entry in `ReadCache`.




Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Andrey Yegorov <None>

This closes apache#2836 from wenbingshen/useOutOfMemoryPolicyInReadCache
wolfstudy pushed a commit to wolfstudy/bookkeeper that referenced this pull request Aug 2, 2022
…ding the entry in ReadCache

### Motivation

Original PR: apache#1755,
It should be that this PR forgot to modify the memory application method.

When the direct memory is insufficient, it does not fall back to the jvm memory, and the bookie hangs directly.

![image](https://user-images.githubusercontent.com/35599757/137859349-f145bb88-7d1c-4739-b6d1-6f8987831cc0.png)

![image](https://user-images.githubusercontent.com/35599757/137859462-4e2b3dc5-3287-4bf7-8dad-048ad8a7723f.png)

### Changes

Use `OutOfMemoryPolicy` when the direct memory is insufficient when reading the entry in `ReadCache`.

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Andrey Yegorov <None>

This closes apache#2836 from wenbingshen/useOutOfMemoryPolicyInReadCache

(cherry picked from commit f19544b)
wolfstudy pushed a commit to wolfstudy/bookkeeper that referenced this pull request Aug 2, 2022
…e request !7)

Cherry pick 4.15 bug changes to repo
1. cherry pick some 4.15.0 changes

- apache#2962
- apache#2836

2. Bump new bookie version to 4.14.4.220419-SNAPSHOT
@wenbingshen wenbingshen deleted the useOutOfMemoryPolicyInReadCache branch April 27, 2023 16:24
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
…ding the entry in ReadCache

### Motivation

Original PR: apache#1755,
It should be that this PR forgot to modify the memory application method.

When the direct memory is insufficient, it does not fall back to the jvm memory, and the bookie hangs directly.

![image](https://user-images.githubusercontent.com/35599757/137859349-f145bb88-7d1c-4739-b6d1-6f8987831cc0.png)

![image](https://user-images.githubusercontent.com/35599757/137859462-4e2b3dc5-3287-4bf7-8dad-048ad8a7723f.png)



### Changes

Use `OutOfMemoryPolicy` when the direct memory is insufficient when reading the entry in `ReadCache`.




Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Andrey Yegorov <None>

This closes apache#2836 from wenbingshen/useOutOfMemoryPolicyInReadCache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants