This repository was archived by the owner on Jan 24, 2024. It is now read-only.
Bump pulsar to 2.8.0-rc-202104202206 - #448
Merged
BewareMyPower merged 1 commit intoApr 22, 2021
Merged
Conversation
BewareMyPower
approved these changes
Apr 21, 2021
BewareMyPower
added a commit
to BewareMyPower/kop
that referenced
this pull request
May 6, 2022
Fixes streamnative#1272 ### Motivation streamnative#448 introduced a bug that the compaction threshold was not set in metadata namespace. ```java // NOTE: compactionThreshold is always null unless it has been configured Long compactionThreshold = namespaces.getCompactionThreshold(kafkaMetadataNamespace); if (compactionThreshold != null && compactionThreshold != MAX_COMPACTION_THRESHOLD) { // it never gets here unless compaction threshold has been configured namespaces.setCompactionThreshold(kafkaMetadataNamespace, MAX_COMPACTION_THRESHOLD); } ``` In addition, currently there is no test that ensures the metadata has been initialized correctly. ### Modifications - Configure the compaction threshold when the metadata namespace is created. Since the policies could only be configured when the namespace didn't exist before, there is no need to check the existing policy. - Add `MetadataInitTest` to test the metadata namespace has been configured correctly. It also verifies the `kafkaManageSystemNamespaces` config, which disables the initialization of the metadata namespace. - Refactor the `internalSetup` method to avoid the redundant start of broker.
This was referenced May 6, 2022
BewareMyPower
added a commit
to BewareMyPower/kop
that referenced
this pull request
May 7, 2022
Fixes streamnative#1272 ### Motivation streamnative#448 introduced a bug that the compaction threshold was not set in metadata namespace. ```java // NOTE: compactionThreshold is always null unless it has been configured Long compactionThreshold = namespaces.getCompactionThreshold(kafkaMetadataNamespace); if (compactionThreshold != null && compactionThreshold != MAX_COMPACTION_THRESHOLD) { // it never gets here unless compaction threshold has been configured namespaces.setCompactionThreshold(kafkaMetadataNamespace, MAX_COMPACTION_THRESHOLD); } ``` In addition, currently there is no test that ensures the metadata has been initialized correctly. ### Modifications - Configure the compaction threshold when the metadata namespace is created. Since the policies could only be configured when the namespace didn't exist before, there is no need to check the existing policy. - Add `MetadataInitTest` to test the metadata namespace has been configured correctly. It also verifies the `kafkaManageSystemNamespaces` config, which disables the initialization of the metadata namespace. - Refactor the `internalSetup` method to avoid the redundant start of broker.
BewareMyPower
added a commit
that referenced
this pull request
May 7, 2022
Fixes #1272 ### Motivation #448 introduced a bug that the compaction threshold was not set in metadata namespace. ```java // NOTE: compactionThreshold is always null unless it has been configured Long compactionThreshold = namespaces.getCompactionThreshold(kafkaMetadataNamespace); if (compactionThreshold != null && compactionThreshold != MAX_COMPACTION_THRESHOLD) { // it never gets here unless compaction threshold has been configured namespaces.setCompactionThreshold(kafkaMetadataNamespace, MAX_COMPACTION_THRESHOLD); } ``` In addition, currently there is no test that ensures the metadata has been initialized correctly. ### Modifications - Configure the compaction threshold when the metadata namespace is created. Since the policies could only be configured when the namespace didn't exist before, there is no need to check the existing policy. - Add `MetadataInitTest` to test the metadata namespace has been configured correctly. It also verifies the `kafkaManageSystemNamespaces` config, which disables the initialization of the metadata namespace. - Refactor the `internalSetup` method to avoid the redundant start of broker.
BewareMyPower
added a commit
that referenced
this pull request
May 7, 2022
Fixes #1272 ### Motivation #448 introduced a bug that the compaction threshold was not set in metadata namespace. ```java // NOTE: compactionThreshold is always null unless it has been configured Long compactionThreshold = namespaces.getCompactionThreshold(kafkaMetadataNamespace); if (compactionThreshold != null && compactionThreshold != MAX_COMPACTION_THRESHOLD) { // it never gets here unless compaction threshold has been configured namespaces.setCompactionThreshold(kafkaMetadataNamespace, MAX_COMPACTION_THRESHOLD); } ``` In addition, currently there is no test that ensures the metadata has been initialized correctly. ### Modifications - Configure the compaction threshold when the metadata namespace is created. Since the policies could only be configured when the namespace didn't exist before, there is no need to check the existing policy. - Add `MetadataInitTest` to test the metadata namespace has been configured correctly. It also verifies the `kafkaManageSystemNamespaces` config, which disables the initialization of the metadata namespace. - Refactor the `internalSetup` method to avoid the redundant start of broker. (cherry picked from commit 82211b9)
BewareMyPower
added a commit
that referenced
this pull request
May 7, 2022
Fixes #1272 ### Motivation #448 introduced a bug that the compaction threshold was not set in metadata namespace. ```java // NOTE: compactionThreshold is always null unless it has been configured Long compactionThreshold = namespaces.getCompactionThreshold(kafkaMetadataNamespace); if (compactionThreshold != null && compactionThreshold != MAX_COMPACTION_THRESHOLD) { // it never gets here unless compaction threshold has been configured namespaces.setCompactionThreshold(kafkaMetadataNamespace, MAX_COMPACTION_THRESHOLD); } ``` In addition, currently there is no test that ensures the metadata has been initialized correctly. ### Modifications - Configure the compaction threshold when the metadata namespace is created. Since the policies could only be configured when the namespace didn't exist before, there is no need to check the existing policy. - Add `MetadataInitTest` to test the metadata namespace has been configured correctly. It also verifies the `kafkaManageSystemNamespaces` config, which disables the initialization of the metadata namespace. - Refactor the `internalSetup` method to avoid the redundant start of broker. (cherry picked from commit 82211b9)
BewareMyPower
added a commit
that referenced
this pull request
May 7, 2022
Fixes #1272 ### Motivation #448 introduced a bug that the compaction threshold was not set in metadata namespace. ```java // NOTE: compactionThreshold is always null unless it has been configured Long compactionThreshold = namespaces.getCompactionThreshold(kafkaMetadataNamespace); if (compactionThreshold != null && compactionThreshold != MAX_COMPACTION_THRESHOLD) { // it never gets here unless compaction threshold has been configured namespaces.setCompactionThreshold(kafkaMetadataNamespace, MAX_COMPACTION_THRESHOLD); } ``` In addition, currently there is no test that ensures the metadata has been initialized correctly. ### Modifications - Configure the compaction threshold when the metadata namespace is created. Since the policies could only be configured when the namespace didn't exist before, there is no need to check the existing policy. - Add `MetadataInitTest` to test the metadata namespace has been configured correctly. It also verifies the `kafkaManageSystemNamespaces` config, which disables the initialization of the metadata namespace. - Refactor the `internalSetup` method to avoid the redundant start of broker. (cherry picked from commit 82211b9)
eolivelli
pushed a commit
to datastax/starlight-for-kafka
that referenced
this pull request
May 17, 2022
Fixes streamnative/kop#1272 streamnative/kop#448 introduced a bug that the compaction threshold was not set in metadata namespace. ```java // NOTE: compactionThreshold is always null unless it has been configured Long compactionThreshold = namespaces.getCompactionThreshold(kafkaMetadataNamespace); if (compactionThreshold != null && compactionThreshold != MAX_COMPACTION_THRESHOLD) { // it never gets here unless compaction threshold has been configured namespaces.setCompactionThreshold(kafkaMetadataNamespace, MAX_COMPACTION_THRESHOLD); } ``` In addition, currently there is no test that ensures the metadata has been initialized correctly. - Configure the compaction threshold when the metadata namespace is created. Since the policies could only be configured when the namespace didn't exist before, there is no need to check the existing policy. - Add `MetadataInitTest` to test the metadata namespace has been configured correctly. It also verifies the `kafkaManageSystemNamespaces` config, which disables the initialization of the metadata namespace. - Refactor the `internalSetup` method to avoid the redundant start of broker. (cherry picked from commit 82211b9)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Bump pulsar to 2.8.0-rc-202104202206 and fix the incompatible interface.