Server status collector fails in test

Description

User Impact

The CI pipeline is failing due to failure for ServerStatus collector in MongoDB exporter. As a result, no change can be merged in MongoDB exporter, unless force merged.

This has brought all PRs to a halt till this issue is resolved.

Steps to Reproduce

Create a PR with an empty commit to trigger CI pipeline in MongoDB exporter Github project.

Actual result

Pipeline fails for TestServerStatusDataCollector test.

Expected result

Pipeline should pass with no test failure.

Workaround

PRs can be merged to codebase by users with force merge privileges.

Details

In CI pipeline, metric generation for server status collector of MongoDB fails. Following error message can be seen in test logs:

This is because MongoDB exporter currently doesn't support generating metrics out of histogram response. Whenever it encounters a histogram, it generates duplicate metrics, which causes collectors to fail.

How to test

None

How to document

None

Smart Checklist

Activity

Show:

shashank.sinha August 18, 2022 at 9:42 AM

Fixed in v0.35.0 for MongoDB exporter.

shashank.sinha August 18, 2022 at 8:36 AM

Based on discussion with , dead code will be removed.

shashank.sinha August 8, 2022 at 8:37 AM

Based on further investigation with , we found that issue is caused by dead code in MongoDB exporter.

Need to check with team if we need to remove dead code or integrate functionality back in exporter.

Aaditya Dubey July 20, 2022 at 12:46 PM

Hi  ,

Thank you for the report.
Looks like it is based on linked improvements so marking this ticket as OPEN.

Done

Details

Assignee

Reporter

Priority

Components

Needs QA

No

Needs Doc

No

Story Points

Found by Automation

Yes

Smart Checklist

Created July 7, 2022 at 11:06 AM
Updated March 6, 2024 at 1:00 AM
Resolved August 18, 2022 at 9:42 AM