Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue 873] Fix flaky test TestRLQMultiTopics() and TestRLQSpecifiedPartitionTopic() #874

Closed
wants to merge 6 commits into from

Conversation

Gleiphir2769
Copy link
Contributor

@Gleiphir2769 Gleiphir2769 commented Oct 27, 2022

Fixes #873

Motivation

The TestRLQMultiTopics() and TestRLQSpecifiedPartitionTopic() have a very high chance of failing (stuck forever). The purpose of this PR is to fix the stuck problem to save CI cost and find out why it often failed.

In my environment, run the TestRLQMultiTopics() 50 times in a row, the stuck will definitely occur (usually occurs in the tenth). Strangely after changing the location of the DLQ subscription statement, the problem never reappeared.

Did I miss something?

Modifications

The subcription of DLQ consumer has been moved from before RLQ consumer to after RLQ consumer.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

@Gleiphir2769 Gleiphir2769 changed the title [Issue 873] Fix flaky test TestRLQMultiTopics() [Issue 873] Fix flaky test TestRLQMultiTopics() and TestRLQSpecifiedPartitionTopic() Oct 28, 2022
@@ -41,7 +41,7 @@ import (

var (
adminURL = "http://localhost:8080"
lookupURL = "pulsar://localhost:6650"
lookupURL = "pulsar://10.105.7.225:6650"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this right to change to a fixed private IP? Would that work in CI and other localhost environment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have find the real reason. #875

It's a consumer bug caused by availablePermitsCh.

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.

[Flaky-test] TestRLQMultiTopics() can easily fail which causes CI failed
2 participants