radix: Investigating error when unmarshal failed

Hi, I just migrate our Redis library to latest Radix commit. We had an issue today while the cluster is changing. I’m sorry I couldn’t get detailed logs since changing cluster is the other team’s role. Below is the code where the error occurred.

var result []int
err := cluster.Do(radix.Cmd(&result, "HKEYS", key))
if err != nil {
	return nil, err
}
return result, err

The error messages we could get were three kinds. “can’t unmarshal into *[]int”, “cannot decode redis array into int”, “unknown type prefix ‘0’”. This occurs while cluster failover and I’m not sure why this kind of errors occurs. This issue resolved after we restart our server to re-connect Redis server. It might be better if we could know the exact result from the Redis for investigating this issue.

This also might be a clue. (error from redis)

-MASTERDOWN Link with MASTER is down and slave-serve-stale-data is set to 'no'.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 35 (33 by maintainers)

Most upvoted comments

woot! @kimtree thanks for sticking with us and doing all that debugging 😃