Skip to content

MongoMetricsCommandListenerTest.shouldCreateFailedCommandMetricWithCustomSettings() seems flaky #4602

@izeye

Description

@izeye

It failed on CI as follows:

MongoMetricsCommandListenerTest > shouldCreateFailedCommandMetricWithCustomSettings() FAILED
    io.micrometer.core.instrument.search.MeterNotFoundException: Unable to find a meter that matches all the requirements at once. Here's what was found:
       OK: A meter with name 'mongodb.driver.commands' was found.
       OK: A meter with type timer was found.
       FAIL: No meters have a tag 'cluster.id' with value '65aa84157856c446e440099e'. The only value found was '65aa84157856c446e440099f'.
       OK: A meter with name 'mongodb.driver.commands' has a tag 'collection' with value 'testCol'.
       OK: A meter with name 'mongodb.driver.commands' has a tag 'command' with value 'dropIndexes'.
       OK: A meter with name 'mongodb.driver.commands' has a tag 'mongoz' with value '5150'.
       OK: A meter with name 'mongodb.driver.commands' has a tag 'server.address' with value 'localhost:32781'.
       OK: A meter with name 'mongodb.driver.commands' has a tag 'status' with value 'FAILED'.
        at app//io.micrometer.core.instrument.search.MeterNotFoundException$FromRequiredSearch.build(MeterNotFoundException.java:245)
        at app//io.micrometer.core.instrument.search.MeterNotFoundException$FromRequiredSearch.access$100(MeterNotFoundException.java:49)
        at app//io.micrometer.core.instrument.search.MeterNotFoundException.forSearch(MeterNotFoundException.java:46)
        at app//io.micrometer.core.instrument.search.RequiredSearch.lambda$getOne$1(RequiredSearch.java:199)
        at [email protected]/java.util.Optional.orElseThrow(Optional.java:403)
        at app//io.micrometer.core.instrument.search.RequiredSearch.getOne(RequiredSearch.java:199)
        at app//io.micrometer.core.instrument.search.RequiredSearch.timer(RequiredSearch.java:120)
        at app//io.micrometer.core.instrument.binder.mongodb.MongoMetricsCommandListenerTest.shouldCreateFailedCommandMetricWithCustomSettings(MongoMetricsCommandListenerTest.java:140)

See #4600 and https://app.circleci.com/pipelines/github/micrometer-metrics/micrometer/5674/workflows/8ce0e4c3-f79f-4e53-b4ff-9615de58cd4b/jobs/28908

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedAn issue that a contributor can help us withtype: taskA general task

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions