You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/08/14 02:28:17 UTC

[GitHub] [pulsar-client-go] wolfstudy opened a new issue #53: Fatal error: concurrent map writes

wolfstudy opened a new issue #53: Fatal error: concurrent map writes
URL: https://github.com/apache/pulsar-client-go/issues/53
 
 
   #### Expected behavior
   
   The program works fine when we create multiple partitions.
   
   #### Actual behavior
   
   ```
   fatal error: concurrent map writes
   
   goroutine 119 [running]:
   runtime.throw(0x4501a47, 0x15)
   	/usr/local/Cellar/go/1.12.5/libexec/src/runtime/panic.go:617 +0x72 fp=0xc0003dfe88 sp=0xc0003dfe58 pc=0x402fbf2
   runtime.mapassign_fast64(0x4478040, 0xc000277a40, 0x34, 0x0)
   	/usr/local/Cellar/go/1.12.5/libexec/src/runtime/map_fast64.go:101 +0x35f fp=0xc0003dfec8 sp=0xc0003dfe88 pc=0x4013cdf
   github.com/apache/pulsar-client-go/pulsar/internal.(*connection).run(0xc00016e2a0)
   	/Users/wolf4j/github.com/apache/pulsar-client-go/pulsar/internal/connection.go:261 +0x19d fp=0xc0003dffb8 sp=0xc0003dfec8 pc=0x430c55d
   github.com/apache/pulsar-client-go/pulsar/internal.(*connection).start.func1(0xc00016e2a0)
   	/Users/wolf4j/github.com/apache/pulsar-client-go/pulsar/internal/connection.go:146 +0x59 fp=0xc0003dffd8 sp=0xc0003dffb8 pc=0x4311b09
   runtime.goexit()
   	/usr/local/Cellar/go/1.12.5/libexec/src/runtime/asm_amd64.s:1337 +0x1 fp=0xc0003dffe0 sp=0xc0003dffd8 pc=0x405e331
   created by github.com/apache/pulsar-client-go/pulsar/internal.(*connection).start
   	/Users/wolf4j/github.com/apache/pulsar-client-go/pulsar/internal/connection.go:143 +0x3f
   
   goroutine 1 [chan receive]:
   testing.(*T).Run(0xc000466000, 0x45075c9, 0x21, 0x4516718, 0x407cb01)
   	/usr/local/Cellar/go/1.12.5/libexec/src/testing/testing.go:917 +0x381
   testing.runTests.func1(0xc00015e000)
   	/usr/local/Cellar/go/1.12.5/libexec/src/testing/testing.go:1157 +0x78
   testing.tRunner(0xc00015e000, 0xc0000e7e30)
   	/usr/local/Cellar/go/1.12.5/libexec/src/testing/testing.go:865 +0xc0
   testing.runTests(0xc0000cc480, 0x48a7d00, 0x23, 0x23, 0x0)
   	/usr/local/Cellar/go/1.12.5/libexec/src/testing/testing.go:1155 +0x2a9
   testing.(*M).Run(0xc000140000, 0x0)
   	/usr/local/Cellar/go/1.12.5/libexec/src/testing/testing.go:1072 +0x162
   main.main()
   	_testmain.go:110 +0x13e
   
   goroutine 81 [chan receive]:
   github.com/apache/pulsar-client-go/pulsar.newProducer(0xc000222780, 0xc000141480, 0xc0003803f0, 0xc000466100, 0xc000315ef0)
   	/Users/wolf4j/github.com/apache/pulsar-client-go/pulsar/impl_producer.go:92 +0x1e4
   github.com/apache/pulsar-client-go/pulsar.(*client).CreateProducer(0xc000222780, 0x450cf17, 0x2d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
   	/Users/wolf4j/github.com/apache/pulsar-client-go/pulsar/impl_client.go:91 +0x7a
   github.com/apache/pulsar-client-go/pulsar.TestPartitionTopicsConsumerPubSub(0xc000466000)
   	/Users/wolf4j/github.com/apache/pulsar-client-go/pulsar/consumer_test.go:367 +0x277
   testing.tRunner(0xc000466000, 0x4516718)
   	/usr/local/Cellar/go/1.12.5/libexec/src/testing/testing.go:865 +0xc0
   created by testing.(*T).Run
   	/usr/local/Cellar/go/1.12.5/libexec/src/testing/testing.go:916 +0x35a
   ```
   
   #### Steps to reproduce
   
   How can we reproduce the issue
   
   #### System configuration
   **Pulsar version**: x.y
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services