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

Fix NPE problems caused by mockZooKeeper API changes when dump version to 2.8.1.26 - #951

Merged
BewareMyPower merged 1 commit into
streamnative:masterfrom
Demogorgon314:fix_dump_version_to_2.8.1.26
Dec 6, 2021
Merged

Fix NPE problems caused by mockZooKeeper API changes when dump version to 2.8.1.26#951
BewareMyPower merged 1 commit into
streamnative:masterfrom
Demogorgon314:fix_dump_version_to_2.8.1.26

Conversation

@Demogorgon314

Copy link
Copy Markdown
Member

Fix https://github.com/streamnative/kop/runs/4425667410?check_suite_focus=true#step:5:283

#950

Motivation

MockZookeeper API has changed, the CreateMode shouldn't be null. We should use MetadataStore instead of mockZooKeeper since KoP already remove all zkClient usage.

Modifications

Use MetadataStore instead of mockZooKeeper in ProducerIdManagerTest

@BewareMyPower

Copy link
Copy Markdown
Contributor

Could you upgrade the Pulsar dependency to 2.8.1.26 as well? (Current dependency is 2.8.0.15) This change was introduced from apache/pulsar#13066, we should also note it in PR description.

@BewareMyPower

Copy link
Copy Markdown
Contributor

It's a breaking change but it only affects the tests. So I think upgrading Pulsar to 2.8.1.26 is OK and won't cause the compatibility issue like #768. The version upgrade is just to ensure the fix works.

@BewareMyPower

Copy link
Copy Markdown
Contributor

Sorry I missed the fact this is a PR to master branch. We can do the dependency upgrade later. I'll merge this PR first.

@BewareMyPower
BewareMyPower merged commit 7ad1d99 into streamnative:master Dec 6, 2021
@Demogorgon314
Demogorgon314 deleted the fix_dump_version_to_2.8.1.26 branch December 6, 2021 08:38
BewareMyPower pushed a commit that referenced this pull request Dec 6, 2021
…951)

Fix https://github.com/streamnative/kop/runs/4425667410?check_suite_focus=true#step:5:283

#950

### Motivation

MockZookeeper API was changed in apache/pulsar#13066, the `CreateMode` shouldn't be null. We should use MetadataStore instead of mockZooKeeper since KoP already remove all zkClient usage.

### Modifications

Use MetadataStore instead of mockZooKeeper in ProducerIdManagerTest
BewareMyPower pushed a commit that referenced this pull request Dec 6, 2021
…951)

Fix https://github.com/streamnative/kop/runs/4425667410?check_suite_focus=true#step:5:283

#950

### Motivation

MockZookeeper API was changed in apache/pulsar#13066, the `CreateMode` shouldn't be null. We should use MetadataStore instead of mockZooKeeper since KoP already remove all zkClient usage.

### Modifications

Use MetadataStore instead of mockZooKeeper in ProducerIdManagerTest
BewareMyPower added a commit that referenced this pull request Dec 6, 2021
…erTest (#951)"

This reverts commit 5be2d3d.

The commit 5be2d3d introduced an API that is not included in 2.8.1.x.
@BewareMyPower

Copy link
Copy Markdown
Contributor

Remove the 2.8.1 related labels because this PR uses an API only for 2.9.0 or later.

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.

2 participants