Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Don't merge][cherry-pick][branch-2.11] Cherry-pick some PR to branch-2.11 #21427

Closed
wants to merge 11 commits into from

Commits on Oct 24, 2023

  1. [fix][broker] rackaware policy is ineffective when delete zk rack inf…

    …o after bkclient initialize (apache#20944)
    
    (cherry picked from commit d9ebaf5)
    TakaHiR07 authored and shibd committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    79069f3 View commit details
    Browse the repository at this point in the history
  2. [fix] [broker] Producer is blocked on creation because backlog exceed…

    …ed on topic, when dedup is enabled and no producer is there (apache#20951)
    
    (cherry picked from commit 30073db)
    heesung-sn authored and shibd committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    ebdf7dc View commit details
    Browse the repository at this point in the history
  3. [fix] [admin] Fix get topic stats fail if a subscription catch up con…

    …currently (apache#20971)
    
    **Background**: when calling `pulsar-admin topics stats --get-earliest-time-in-backlog <topic name>`, Pulsar will read the first entry which is not acknowledged, and respond with the entry write time. The flow is like this:
    - get the mark deleted position of the subscription
    - if no backlog, response `-1`
    - else read the next position of the mark deleted position, and respond with the entry write time.
    
    **Issue**: if the command `pulsar-admin topics stats --get-earliest-time-in-backlog <topic name>` and `consumer.acknowledge` are executed at the same time, the step 2 in above flow will get a position which is larger than the last confirmed position, lead a read entry error.
    
    | time | `pulsar-admin topics stats --get-earliest-time-in-backlog <topic name>` | `consumer.acknowledge` |
    | --- | --- | --- |
    | 1 | mark deleted position is `3:1` and LAC is `3:2` now |
    | 2 | the check `whether has backlog` is passed |
    | 3 | | acknowledged `3:2`, mark deleted position is `3:2` now |
    | 4 | calculate next position: `3:3` |
    | 5 | Read `3:3` and get an error: `read entry failed` |
    
    Note: the test in PR is not intended to reproduce the issue.
    
    Respond `-1` if the next position of the mark deleted position is larger than the LAC
    
    (cherry picked from commit 7c96a36)
    poorbarcode authored and shibd committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    78a42ca View commit details
    Browse the repository at this point in the history
  4. [fix][broker] Fix compaction subscription delete by inactive subscrip…

    …tion check. (apache#20983)
    
    (cherry picked from commit 43cd86d)
    lifepuzzlefun authored and shibd committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    47f0d97 View commit details
    Browse the repository at this point in the history
  5. [fix] [bk-client] Fix bk client MinNumRacksPerWriteQuorum and Enforce…

    …MinNumRacksPerWriteQuorum not work problem. (apache#21327)
    
    (cherry picked from commit 61a7adf)
    horizonzy authored and shibd committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    a9e41c1 View commit details
    Browse the repository at this point in the history
  6. [fix][broker] Fix heartbeat namespace create transaction internal top…

    …ic (apache#21348)
    
    (cherry picked from commit c8a2f49)
    TakaHiR07 authored and shibd committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    b272a2a View commit details
    Browse the repository at this point in the history
  7. [fix][broker] Fix heartbeat namespace create event topic and cannot d…

    …elete heartbeat topic (apache#21360)
    
    Co-authored-by: fanjianye <[email protected]>
    Co-authored-by: Jiwei Guo <[email protected]>
    (cherry picked from commit 700a29d)
    TakaHiR07 authored and shibd committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    9106cca View commit details
    Browse the repository at this point in the history
  8. [fix][sec] Upgrade Zookeeper to 3.8.3 to address CVE-2023-44981 (apac…

    …he#21398)
    
    (cherry picked from commit e5120ec)
    lhotari authored and shibd committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    88fa457 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b45a8df View commit details
    Browse the repository at this point in the history
  10. [improve][broker] Replace ScheduledExecutorService to ExecutorService…

    … in ModularLoadManagerImpl (apache#19656)
    
    (cherry picked from commit 145e985)
    AnonHxy authored and shibd committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    2f5e753 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e127ca2 View commit details
    Browse the repository at this point in the history