Skip to content
This repository has been 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

Conversation

Demogorgon314
Copy link
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
Collaborator

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
Collaborator

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
Collaborator

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
Collaborator

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.

None yet

2 participants