Skip to content

[ci-run][improve][test] Improve KeySharedSubscriptionTest to reduce the execution time - #23

Closed
poorbarcode wants to merge 16 commits into
masterfrom
slow/KeySharedSubscriptionTest
Closed

poorbarcode wants to merge 16 commits into
masterfrom
slow/KeySharedSubscriptionTest

Conversation

@poorbarcode

Copy link
Copy Markdown
Owner

lhotari and others added 16 commits October 11, 2022 11:27
…Codecov (apache#17382)

* [improve][ci] Generate jacoco code coverage reports and upload to CodeCov

* [improve][ci] Generate jacoco code coverage reports and upload to CodeCov

* [improve][ci] Generate jacoco code coverage reports and upload to CodeCov

* [improve][ci] Generate jacoco code coverage reports and upload to CodeCov

* Add codecov configuration file

* Update codecov.yml

Co-authored-by: tison <[email protected]>

* Change codecov comment behaviour configuration to default to reduce the email notification times.

* Allow CodeCov upload report job can be failure

* Include only apache/pulsar class to generate jacoco tests

* Include only apache/pulsar class to generate jacoco tests

* Exclude class files in META-INF and skip pulsar-all-docker-image in test_group_other

* Remove generate jacoco reports step in pulsar-ci

Co-authored-by: tison <[email protected]>
* [fix][bookie] Correctly handle list configuration values

* Remove unused import

### Motivation

When the `metadataServiceUri` or the `zkServers` configuration for `BookieRackAffinityMapping` is provided as a comma delimited list, it is automatically parsed into an ArrayList by the configuration class because the Bookkeeper configuration class relies on the defaults in the `org.apache.commons.configuration.AbstractConfiguration` class. Here is a sample error:

```
2022-07-29T19:25:43,437+0000 [main] ERROR org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicyImpl - Failed to initialize DNS Resolver org.apache.pulsar.zookeeper.ZkBookieRackAffinityMapping, used default subnet resolver
java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.lang.String (java.util.ArrayList and java.lang.String are in module java.base of loader 'bootstrap')
```

Also, see apache#6349 and apache#6343 for context.

### Modifications

* Move the `castToString` method out to a shared class.
* Use the `castToString` method to safely get the configuration value.

### Verifying this change

This PR includes a test.

### Documentation

- [x] `doc-not-needed`
…#16225)

### Motivation

In apache#13950, we switched an error log to an info log. @hsaputra requested on Pulsar Slack we use warn level so that alerts still fire in for the case when the topic is not found.

### Modifications

* Replace `info` with `warn` when topic is not found in the `ServerCnx` class.
- [x] `doc-not-needed`
)

### Motivation
The TransactionImpl stores a lot of future. This uses a lot of memory and can be optimized to two futures.
### Modification
Optimize the future list to a single future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.