wuxibin89 / redis-go-cluster

redis cluster client implementation in Go
Apache License 2.0
488 stars 145 forks source link

example1.go error #7

Closed klights closed 8 years ago

klights commented 8 years ago

-get mykey3500000: ECONNTIMEOUT -get mykey3800000: ECONNTIMEOUT -get mykey3200000: ECONNTIMEOUT -get mykey1500000: ECONNTIMEOUT -get mykey1300000: ECONNTIMEOUT -get mykey3700000: ECONNTIMEOUT -get mykey3900000: ECONNTIMEOUT -get mykey3600000: ECONNTIMEOUT -get mykey1200000: ECONNTIMEOUT

wuxibin89 commented 8 years ago

Replace redis host:port in example1.go and have a retry :)

klights commented 8 years ago

I had replaced the host:port. set is ok, get occured errors above.

klights commented 8 years ago

@chasex I found the reason of the get error, it was the wrong host I specified when I created the cluster. But why the command "set" did not raised error ? The log is below: -set mykey0: -get mykey0: ECONNTIMEOUT

wuxibin89 commented 8 years ago

Yes, that's a hidden bug. I push a commit to fix it. Please fetch the latest code and have a try.

klights commented 8 years ago

It's ok now.Thanks