Skip to content

Conversation

@merlimat
Copy link
Contributor

@merlimat merlimat commented Feb 4, 2021

Motivation

Maybe CI jobs are failing with OOM in the brokers unit tests. The Surefire worker is configured with 4 processes, each with xmx of 1G.

The problem was introduced in #7863 where a static map of listeners was added to an interface. That makes that map to contain all the PulsarService instances created during the tests execution and keeping references to everything else.

The map should instead be scoped to the specific instance.

@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Feb 4, 2021
@merlimat merlimat added this to the 2.8.0 milestone Feb 4, 2021
@merlimat merlimat self-assigned this Feb 4, 2021
@codelipenghui codelipenghui modified the milestones: 2.8.0, 2.7.1 Feb 5, 2021
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

good catch !

is this something to fix in 2.7 branch ?

@eolivelli
Copy link
Contributor

@lhotari FYI

Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

Good catch! LGTM

@codelipenghui codelipenghui merged commit 31ee454 into apache:master Feb 5, 2021
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Feb 5, 2021
codelipenghui pushed a commit that referenced this pull request Feb 5, 2021
Maybe CI jobs are failing with OOM in the brokers unit tests. The Surefire worker is configured with 4 processes, each with xmx of 1G.

The problem was introduced in #7863 where a static map of listeners was added to an interface. That makes that map to contain all the `PulsarService` instances created during the tests execution and keeping references to everything else.

The map should instead be scoped to the specific instance.

(cherry picked from commit 31ee454)
@merlimat merlimat deleted the fix-ci-oom branch February 5, 2021 17:00
merlimat added a commit to merlimat/pulsar that referenced this pull request Apr 6, 2021
…9486)

### Motivation

Maybe CI jobs are failing with OOM in the brokers unit tests. The Surefire worker is configured with 4 processes, each with xmx of 1G. 

The problem was introduced in apache#7863 where a static map of listeners was added to an interface. That makes that map to contain all the `PulsarService` instances created during the tests execution and keeping references to everything else.

The map should instead be scoped to the specific instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.1 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants