Skip to content

Fix break changes in namespace offload policy and RabbitMQ sink. - #7011

Merged
codelipenghui merged 4 commits into
apache:masterfrom
codelipenghui:fix_integration_tests
May 22, 2020
Merged

codelipenghui merged 4 commits into
apache:masterfrom
codelipenghui:fix_integration_tests

Conversation

@codelipenghui

Copy link
Copy Markdown
Contributor

Motivation

Fix break changes in namespace offload policy and RabbitMQ sink.

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)

Documentation

  • Does this pull request introduce a new feature? (no)

@srkukarni
srkukarni requested a review from merlimat May 21, 2020 15:58
@codelipenghui codelipenghui self-assigned this May 21, 2020
@codelipenghui codelipenghui added this to the 2.6.0 milestone May 21, 2020
@codelipenghui
codelipenghui requested review from jiazhai and sijie May 21, 2020 16:03
managedLedgerConfig.setAutoSkipNonRecoverableData(serviceConfig.isAutoSkipNonRecoverableData());
OffloadPolicies offloadPolicies = policies.map(p -> p.offload_policies).orElse(null);

if (offloadPolicies == null) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was there to fallback to defaults in case there is no special offload policy for a given namespace. How is this behavior maintained?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Thanks!

@srkukarni

Copy link
Copy Markdown
Contributor

The broker unit tests have failed a lot of times. Maybe something to do with this change?

@codelipenghui

Copy link
Copy Markdown
Contributor Author

@srkukarni How can I get the previous error log? I think we can paste the failed tests under the comments. So that I can reproduce it on my laptop.

@srkukarni

Copy link
Copy Markdown
Contributor

The most recent failure was in replicator test

@srkukarni

Copy link
Copy Markdown
Contributor

@codelipenghui another error in filesystemoffload integration test

}
}

private void generatePropertiesForConfigurationIfNeeded() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the purpose it's not obvious, can you add a comment on why we need this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@codelipenghui
codelipenghui merged commit add2eae into apache:master May 22, 2020
@codelipenghui
codelipenghui deleted the fix_integration_tests branch May 22, 2020 10:18
@codelipenghui

Copy link
Copy Markdown
Contributor Author

@merlimat @srkukarni Tests is passed, I merged this PR.

nicolo-paganin pushed a commit to oncodeit/pulsar that referenced this pull request May 22, 2020
…che#7011)

### Motivation

Fix break changes in namespace offload policy and RabbitMQ sink.
nicolo-paganin pushed a commit to oncodeit/pulsar that referenced this pull request May 22, 2020
…che#7011)

### Motivation

Fix break changes in namespace offload policy and RabbitMQ sink.
cdbartholomew pushed a commit to kafkaesque-io/pulsar that referenced this pull request May 23, 2020
…che#7011)

Fix break changes in namespace offload policy and RabbitMQ sink.
cdbartholomew added a commit to kafkaesque-io/pulsar that referenced this pull request May 25, 2020
@skyrocknroll

Copy link
Copy Markdown
Contributor

@sijie @codelipenghui Should we include this as part of 2.5.3 release? Considering that this bug is causing offloading to fail?

Huanli-Meng pushed a commit to Huanli-Meng/pulsar that referenced this pull request Jun 1, 2020
…che#7011)

### Motivation

Fix break changes in namespace offload policy and RabbitMQ sink.
Huanli-Meng pushed a commit to Huanli-Meng/pulsar that referenced this pull request Jun 1, 2020
…che#7011)

### Motivation

Fix break changes in namespace offload policy and RabbitMQ sink.
Huanli-Meng pushed a commit to Huanli-Meng/pulsar that referenced this pull request Jun 12, 2020
…che#7011)

### Motivation

Fix break changes in namespace offload policy and RabbitMQ sink.
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…che#7011)

### Motivation

Fix break changes in namespace offload policy and RabbitMQ sink.
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.

5 participants