Skip to content

Conversation

@merlimat
Copy link
Contributor

Motivation

This is based on #1754. Adding the code to configure and use the allocator wrapper in bookie and client.

(I'll rebase once the first PR is merged)

@sijie
Copy link
Member

sijie commented Oct 25, 2018

@merlimat #1754 is merged. so you can rebase now.

@merlimat
Copy link
Contributor Author

@sijie rebased on master

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.

Looks good to me.
+1 very interesting and useful idea

Please create a task for documentation of this new feature, possibly blocker for 4.9 or just add the documentation in this patch.

@merlimat
Copy link
Contributor Author

run tls tests

@merlimat
Copy link
Contributor Author

run bookkeeper-server tls tests

Copy link
Contributor

@ivankelly ivankelly left a comment

Choose a reason for hiding this comment

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

Looks good. Minor comments.


static ByteBuf createExplicitLACEntry(long ledgerId, ByteBuf explicitLac) {
ByteBuf bb = PooledByteBufAllocator.DEFAULT.directBuffer(8 + 8 + 4 + explicitLac.capacity());
private ByteBuf createExplicitLACEntry(long ledgerId, ByteBuf explicitLac) {
Copy link
Contributor

@ivankelly ivankelly Oct 26, 2018

Choose a reason for hiding this comment

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

Unrelated to this patch, but we really shouldn't have serialization code in Bookie

…ecksum/CRC32CDigestManager.java

Co-Authored-By: merlimat <mmerli@apache.org>
merlimat added a commit that referenced this pull request Nov 6, 2018
### Motivation

 * Upgrade to latest Netty version which brings in perf improvements and some new features (eg: netty/netty#8267) 

 * Broke down the dependencies from `netty-all` into individual components, as discussed at #1755 (comment)



Reviewers: Ivan Kelly <ivank@apache.org>, Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <sijie@apache.org>

This closes #1784 from merlimat/netty-4.1.31
@merlimat
Copy link
Contributor Author

merlimat commented Nov 7, 2018

@sijie @ivankelly Addressed comments, PTAL again.

Copy link
Contributor

@ivankelly ivankelly left a comment

Choose a reason for hiding this comment

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

ship it

@sijie
Copy link
Member

sijie commented Dec 3, 2018

run integration tests
run bookkeeper-server tls tests

@sijie
Copy link
Member

sijie commented Dec 5, 2018

run bookkeeper-server tls tests

@sijie
Copy link
Member

sijie commented Dec 14, 2018

@merlimat it seems this PR requires rebase and there are some checkstyle issues needs to be fixed as well.

1 similar comment
@sijie
Copy link
Member

sijie commented Jan 6, 2019

@merlimat it seems this PR requires rebase and there are some checkstyle issues needs to be fixed as well.

@merlimat
Copy link
Contributor Author

merlimat commented Jan 8, 2019

run bookkeeper-server bookie tests

@merlimat merlimat merged commit 1a66de0 into apache:master Jan 8, 2019
@merlimat merlimat deleted the use-allocator branch January 8, 2019 20:16
@coveralls
Copy link

Pull Request Test Coverage Report for Build 3657

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-72.08%) to 0.0%

Totals Coverage Status
Change from base Build 323: -72.08%
Covered Lines: 0
Relevant Lines: 86

💛 - Coveralls

dlg99 pushed a commit that referenced this pull request Feb 14, 2022
…ding the entry in ReadCache

### 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](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 #2836 from wenbingshen/useOutOfMemoryPolicyInReadCache
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)
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.

5 participants