cortex
cortex copied to clipboard
CI Job Fails: Test_Ingester_ModeHandler & Data Race in Memberlist Test
Description: The CI job failed during the execution of the tests. Specifically, two failures were encountered:
-
Test Failure:
- Test:
Test_Ingester_ModeHandler - Trace: The test
Test_Ingester_ModeHandlerfailed with the following error messages:-
instance localhost:0 in state PENDING -
this instance owns no tokens
-
These errors suggest that the test could not correctly handle the state or token ownership for the
ingester. - Test:
-
Data Race Detected:
- Test:
TestRejoininmemberlist_client_test.go - Error: A data race was detected during the execution of the
TestRejoinfunction in theKV memberlistimplementation. This data race affects thednsProviderMock.Resolve()andKV.discoverMembers()functions.
- Test:
Logs:
- Full log available in the CI run: https://github.com/cortexproject/cortex/actions/runs/10984054033/attempts/1?pr=6226
- Relevant log snippets:
-
Error Trace: /__w/cortex/cortex/pkg/ingester/ingester_test.go:5321 -
Received unexpected error: instance localhost:0 in state PENDING -
WARNING: DATA RACE -
race detected during execution of test
-
Steps to Reproduce:
- Run the CI job using
make BUILD_IN_CONTAINER=false test. - Observe the failure during the execution of
Test_Ingester_ModeHandler. - A data race is observed in the
TestRejointest.
Expected Behavior:
- The tests should pass without errors, and there should be no data race conditions during execution.
Actual Behavior:
- Tests failed with errors related to the ingester mode handler and data race in the memberlist client tests.
Environment:
- Docker container used in the build.
- Go version: 1.22.7
Priority: High
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions.