cornelk opened a new pull request #215: [Issue 213] Fix data race when 
accessing partition producer state
URL: https://github.com/apache/pulsar-client-go/pull/215
 
 
   Fixes #213 
   
   ### Motivation
   
   Panic due to a race condition.
   
   ### Modifications
   
   - access to `state` of `partitionProducer` is using atomic operations now to 
be thread-safe 
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   - `go test -race -count 100 -v -run 'TestDLQ$' .` does not panic anymore
   
   This change is already covered by existing tests, such as `TestDLQ`.
   
   ### Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (no)
   

----------------------------------------------------------------
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