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

Bump pulsar to 2.10.0.0-rc12 and fix testListOffsetForEmptyRolloverLedger #1176

Conversation

BewareMyPower
Copy link
Collaborator

Fixes #1175

Motivation

The ManagedLedger#rollCurrentLedgerIfFull can only work when the managed ledger's state is LedgerOpened since apache/pulsar#14664. The corner case described in #894 is still possible when some entries are sent but not persisted after a rollover and retention works. Therefore, we should still keep the testListOffsetForEmptyRolloverLedger to avoid the regression in KoP.

Modifications

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@BewareMyPower BewareMyPower requested a review from jiazhai as a code owner March 14, 2022 07:18
@BewareMyPower BewareMyPower self-assigned this Mar 14, 2022
@github-actions github-actions bot added the no-need-doc This pr does not need any document label Mar 14, 2022
@BewareMyPower
Copy link
Collaborator Author

We should also migrate the similar change to branch-2.9.2 because apache/pulsar#14664 will also be included in Pulsar 2.9.2.

@BewareMyPower BewareMyPower merged commit bb37893 into streamnative:master Mar 14, 2022
BewareMyPower added a commit that referenced this pull request Mar 14, 2022
…dger (#1176)

Fixes #1175

### Motivation

The `ManagedLedger#rollCurrentLedgerIfFull` can only work when the managed ledger's state is `LedgerOpened` since apache/pulsar#14664. The corner case described in #894 is still possible when some entries are sent but not persisted after a rollover and retention works. Therefore, we should still keep the `testListOffsetForEmptyRolloverLedger` to avoid the regression in KoP.

### Modifications

- Bump Pulsar to 2.10.0.0-rc12, which includes apache/pulsar#14664
- Change the managed ledger's state to `LedgerOpened` in `testListOffsetForEmptyRolloverLedger`.

(cherry picked from commit bb37893)
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-2.10.0.0-rc12 branch March 14, 2022 11:04
@codelipenghui
Copy link
Collaborator

@BewareMyPower Could you please help cherry-pick to branch-2.9.2

Demogorgon314 pushed a commit to Demogorgon314/kop that referenced this pull request Mar 15, 2022
…dger (streamnative#1176)

Fixes streamnative#1175

### Motivation

The `ManagedLedger#rollCurrentLedgerIfFull` can only work when the managed ledger's state is `LedgerOpened` since apache/pulsar#14664. The corner case described in streamnative#894 is still possible when some entries are sent but not persisted after a rollover and retention works. Therefore, we should still keep the `testListOffsetForEmptyRolloverLedger` to avoid the regression in KoP.

### Modifications

- Bump Pulsar to 2.10.0.0-rc12, which includes apache/pulsar#14664
- Change the managed ledger's state to `LedgerOpened` in `testListOffsetForEmptyRolloverLedger`.

(cherry picked from commit bb37893)
BewareMyPower added a commit that referenced this pull request Mar 21, 2022
…dger (#1176)

cherry-pick #1176

### Motivation

Bump pulsar to 2.8.2.14 and fix test list offset for empty rollover ledger

(cherry picked from commit bb37893)
eolivelli pushed a commit to eolivelli/kop that referenced this pull request Mar 21, 2022
…dger (streamnative#1176)

Fixes streamnative#1175

### Motivation

The `ManagedLedger#rollCurrentLedgerIfFull` can only work when the managed ledger's state is `LedgerOpened` since apache/pulsar#14664. The corner case described in streamnative#894 is still possible when some entries are sent but not persisted after a rollover and retention works. Therefore, we should still keep the `testListOffsetForEmptyRolloverLedger` to avoid the regression in KoP.

### Modifications

- Bump Pulsar to 2.10.0.0-rc12, which includes apache/pulsar#14664
- Change the managed ledger's state to `LedgerOpened` in `testListOffsetForEmptyRolloverLedger`.
eolivelli pushed a commit to eolivelli/kop that referenced this pull request Mar 21, 2022
…dger (streamnative#1176)

Fixes streamnative#1175

### Motivation

The `ManagedLedger#rollCurrentLedgerIfFull` can only work when the managed ledger's state is `LedgerOpened` since apache/pulsar#14664. The corner case described in streamnative#894 is still possible when some entries are sent but not persisted after a rollover and retention works. Therefore, we should still keep the `testListOffsetForEmptyRolloverLedger` to avoid the regression in KoP.

### Modifications

- Bump Pulsar to 2.10.0.0-rc12, which includes apache/pulsar#14664
- Change the managed ledger's state to `LedgerOpened` in `testListOffsetForEmptyRolloverLedger`.
michaeljmarshall pushed a commit to michaeljmarshall/kop that referenced this pull request Dec 13, 2022
…dger (streamnative#1176)

Fixes streamnative#1175

The `ManagedLedger#rollCurrentLedgerIfFull` can only work when the managed ledger's state is `LedgerOpened` since apache/pulsar#14664. The corner case described in streamnative#894 is still possible when some entries are sent but not persisted after a rollover and retention works. Therefore, we should still keep the `testListOffsetForEmptyRolloverLedger` to avoid the regression in KoP.

- Bump Pulsar to 2.10.0.0-rc12, which includes apache/pulsar#14664
- Change the managed ledger's state to `LedgerOpened` in `testListOffsetForEmptyRolloverLedger`.

(cherry picked from commit bb37893)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] testListOffsetForEmptyRolloverLedger failed for 2.10.0.0-rc-12
3 participants