Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix][Producer] Stop block request even if Value and Payload are both…
… set (#1052) ### Motivation Currently, if `!p.options.DisableBlockIfQueueFull` and `msg.Value != nil && msg.Payload != nil`, request will be blocked forever 'cause `defer request.stopBlock()` is set up after the verify logic. ```go if msg.Value != nil && msg.Payload != nil { p.log.Error("Can not set Value and Payload both") runCallback(request.callback, nil, request.msg, errors.New("can not set Value and Payload both")) return } // The block chan must be closed when returned with exception defer request.stopBlock() ``` Here is the PR to stop block request even if Value and Payload are both set ### Modifications - pulsar/producer_partition.go --------- Co-authored-by: gunli <gunli@tencent.com>
- Loading branch information