redis version:3.0.6 error info: [root@iZwz98p616e5852b58oeicZ redis-7001]# src/redis-cli -h 127.0.0.1 -p 7001 -c --bigkeys

Scanning the entire keyspace to find biggest keys as well as

average sizes per key type. You can use -i 0.1 to sleep 0.1 sec

per 100 SCAN commands (not usually needed).

[00.00%] Biggest string found so far '5972ab3c-b57b-44f7-aa38-e65884e20d36_toke_name_2' with 38 bytes [00.00%] Biggest string found so far 'mdtx.session_38022802FAACBD94385C56736574978D' with 162 bytes [00.00%] Biggest set found so far 'spring:session:expirations:1494400140000' with 1 members [00.00%] Biggest hash found so far 'spring:session:sessions:1a5f24a2-d971-473d-aaf0-b0a3dade8858' with 4 fields [00.00%] Biggest set found so far 'spring:session:index:org.springframework.session.FindByIndexNameSessionRepository.PRINCIPAL_NAME_INDEX_NAME:zhengzhenzhen' with 2 members [16.13%] Biggest set found so far 'investProjectsList:pageSizeSet' with 3 members [16.13%] Biggest hash found so far 'spring:session:sessions:5e5411ec-fc15-4cfc-9933-a9362b6f7e67' with 5 fields [16.13%] Biggest string found so far 'mdtx.session_78A21F6711379AB04A03EAAE9ABEA5B6' with 182 bytes [16.13%] Biggest zset found so far 'demoInfo~keys' with 4 members Invalid reply type (6) for TYPE on key '

                                     [root@iZwz98p616e5852b58oeicZ redis-7001]#

[root@iZwz98p616e5852b58oeicZ redis-7001]# [root@iZwz98p616e5852b58oeicZ redis-7001]#

Comment From: badboy

reply type 6 is an error reply. There are only a few reasons for this to happen when executing TYPE, like Redis is loading from a dump or a slave is serving stale data.

redis-cli should probably handle this more gracefully.

Comment From: tonyfighter

But the same error when I shutdown all slave

Comment From: antirez

This was even hard to trigger :-) Since normally it fails during the DBSIZE call at startup, or often in the SCAN call. However I can trigger it. Fixing... thanks for reporting.

Comment From: itcuihao

Hi, Is this problem solved?

reids version : redis-cli 3.2.8

Invalid reply type (6) for TYPE on key

Comment From: dpheyu

Hi, Is this problem solved?

reids version : redis-cli 3.2.8

Invalid reply type (6) for TYPE on key

not really,still exists in 5.0.4