So, when I ran this command:
goku@staging:/$ redis-cli -h localhost -p 6380 -n 3 keys *ads_731943*
it give this this output:
1. user_ads_731943_list_1
2. user_ads_731943_list_2
then I did a bulk operation to delete those keys with this command:
goku@staging:/$ redis-cli -h localhost -p 6380 -n 3 keys *ads_731943* | xargs redis-cli -h localhost -p 6380 -n 3 del
But, instead of deleting those 2 keys, i got this as a return:
(integer) 1 --> so, it's only delete 1 key
Then I check again there's still one key exist:
goku@staging:/$ redis-cli -h localhost -p 6380 -n 3 keys *ads_731943*
1. user_ads_731943_list_1
And for the second time i try to delete the key by mentioning it:
goku@staging:/$ redis-cli -h localhost -p 6380 -n 3 del user_ads_731943_list_1
(integer) 1
this last command succeeded to delete the key.
This behaviour were randomly occur in my redis-server, and still I don't have any idea what's wrong with my redis-server.
There's no persistence in my redis-server (8GB RAM), because all "save" lines were commented in configuration.
Can anyone please give me some explanation for this.
Redis server info :
redis_version:2.4.17
redis_git_sha1:00000000
redis_git_dirty:0
arch_bits:64
multiplexing_api:epoll
gcc_version:4.4.3
process_id:16335
run_id:3a69a105b49c35486f290f46ff683394d0c71f92
uptime_in_seconds:1619343
uptime_in_days:18
lru_clock:889562
used_cpu_sys:61456.01
used_cpu_user:35194.92
used_cpu_sys_children:0.00
used_cpu_user_children:0.00
connected_clients:33
connected_slaves:0
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
used_memory:6442434776
used_memory_human:6.00G
used_memory_rss:
7122444288used_memory_peak:
6475945496used_memory_peak_human:6.03G
mem_fragmentation_ratio:1.11
mem_allocator:jemalloc-3.0.0
loading:0
aof_enabled:0
changes_since_last_save:432405357
bgsave_in_progress:0
last_save_time:1349453561
bgrewriteaof_in_progress:0
total_connections_received:413056034
total_commands_processed:1948540740
expired_keys:88729546
evicted_keys:2238634
keyspace_hits:498594280
keyspace_misses:351946662
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
vm_enabled:0
role:master
db0:keys=694894,expires=326692
db3:keys=2079158,expires=419557
regards,
DT