Skip to content

[test]: panic: Log in goroutine after ... has completed: Starting main loop #4576

Closed

Description

What happened?

panic: Log in goroutine after ... has completed: Starting main loop

Steps to reproduce

Not Applicable

Expected behavior

There is a possibility that the goroutine is not finished when Close is called since there is no waitGroup that is waiting for the c.logger.Info("Starting main loop") to be done executing before the application is shutdown

Relevant log output

panic: Log in goroutine after ... has completed:  Starting main loop

goroutine 39 [running]:
testing.(*common).logDepth(0xc00052bd40, {0xc0001b95f0, 0x30}, 0x3)
        GOROOT/src/testing/testing.go:1003 +0x4e7
testing.(*common).log(...)
        GOROOT/src/testing/testing.go:985
testing.(*common).Logf(0xc00052bd40, {0x5e4ddb?, 0x14aceb7?}, {0xc0000401c0?, 0xffffffffffffffff?, 0x31?})
        GOROOT/src/testing/testing.go:1036 +0x5a
go.uber.org/zap/zaptest.testingWriter.Write({{0x8eecf0?, 0xc00052bd40?}, 0x0?}, {0xc000241400?, 0x31, 0xc0000401b0?})
        external/org_uber_go_zap/zaptest/logger.go:130 +0xe6
go.uber.org/zap/zapcore.(*ioCore).Write(0xc0001cd860, {0x0, {0xc1233bb7a60da4ca, 0x1863da2, 0x2bf1e00}, {0x0, 0x0}, {0x5fa77a, 0x12}, {0x0, ...}, ...}, ...)
        external/org_uber_go_zap/zapcore/core.go:99 +0xb5
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0001b71e0, {0x0, 0x0, 0x0})
        external/org_uber_go_zap/zapcore/entry.go:255 +0x1d9
go.uber.org/zap.(*Logger).Info(0x0?, {0x5fa77a?, 0x0?}, {0x0, 0x0, 0x0})
        external/org_uber_go_zap/logger.go:220 +0x59
github.com/jaegertracing/jaeger/cmd/ingester/app/consumer.(*Consumer).Start.func1()
        external/com_github_jaegertracing_jaeger/cmd/ingester/app/consumer/consumer.go:79 +0x4b
created by github.com/jaegertracing/jaeger/cmd/ingester/app/consumer.(*Consumer).Start
        external/com_github_jaegertracing_jaeger/cmd/ingester/app/consumer/consumer.go:78 +0x6a

Screenshot

No response

Additional context

No response

Jaeger backend version

No response

SDK

No response

Pipeline

No response

Stogage backend

No response

Operating system

No response

Deployment model

No response

Deployment configs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedFeatures that maintainers are willing to accept but do not have cycles to implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions