Skip to content

Check admin endpoint instead of metrics for Pulsar WaitStrategy. - #5514

Merged
eddumelendez merged 5 commits into
testcontainers:masterfrom
nahguam:pulsar-wait-strategy
Jun 28, 2022
Merged

eddumelendez merged 5 commits into
testcontainers:masterfrom
nahguam:pulsar-wait-strategy

Conversation

@nahguam

@nahguam nahguam commented Jun 22, 2022

Copy link
Copy Markdown
Contributor

Fixes #5513

@nahguam
nahguam requested a review from a team June 22, 2022 15:33
@kiview kiview added this to the next milestone Jun 22, 2022

@eddumelendez eddumelendez left a comment

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.

Besides the suggestion, my little concern is related to METRIC_ENDPOINT (which I am not expecting to be used) can break someone else code. I would rather deprecate it for now.

Would like to hear from @kiview @bsideup regarding to this.

In case, we agree to drop it. The following is needed in the build.gradle file in the pulsar module

tasks.japicmp {
    fieldExcludes = [
        "org.testcontainers.containers.PulsarContainer#METRICS_ENDPOINT"
    ]
}

Comment thread modules/pulsar/src/main/java/org/testcontainers/containers/PulsarContainer.java Outdated
Dave Maughan and others added 2 commits June 23, 2022 14:33
@nahguam
nahguam force-pushed the pulsar-wait-strategy branch from 2da64cf to 85adce5 Compare June 23, 2022 13:33
@kiview

kiview commented Jun 23, 2022

Copy link
Copy Markdown
Member

I agree with @eddumelendez's argument and that's how we generally approach changes to the public API. So although unlikely that users depend on it, let's deprecate METRIC_ENDPOINT to be safe.

Comment thread modules/pulsar/src/main/java/org/testcontainers/containers/PulsarContainer.java Outdated
…sarContainer.java

Co-authored-by: Kevin Wittek <kiview@users.noreply.github.com>
@eddumelendez
eddumelendez merged commit 56d0cf1 into testcontainers:master Jun 28, 2022
@eddumelendez

Copy link
Copy Markdown
Member

@nahguam thanks for your contribution! this is now in master

@nahguam
nahguam deleted the pulsar-wait-strategy branch June 28, 2022 13:12
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.

[Enhancement]: Better WaitStrategy to ensure the Pulsar cluster is fully initialised

4 participants