Closed lukefung777 closed 3 years ago
WARNING: DATA RACE Read at 0x00c000429660 by goroutine 73: github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(BatchConsumer).Add() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:163 +0x43c github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(TDAnalytics).add() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/thinkingdata.go:202 +0x554 github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(TDAnalytics).track() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/thinkingdata.go:108 +0x54f github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(TDAnalytics).Track() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/thinkingdata.go:82 +0x18e
Previous write at 0x00c000429660 by goroutine 18: github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(*BatchConsumer).Flush() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:197 +0xaa8 github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.initBatchConsumer.func1() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:151 +0x12f
Goroutine 18 (running) created at: github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.initBatchConsumer() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:146 +0x8e5 github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.NewBatchConsumerWithConfig() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:90 +0x109
1.4.2已解决
WARNING: DATA RACE Read at 0x00c000429660 by goroutine 73: github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(BatchConsumer).Add() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:163 +0x43c github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(TDAnalytics).add() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/thinkingdata.go:202 +0x554 github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(TDAnalytics).track() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/thinkingdata.go:108 +0x54f github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(TDAnalytics).Track() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/thinkingdata.go:82 +0x18e
Previous write at 0x00c000429660 by goroutine 18: github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.(*BatchConsumer).Flush() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:197 +0xaa8 github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.initBatchConsumer.func1() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:151 +0x12f
Goroutine 18 (running) created at: github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.initBatchConsumer() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:146 +0x8e5 github.com/ThinkingDataAnalytics/go-sdk/thinkingdata.NewBatchConsumerWithConfig() C:/Server/vendor/github.com/ThinkingDataAnalytics/go-sdk/thinkingdata/consumer_batch.go:90 +0x109