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 — [WIP] introduce two phase deletion protocol. by horizonzy · Pull Request #15834 · apache/pulsar

Conversation

@horizonzy

@horizonzy horizonzy commented May 30, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Master Issue: #13238

Motivation

Introduce two phase deletion protocol, to avoid storage is not consistent with metadata.
The proposal is under disscuss, after accpt, link it on this pr.

Documentation

Check the box below or label this PR directly.

Need to update docs?

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

Sorry, something went wrong.

Uh oh!

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

All reactions
horizonzy added 12 commits May 28, 2022 14:10
@horizonzy
init snip-145
0c1a891
@horizonzy
redefine TrashDataComponent proto
df055a6
@horizonzy
fix compile problem.
4731f73
@horizonzy
fix code style.
e37e5c4
@horizonzy
fix code format.
5d04e3d
@horizonzy
complete ManagedTrashMXBean
b009d7e
@horizonzy
fix trashData value null problem.
93ca968
@horizonzy
fix EMPTY_LEDGER_INFO initialize problem.
a133007
@horizonzy
remove triggerDelete schedule task.
c5ca979
@horizonzy
code clean.
61a0e91
@horizonzy
revert broker.conf
464a407
@horizonzy
code format.
2a34693
@github-actions github-actions Bot assigned horizonzy May 30, 2022
@github-actions

github-actions Bot commented May 30, 2022

Copy link
Copy Markdown

@horizonzy:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added doc-label-missing and removed doc-label-missing labels May 30, 2022
@github-actions

github-actions Bot commented May 30, 2022

Copy link
Copy Markdown

@horizonzy:Thanks for providing doc info!

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added the doc-required Your PR changes impact docs and you will update later. label May 30, 2022
horizonzy added 12 commits May 30, 2022 15:02
@horizonzy
optimize persist data when the context is empty.
3e571e2
@horizonzy
complete admin api.
699d05a
@horizonzy
support trigger config.
2f9acb2
@horizonzy
fix check style
79deefd
@horizonzy
compatible
510da88
@horizonzy
support config to control is support two phase deletion.
9dd35c3
@horizonzy
code style fix.
0f97c20
@horizonzy
make ManagedTrash cover more case.
488d2ce
@horizonzy
make triggerDeleteInBackground to interface.
234dd94
@horizonzy
make triggerDeleteInBackground to interface.
cfb950d
@horizonzy
fix ignore uncompleted offload ledger problem.
428bf11
@horizonzy
when close managedLedger, close managedTrash together.
cb6e122
horizonzy added 4 commits June 2, 2022 12:53
@horizonzy
add backoff policy to avoid same key to delete frequently in a short …
5a2c4a4
…time.
@horizonzy
code clean.
59a21fc
@horizonzy
complete unit test.
c121e42
@horizonzy
Merge branch 'master' into snip-145
7e6c007
# Conflicts:
#	managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
@horizonzy horizonzy mentioned this pull request Jun 6, 2022
PIP 129: Introduce intermediate state for ledger deletion #13526
Closed
@horizonzy
code clean
9dd87e2
@horizonzy
horizonzy force-pushed the snip-145 branch from a07faf0 to 9dd87e2 Compare June 6, 2022 08:52
horizonzy added 4 commits June 6, 2022 17:57
@horizonzy
check retryCount is 0 when persist archive data.
82dd67c
@horizonzy
use timestamp to take place of ledgerId as archive node suffix.
9db6dec
@horizonzy
add test unit to cover code.
896720e
@horizonzy
Merge remote-tracking branch 'upstream/master' into snip-145
82011c0
# Conflicts:
#	managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
@horizonzy horizonzy changed the title [WIP] [Snip 145] introduce two phase deletion protocol. [Snip 145] introduce two phase deletion protocol. Jun 8, 2022
@horizonzy horizonzy changed the title [Snip 145] introduce two phase deletion protocol. [SNIP 45] introduce two phase deletion protocol. Jun 8, 2022
horizonzy added 5 commits June 8, 2022 18:48
@horizonzy
when didn't get lock to delete, make next delete procedure no delay.
6552514
@horizonzy
when didn't get lock to delete, make next delete procedure no delay.
6cfa99d
@horizonzy
when no more trashData to delete, make continueDeleteImmediately = 0
0b21f49
@horizonzy
1.make maxDeleteCount support config.
b4c54d5
2.add api: allTrashDataDeleteOnce.
@horizonzy
trigger delete after update trashData.
fc70690
@hezhangjian

hezhangjian commented Jun 10, 2022

Copy link
Copy Markdown
Member

what's SNIP meaning?

All reactions

Sorry, something went wrong.

Uh oh!

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

@horizonzy

horizonzy commented Jun 10, 2022

Copy link
Copy Markdown
Member Author

what's SNIP meaning?

Sorry, change the topic name.

All reactions

Sorry, something went wrong.

Uh oh!

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

@horizonzy horizonzy changed the title [SNIP 45] introduce two phase deletion protocol. [WIP] introduce two phase deletion protocol. Jun 10, 2022
horizonzy added 6 commits June 10, 2022 22:46
@horizonzy
make allTrashDataDeleteOnce async.
3c7303c
@horizonzy
add test case for getToDeleteData
056372a
@horizonzy
enhance unit test.
9cba2ab
@horizonzy
Add api doc info.
8fa183d
@horizonzy
code clean.
91d8fcc
@horizonzy
fix code style.
793687c
@github-actions

github-actions Bot commented Jul 14, 2022

Copy link
Copy Markdown

The pr had no activity for 30 days, mark with Stale label.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added the Stale label Jul 14, 2022
@horizonzy horizonzy closed this Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

@horizonzy horizonzy

Labels

doc-required Your PR changes impact docs and you will update later. Stale

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

2 participants

@horizonzy @hezhangjian
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.