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

[improve][build, test] Sync commits from apache/pulsar branch-3.1 into 3.1_ds #227

Merged
merged 101 commits into from
Mar 6, 2024

Conversation

mukesh-ctds
Copy link
Collaborator

@mukesh-ctds mukesh-ctds commented Mar 1, 2024

Motivation

Explain here the context, and why you're making that change. What is the problem you're trying to solve.
This PR sync all commits apache/branch-3.1 into 3.1_ds.
It cherry-picked the commits of branch-3.1 from 13th Oct 2023 till 4 Mar 2024

Modifications

Describe the modifications you've done.

  • Cherry-picked commits from branch-3.1
  • Fixed import issues

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

Check the box below or label this PR directly (if you have committer privilege).

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)

Demogorgon314 and others added 30 commits February 29, 2024 13:53
…le when using extensible load manager (apache#21213) (apache#21314)

(cherry picked from commit 0454410)
…iew construction (apache#21270)"

This reverts commit c46ed2d.

(cherry picked from commit ceafb3b)
…es from compacted topic (apache#21465)"

This reverts commit 80f921a.

(cherry picked from commit c616deb)
… was thrown (apache#21810)

After the topic policies update, there are many components will be updated one by one, even if the config of components has not been modified. There are the 11 components that need update:
- `7` rate limiters(`publish`, `dispatch topic-level`, `dispatch subscription-level`,  `dispatch resourceGroup-level`, `subscribe API`, `replication`, `shadow topic replication`)
- update ManagedLedger configs(`retention`, `offloader`)
- start/stop replication
- start/stop compaction
- start/stop deduplication

Once a component update fails, the following update will be skipped. It would cause a confusing thing: you want to set a retention policy, but it will be skipped due to the `update subscribe rate limiter` failure (you did not edit the `subscribe rate limitation policy`)

Since none of the components in the above list have any additional dependencies for individual updates, ensuring success as much as possible is appropriate.

- Update topic policies as much as possible even if some component updates fail, all component updates are still in the same thread, and they still update one by one, just throw the error later.
- Rename `updatePublishDispatcher` to `updatePublishRateLimiter`

(cherry picked from commit ed59967)
(cherry picked from commit 19c9e7f)
…pache#21893)

### Motivation

When `managedLedgerInactiveLedgerRolloverTimeSeconds` is set, let's say to `300` (5 minutes), the ledger will also get rolled in the case when no new entries (messages) were added to the ledger. This doesn't make sense.
Empty ledgers are deleted, but having this extra churn is causing extra load on brokers, bookies, and metadata stores (zookeeper).

### Modifications

Skip rolling the ledger if it is empty.

(cherry picked from commit 49edc3d)
(cherry picked from commit 84a4885)
…ic with a suffix-matched regexp due to a mistake of PIP-145 (apache#21885)

(cherry picked from commit 4ebbd2f)
(cherry picked from commit ce8c291)
### Motivation

Add a default username in the pulsar image. When using HDFS offloader, it requires a username to transfer the file.

(cherry picked from commit d5f0097)
(cherry picked from commit c92c485)
…t and webServicePortTls are set (apache#21633)

Co-authored-by: Jiwe Guo <technoboy@apache.org>
(cherry picked from commit f8067b5)
(cherry picked from commit 91e073d)
…rvicePort and webServicePortTls are set (apache#21633)"

This reverts commit 91e073d.

(cherry picked from commit 5e0b424)
…t and webServicePortTls are set (apache#21633)

Co-authored-by: Jiwe Guo <technoboy@apache.org>
(cherry picked from commit f8067b5)
(cherry picked from commit ba1f8a1)
…t and webServicePortTls are set (apache#21842)

(cherry picked from commit e10d318)
(cherry picked from commit 8620610)
…sed address and advertised listeners are configured (apache#21894)

(cherry picked from commit 3158fd3)
(cherry picked from commit 358d122)
…ing Pulsar releases (apache#21937)

(cherry picked from commit 6347315)
(cherry picked from commit 89f722f)
@mukesh-ctds mukesh-ctds self-assigned this Mar 1, 2024
mukesh-ctds and others added 23 commits March 1, 2024 12:12
…d client clock skew (apache#21940)

(cherry picked from commit 861618a)
(cherry picked from commit fee3a33)
… in expiryMon… (apache#21991)

Co-authored-by: atomchchen <atomchchen@tencent.com>
(cherry picked from commit 220a3d6)
(cherry picked from commit 09cb541)
…isabled allowAutoSubscriptionCreation (apache#22078)

(cherry picked from commit bbf6ddf)
(cherry picked from commit 7eec36e)
(cherry picked from commit 91de98a)
(cherry picked from commit c9ecd52)
… sources (apache#22184)

(cherry picked from commit 207335a)
(cherry picked from commit b183492)
(cherry picked from commit 7e28e84)
… port if TLS is enabled (apache#21015)

(cherry picked from commit 1363777)
(cherry picked from commit 628e79d)
@mukesh-ctds mukesh-ctds merged commit e783129 into 3.1_ds Mar 6, 2024
4 of 5 checks passed
@mukesh-ctds mukesh-ctds deleted the 3.1-apachepulsar-sync branch September 25, 2024 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.