Skip to content

[fix][test]: fix flaky test of ManagedCursorMetricsTest.testManagedCursorMetrics (#9919) - #14720

Merged
lhotari merged 4 commits into
apache:masterfrom
wuxuanqicn:issue-9919
Apr 28, 2022
Merged

lhotari merged 4 commits into
apache:masterfrom
wuxuanqicn:issue-9919

Conversation

@wuxuanqicn

Copy link
Copy Markdown
Contributor

Fixes #9919

Motivation

we need make sure broker executed all ack command and updated metrics, then we can generate and check metric

Modifications

  • enable AckReceipt
  • await until ack procedure complete(ACK and ACK_RESPONSE command)

Verifying this change

  • Make sure that the change passes the CI checks.

Documentation

Need to update docs?

  • no-need-doc

    (Please explain why)

…e#9919)

### Motivation

we need make sure broker executed all ack command and updated metrics, then we can generate and check metric

### Modifications

- enable AckReceipt
- await until ack procedure complete(ACK and ACK_RESPONSE command)
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Mar 16, 2022
import org.apache.pulsar.client.api.Consumer;
import org.apache.pulsar.client.api.Producer;
import org.apache.pulsar.client.api.SubscriptionType;
import org.apache.pulsar.client.api.*;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please avoid using star import

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@codelipenghui codelipenghui changed the title [Flaky-test] ManagedCursorMetricsTest.testManagedCursorMetrics (#9919) [fix][test]: fix flaky test of ManagedCursorMetricsTest.testManagedCursorMetrics (#9919) Mar 18, 2022
import org.apache.pulsar.broker.stats.metrics.ManagedCursorMetrics;
import org.apache.pulsar.client.api.Consumer;
import org.apache.pulsar.client.api.Producer;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The code style used in Pulsar code base doesn't have empty line between imports. you might want to configure IntelliJ to use the Pulsar code style and checkstyle configuration. the instructions are in the README, https://github.com/apache/pulsar#configure-code-style

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@lhotari

lhotari commented Apr 20, 2022

Copy link
Copy Markdown
Member

LGTM. Please rebase the changes so that this can be merged.

@lhotari

lhotari commented Apr 27, 2022

Copy link
Copy Markdown
Member

closing and reopening to trigger a new build

@lhotari lhotari closed this Apr 27, 2022
@lhotari lhotari reopened this Apr 27, 2022
@lhotari

lhotari commented Apr 27, 2022

Copy link
Copy Markdown
Member

/pulsarbot rerun-failure-checks

@lhotari
lhotari merged commit be7057a into apache:master Apr 28, 2022
codelipenghui pushed a commit that referenced this pull request Apr 29, 2022
…rsorMetrics (#9919) (#14720)

Fixes #9919

### Motivation

we need make sure broker executed all ack command and updated metrics, then we can generate and check metric

### Modifications

- enable AckReceipt
- await until ack procedure complete(ACK and ACK_RESPONSE command)

Co-authored-by: xuanqi.wu <[email protected]>
(cherry picked from commit be7057a)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request May 16, 2022
…rsorMetrics (apache#9919) (apache#14720)

Fixes apache#9919

### Motivation

we need make sure broker executed all ack command and updated metrics, then we can generate and check metric

### Modifications

- enable AckReceipt
- await until ack procedure complete(ACK and ACK_RESPONSE command)

Co-authored-by: xuanqi.wu <[email protected]>
(cherry picked from commit be7057a)
nicoloboschi pushed a commit that referenced this pull request May 16, 2022
…rsorMetrics (#9919) (#14720)

Fixes #9919

### Motivation

we need make sure broker executed all ack command and updated metrics, then we can generate and check metric

### Modifications

- enable AckReceipt
- await until ack procedure complete(ACK and ACK_RESPONSE command)

Co-authored-by: xuanqi.wu <[email protected]>
(cherry picked from commit be7057a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky-test: ManagedCursorMetricsTest.testManagedCursorMetrics

6 participants