Skip to content

[Offload] Make the field name in OffloadPolicies match with config file - #8310

Merged
codelipenghui merged 23 commits into
apache:masterfrom
gaoran10:offload-configuration-fix
Oct 28, 2020
Merged

codelipenghui merged 23 commits into
apache:masterfrom
gaoran10:offload-configuration-fix

Conversation

@gaoran10

Copy link
Copy Markdown
Contributor

Fixes #8220

Motivation

Currently, the fields' values couldn't be set properly by the Pulsar broker config file(broker.conf or standalone.conf).

Modifications

changed fields in OffloadPolicies

  1. managedLedgerOffloadAutoTriggerSizeThresholdBytes
  2. managedLedgerOffloadDeletionLagMs

Verifying this change

This change added tests and can be verified as follows:

  • org.apache.pulsar.common.policies.data.OffloadPoliciesTest

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): (no)
  • 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)

1. managedLedgerOffloadAutoTriggerSizeThresholdBytes
2. managedLedgerOffloadDeletionLagMs
@codelipenghui

Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

@codelipenghui codelipenghui added this to the 2.7.0 milestone Oct 21, 2020
@jiazhai

jiazhai commented Oct 21, 2020

Copy link
Copy Markdown
Member

@gaoran10 seems the CI - Misc / License check (pull_request) has a issue

@codelipenghui

Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

@gaoran10

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui

Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

@jiazhai

jiazhai commented Oct 26, 2020

Copy link
Copy Markdown
Member

/pulsarbot run-failure-checks

@gaoran10

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@jiazhai

jiazhai commented Oct 27, 2020

Copy link
Copy Markdown
Member

/pulsarbot run-failure-checks

@wolfstudy

Copy link
Copy Markdown
Member

@sijie PTAL again, thanks

@gaoran10

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@gaoran10

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui
codelipenghui merged commit a8eaeb5 into apache:master Oct 28, 2020
@milos-matijasevic

Copy link
Copy Markdown
Contributor

Hey guys, i have one question, after this what is default value for managedLedgerOffloadDeletionLagMs 4 hours or null(never).
In code it was null but now if it's read from broker config (broker.conf) it will be 4 hours ?

@gaoran10
gaoran10 deleted the offload-configuration-fix branch October 29, 2020 16:53
@gaoran10

gaoran10 commented Oct 29, 2020 •

Copy link
Copy Markdown
Contributor Author

@milos-matijasevic Yes, the default value for the managedLedgerOffloadDeletionLagMs is 4 hours, it will use the broker configuration unless you change the broker configuration or change the namespace level config managedLedgerOffloadDeletionLagMs through the command like this pulsar-admin namespaces set-offload-deletion-lag -l 1d.

huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
…file (apache#8310)

Fixes apache#8220 

### Motivation

Currently, the fields' values couldn't be set properly by the Pulsar broker config file(`broker.conf` or `standalone.conf`). 

### Modifications

changed fields in `OffloadPolicies`

1. managedLedgerOffloadAutoTriggerSizeThresholdBytes
2. managedLedgerOffloadDeletionLagMs
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
…file (apache#8310)

Fixes apache#8220 

### Motivation

Currently, the fields' values couldn't be set properly by the Pulsar broker config file(`broker.conf` or `standalone.conf`). 

### Modifications

changed fields in `OffloadPolicies`

1. managedLedgerOffloadAutoTriggerSizeThresholdBytes
2. managedLedgerOffloadDeletionLagMs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

managedLedgerOffloadDeletionLagMs and managedLedgerOffloadAutoTriggerSizeThresholdBytes are not used from config file

6 participants