Skip to content

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented Jun 2, 2022

Fixes #15689
Fixes #15793
Fixes #15897

Motivation

PulsarByteBufAllocator.DEFAULT instance was replaced in BatchMessageContainerImplTest, but never restored. This caused strange issues in many unit tests. OutOfMemoryError and NoClassDefFoundErrors were most likely caused by the BatchMessageContainerImplTest.

Modifications

Fix the problems in BatchMessageContainerImplTest and reset the state after the test completes.

Additional context

The flaky test was introduced by #12170 which has been cherry-picked to branch-2.8, branch-2.9 and included also in branch-2.10 .

- the PulsarByteBufAllocator.DEFAULT instance was replaced in BatchMessageContainerImplTest, but never restored
Copy link
Contributor

@nicoloboschi nicoloboschi left a comment

Choose a reason for hiding this comment

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

Nice catch

@hezhangjian hezhangjian merged commit ef1e0aa into apache:master Jun 3, 2022
lhotari added a commit that referenced this pull request Jun 6, 2022
Fixes #15689
Fixes #15793
Fixes #15897

### Motivation

`PulsarByteBufAllocator.DEFAULT` instance was replaced in BatchMessageContainerImplTest, but never restored. This caused strange issues in many unit tests. OutOfMemoryError and NoClassDefFoundErrors  were most likely caused by the BatchMessageContainerImplTest.

### Modifications

Fix the problems in BatchMessageContainerImplTest and reset the state after the test completes.

### Additional context

The flaky test was introduced by #12170 which has been cherry-picked to branch-2.8, branch-2.9 and included also in branch-2.10 .

(cherry picked from commit ef1e0aa)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jun 6, 2022
…he#15911)

Fixes apache#15689
Fixes apache#15793
Fixes apache#15897

### Motivation

`PulsarByteBufAllocator.DEFAULT` instance was replaced in BatchMessageContainerImplTest, but never restored. This caused strange issues in many unit tests. OutOfMemoryError and NoClassDefFoundErrors  were most likely caused by the BatchMessageContainerImplTest.

### Modifications

Fix the problems in BatchMessageContainerImplTest and reset the state after the test completes.

### Additional context

The flaky test was introduced by apache#12170 which has been cherry-picked to branch-2.8, branch-2.9 and included also in branch-2.10 .

(cherry picked from commit ef1e0aa)
(cherry picked from commit 3f3d452)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

4 participants