This commit is contained in:
Chris Lu 2019-11-27 03:08:24 -08:00
parent c260ab457f
commit 67e5f5b558
2 changed files with 3 additions and 3 deletions

View file

@ -64,12 +64,12 @@ var cmdMount = &Command{
func parseFilerGrpcAddress(filer string) (filerGrpcAddress string, err error) { func parseFilerGrpcAddress(filer string) (filerGrpcAddress string, err error) {
hostnameAndPort := strings.Split(filer, ":") hostnameAndPort := strings.Split(filer, ":")
if len(hostnameAndPort) != 2 { if len(hostnameAndPort) != 2 {
return "", fmt.Errorf("The filer should have hostname:port format: %v", hostnameAndPort) return "", fmt.Errorf("filer should have hostname:port format: %v", hostnameAndPort)
} }
filerPort, parseErr := strconv.ParseUint(hostnameAndPort[1], 10, 64) filerPort, parseErr := strconv.ParseUint(hostnameAndPort[1], 10, 64)
if parseErr != nil { if parseErr != nil {
return "", fmt.Errorf("The filer filer port parse error: %v", parseErr) return "", fmt.Errorf("filer port parse error: %v", parseErr)
} }
filerGrpcPort := int(filerPort) + 10000 filerGrpcPort := int(filerPort) + 10000

View file

@ -76,7 +76,7 @@ func (k *KafkaQueue) handleError() {
for { for {
err := <-k.producer.Errors() err := <-k.producer.Errors()
if err != nil { if err != nil {
glog.Errorf("producer message error, partition:%d offset:%d key:%v valus:%s error(%v) topic:%s", err.Msg.Partition, err.Msg.Offset, err.Msg.Key, err.Msg.Value, err.Err, k.topic) glog.Errorf("producer message error, partition:%d offset:%d key:%v value:%s error(%v) topic:%s", err.Msg.Partition, err.Msg.Offset, err.Msg.Key, err.Msg.Value, err.Err, k.topic)
} }
} }
} }