GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bring back deleteRange for RocksDB to improve location delete performance by hangc0276 · Pull Request #3653 · apache/bookkeeper

Conversation

@hangc0276

@hangc0276 hangc0276 commented Nov 18, 2022

Copy link
Copy Markdown
Contributor

Motivation

The entry log location index deletion is deleted in batches one by one currently, and it will have low performance. Refer to: #3646

Matteo has introduced deleteRange API a few years ago, but rollback due to RocksDB delete ranges bug. #1620. The RocksDB bug has been addressed since 5.18.0 https://github.com/facebook/rocksdb/blob/main/HISTORY.md#5180-2018-11-30. We can bring the deleteRange API back to improve the entry log location deletion performance.

Changes

Bring deleteRange API back for entry log location deletion.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

zhaohaidao reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@hangc0276
bring back deleteRange for RocksDB to improve location delete perform…
7a26bc5
…ance
@hangc0276
hangc0276 requested review from dlg99, eolivelli, merlimat, nicoloboschi and zymap November 18, 2022 05:25
@hangc0276 hangc0276 self-assigned this Nov 18, 2022
@hangc0276 hangc0276 added type/improvement release/4.14.6 release/4.15.4 labels Nov 18, 2022
@hangc0276 hangc0276 added this to the 4.16.0 milestone Nov 18, 2022
merlimat
merlimat approved these changes Nov 18, 2022
View reviewed changes

@merlimat merlimat left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

👍

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
zymap
zymap approved these changes Nov 18, 2022
View reviewed changes
wenbingshen
wenbingshen approved these changes Nov 18, 2022
View reviewed changes
eolivelli
eolivelli approved these changes Nov 18, 2022
View reviewed changes

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Great !

Looking forward to see this in 4.16.0, and probably we can port it to 4.15 branch

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hangc0276
hangc0276 merged commit 696919c into apache:master Nov 18, 2022
@hangc0276

hangc0276 commented Nov 18, 2022

Copy link
Copy Markdown
Contributor Author

Great !

Looking forward to see this in 4.16.0, and probably we can port it to 4.15 branch

@eolivelli Yes, I will cherry-pick it to branch-4.14 and branch-4.15

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hangc0276 added a commit that referenced this pull request Nov 21, 2022
@hangc0276
bring back deleteRange for RocksDB to improve location delete perform…
e159510
…ance (#3653)

The entry log location index deletion is deleted in batches one by one currently, and it will have low performance. Refer to: #3646

Matteo has introduced deleteRange API a few years ago, but rollback due to RocksDB delete ranges bug. #1620.  The RocksDB bug has been addressed since 5.18.0 https://github.com/facebook/rocksdb/blob/main/HISTORY.md#5180-2018-11-30. We can bring the `deleteRange` API back to improve the entry log location deletion performance.

Bring `deleteRange` API back for entry log location deletion.

(cherry picked from commit 696919c)
@hangc0276 hangc0276 added the cherry-picked/branch-4.14 label Nov 21, 2022
zhaohaidao pushed a commit to zhaohaidao/bookkeeper that referenced this pull request Nov 21, 2022
@hangc0276 @zhaohaidao
bring back deleteRange for RocksDB to improve location delete perform…
f64c3b3
…ance (apache#3653)

### Motivation
The entry log location index deletion is deleted in batches one by one currently, and it will have low performance. Refer to: apache#3646

Matteo has introduced deleteRange API a few years ago, but rollback due to RocksDB delete ranges bug. apache#1620.  The RocksDB bug has been addressed since 5.18.0 https://github.com/facebook/rocksdb/blob/main/HISTORY.md#5180-2018-11-30. We can bring the `deleteRange` API back to improve the entry log location deletion performance.

### Changes
Bring `deleteRange` API back for entry log location deletion.
nicoloboschi pushed a commit to datastax-archive/datastax--bookkeeper that referenced this pull request Jan 11, 2023
@hangc0276 @nicoloboschi
bring back deleteRange for RocksDB to improve location delete perform…
1ed2463
…ance (apache#3653)

The entry log location index deletion is deleted in batches one by one currently, and it will have low performance. Refer to: apache#3646

Matteo has introduced deleteRange API a few years ago, but rollback due to RocksDB delete ranges bug. apache#1620.  The RocksDB bug has been addressed since 5.18.0 https://github.com/facebook/rocksdb/blob/main/HISTORY.md#5180-2018-11-30. We can bring the `deleteRange` API back to improve the entry log location deletion performance.

Bring `deleteRange` API back for entry log location deletion.

(cherry picked from commit 696919c)
(cherry picked from commit e159510)
@dlg99 dlg99 mentioned this pull request Jan 11, 2023
RocksDB: segfault in org.rocksdb.WriteBatch::delete called from org.apache.bookkeeper.bookie.storage.ldb.EntryLocationIndex#removeOffsetFromDeletedLedgers #3734
Closed
yaalsn pushed a commit to yaalsn/bookkeeper that referenced this pull request Jan 30, 2023
@hangc0276 @yaalsn
bring back deleteRange for RocksDB to improve location delete perform…
004bdb7
…ance (apache#3653)

### Motivation
The entry log location index deletion is deleted in batches one by one currently, and it will have low performance. Refer to: apache#3646

Matteo has introduced deleteRange API a few years ago, but rollback due to RocksDB delete ranges bug. apache#1620.  The RocksDB bug has been addressed since 5.18.0 https://github.com/facebook/rocksdb/blob/main/HISTORY.md#5180-2018-11-30. We can bring the `deleteRange` API back to improve the entry log location deletion performance.

### Changes
Bring `deleteRange` API back for entry log location deletion.
@hangc0276 hangc0276 mentioned this pull request Feb 7, 2023
[Branch-4.14] Revert PR#3653 and make delete entries batch size configurable #3768
Merged
hangc0276 added a commit that referenced this pull request Feb 8, 2023
@hangc0276
revert PR 3653 and make delete entries batch size configurable (#3768)
e56d6d6
### Motivations
This PR is to resolve the issue #3734 in branch-4.14 by following this suggestion. #3734 (comment)

### Modifications
1. Revert #3653
2. Bring #3646 to branch-4.14 to make delete entries batch size configurable.
@hangc0276 hangc0276 removed the release/4.15.4 label Feb 14, 2023
nicoloboschi pushed a commit to datastax-archive/datastax--bookkeeper that referenced this pull request Mar 13, 2023
@hangc0276 @nicoloboschi
revert PR 3653 and make delete entries batch size configurable (apach…
29e8438
…e#3768)

### Motivations
This PR is to resolve the issue apache#3734 in branch-4.14 by following this suggestion. apache#3734 (comment)

### Modifications
1. Revert apache#3653
2. Bring apache#3646 to branch-4.14 to make delete entries batch size configurable.

(cherry picked from commit e56d6d6)
nicoloboschi pushed a commit to datastax-archive/datastax--bookkeeper that referenced this pull request Mar 13, 2023
@hangc0276 @nicoloboschi
revert PR 3653 and make delete entries batch size configurable (apach…
18a071a
…e#3768)

### Motivations
This PR is to resolve the issue apache#3734 in branch-4.14 by following this suggestion. apache#3734 (comment)

### Modifications
1. Revert apache#3653
2. Bring apache#3646 to branch-4.14 to make delete entries batch size configurable.

(cherry picked from commit e56d6d6)
@dlg99 dlg99 mentioned this pull request Jun 6, 2024
Upgrade RocksDB to version 9.2.1 #4422
Closed
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
@hangc0276 Anup Ghatage
bring back deleteRange for RocksDB to improve location delete perform…
2911a4e
…ance (apache#3653)

### Motivation
The entry log location index deletion is deleted in batches one by one currently, and it will have low performance. Refer to: apache#3646

Matteo has introduced deleteRange API a few years ago, but rollback due to RocksDB delete ranges bug. apache#1620.  The RocksDB bug has been addressed since 5.18.0 https://github.com/facebook/rocksdb/blob/main/HISTORY.md#5180-2018-11-30. We can bring the `deleteRange` API back to improve the entry log location deletion performance.

### Changes
Bring `deleteRange` API back for entry log location deletion.
This was referenced Feb 20, 2025
[BUG]Large number of SST files in locations not being cleared after upgrade #4554
Closed
Fix SST files not being cleaned up in the locations folder #4555
Merged
@lhotari lhotari mentioned this pull request Apr 16, 2025
Upgrade to RocksDB 9.9.3 #4580
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@merlimat merlimat merlimat approved these changes
@eolivelli eolivelli eolivelli approved these changes
@zymap zymap zymap approved these changes
@wenbingshen wenbingshen wenbingshen approved these changes
@nicoloboschi nicoloboschi Awaiting requested review from nicoloboschi
@dlg99 dlg99 Awaiting requested review from dlg99

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@hangc0276 hangc0276

Labels

cherry-picked/branch-4.14 release/4.14.6 type/improvement

Projects

None yet

Milestone

4.16.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@hangc0276 @merlimat @eolivelli @zymap @wenbingshen
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.