[BUG] data race #115

Closed
opened 2024-02-08 08:23:29 +03:00 by vtolstov · 0 comments
Owner
==================
WARNING: DATA RACE
Write at 0x000003375a30 by goroutine 237:
  go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Init()
      /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:78 +0x7de
  go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Clone()
      /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:39 +0x35b
  go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Fields()
      /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:149 +0xa4
  gitlab.fortebank.com/api-gateway/apigw/internal/handler.(*HTTPHandlerSwapper).Subscriber()
      /build/internal/handler/handler.go:236 +0x569
  gitlab.fortebank.com/api-gateway/apigw/internal/handler.(*HTTPHandlerSwapper).Subscriber-fm()
      <autogenerated>:1 +0x4d
  go.unistack.org/micro-broker-kgo/v3.(*consumer).consume()
      /root/go/pkg/mod/go.unistack.org/micro-broker-kgo/v3@v3.8.7/subscriber.go:210 +0xff6
  go.unistack.org/micro-broker-kgo/v3.(*subscriber).assigned.func1()
      /root/go/pkg/mod/go.unistack.org/micro-broker-kgo/v3@v3.8.7/subscriber.go:150 +0x39

Previous read at 0x000003375a30 by goroutine 301342:
  github.com/rs/zerolog.callerHook.Run()
      /root/go/pkg/mod/github.com/rs/zerolog@v1.31.0/context.go:399 +0x44
  github.com/rs/zerolog.(*callerHook).Run()
      <autogenerated>:1 +0x7a
  github.com/rs/zerolog.(*Event).msg()
      /root/go/pkg/mod/github.com/rs/zerolog@v1.31.0/event.go:143 +0x113
  github.com/rs/zerolog.(*Event).Msgf()
      /root/go/pkg/mod/github.com/rs/zerolog@v1.31.0/event.go:131 +0x7c
  go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Logf()
      /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:222 +0x191
  go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Debugf()
      /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:195 +0x93
  gitlab.fortebank.com/api-gateway/apigw/internal/handler.forwardClientToBackend.func2()
      /build/internal/handler/grpc.go:444 +0x322
``` ================== WARNING: DATA RACE Write at 0x000003375a30 by goroutine 237: go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Init() /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:78 +0x7de go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Clone() /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:39 +0x35b go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Fields() /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:149 +0xa4 gitlab.fortebank.com/api-gateway/apigw/internal/handler.(*HTTPHandlerSwapper).Subscriber() /build/internal/handler/handler.go:236 +0x569 gitlab.fortebank.com/api-gateway/apigw/internal/handler.(*HTTPHandlerSwapper).Subscriber-fm() <autogenerated>:1 +0x4d go.unistack.org/micro-broker-kgo/v3.(*consumer).consume() /root/go/pkg/mod/go.unistack.org/micro-broker-kgo/v3@v3.8.7/subscriber.go:210 +0xff6 go.unistack.org/micro-broker-kgo/v3.(*subscriber).assigned.func1() /root/go/pkg/mod/go.unistack.org/micro-broker-kgo/v3@v3.8.7/subscriber.go:150 +0x39 Previous read at 0x000003375a30 by goroutine 301342: github.com/rs/zerolog.callerHook.Run() /root/go/pkg/mod/github.com/rs/zerolog@v1.31.0/context.go:399 +0x44 github.com/rs/zerolog.(*callerHook).Run() <autogenerated>:1 +0x7a github.com/rs/zerolog.(*Event).msg() /root/go/pkg/mod/github.com/rs/zerolog@v1.31.0/event.go:143 +0x113 github.com/rs/zerolog.(*Event).Msgf() /root/go/pkg/mod/github.com/rs/zerolog@v1.31.0/event.go:131 +0x7c go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Logf() /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:222 +0x191 go.unistack.org/micro-logger-zerolog/v3.(*zeroLogger).Debugf() /root/go/pkg/mod/go.unistack.org/micro-logger-zerolog/v3@v3.8.4/zerolog.go:195 +0x93 gitlab.fortebank.com/api-gateway/apigw/internal/handler.forwardClientToBackend.func2() /build/internal/handler/grpc.go:444 +0x322 ```
Sign in to join this conversation.
No description provided.