MCPcopy
hub / github.com/IBM/sarama / RefreshCoordinator

Method RefreshCoordinator

client.go:622–637  ·  view source on GitHub ↗
(consumerGroup string)

Source from the content-addressed store, hash-verified

620}
621
622func (client *client) RefreshCoordinator(consumerGroup string) error {
623 if client.Closed() {
624 return ErrClosedClient
625 }
626
627 response, err := client.findCoordinator(consumerGroup, CoordinatorGroup, client.conf.Metadata.Retry.Max)
628 if err != nil {
629 return err
630 }
631
632 client.lock.Lock()
633 defer client.lock.Unlock()
634 client.registerBroker(response.Coordinator)
635 client.coordinators[consumerGroup] = response.Coordinator.ID()
636 return nil
637}
638
639func (client *client) TransactionCoordinator(transactionID string) (*Broker, error) {
640 if client.Closed() {

Callers 1

CoordinatorMethod · 0.95

Calls 4

ClosedMethod · 0.95
findCoordinatorMethod · 0.95
registerBrokerMethod · 0.95
IDMethod · 0.80

Tested by

no test coverage detected