gperinazzo opened a new issue #178: fatal error: concurrent map read and map 
write
URL: https://github.com/apache/pulsar-client-go/issues/178
 
 
   #### Expected behavior
   
   Library should not crash
   
   #### Actual behavior
   
   Library is crashing when trying to access a map:
   ```
   fatal error: concurrent map read and map write
   
   goroutine 21 [running]:
   runtime.throw(0x9a5f36, 0x21)
       /usr/local/go/src/runtime/panic.go:617 +0x72 fp=0xc00d642c10 
sp=0xc00d642be0 pc=0x42d9d2
   runtime.mapaccess2_fast64(0x8f0000, 0xc00072c1e0, 0x1463, 0xc0134a2000, 
0xc00d642cd8)
       /usr/local/go/src/runtime/map_fast64.go:61 +0x1c2 fp=0xc00d642c38 
sp=0xc00d642c10 pc=0x412782
   
github.com/apache/pulsar-client-go/pulsar/internal.(*connection).handleSendReceipt(0xc00076c120,
 0xc013dda4c0)
       
/go/pkg/mod/github.com/apache/[email protected]/pulsar/internal/connection.go:512
 +0x81 fp=0xc00d642de8 sp=0xc00d642c38 pc=0x6e8d41
   
github.com/apache/pulsar-client-go/pulsar/internal.(*connection).internalReceivedCommand(0xc00076c120,
 0xc015ea8c40, 0x0, 0x0)
       
/go/pkg/mod/github.com/apache/[email protected]/pulsar/internal/connection.go:436
 +0x1d7 fp=0xc00d642e70 sp=0xc00d642de8 pc=0x6e8207
   
github.com/apache/pulsar-client-go/pulsar/internal.(*connection).run(0xc00076c120)
       
/go/pkg/mod/github.com/apache/[email protected]/pulsar/internal/connection.go:325
 +0x304 fp=0xc00d642fb8 sp=0xc00d642e70 pc=0x6e7744
   
github.com/apache/pulsar-client-go/pulsar/internal.(*connection).start.func1(0xc00076c120)
       
/go/pkg/mod/github.com/apache/[email protected]/pulsar/internal/connection.go:195
 +0x59 fp=0xc00d642fd8 sp=0xc00d642fb8 pc=0x6ee9c9
   runtime.goexit()
       /usr/local/go/src/runtime/asm_amd64.s:1337 +0x1 fp=0xc00d642fe0 
sp=0xc00d642fd8 pc=0x459f71
   created by 
github.com/apache/pulsar-client-go/pulsar/internal.(*connection).start
       
/go/pkg/mod/github.com/apache/[email protected]/pulsar/internal/connection.go:192
 +0x3f
   ```
   
   #### Steps to reproduce
   
   Happens when trying to create a lot of producers while sending a lot of 
messages
   
   #### System configuration
   **Pulsar version**: 2.5.0
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to