Skip to content

Large keys seem to crash Valkey-admin #196

@madolson

Description

@madolson

If you create a single large item, and then try to click on it, there is a chance that it will just hang and crash:

Script to fill the node:

cat > /tmp/create_large_hash.sh << 'EOF'
#!/bin/bash
echo "Creating hash with 5 million items..."
echo "This will take a few minutes..."

# Use pipeline for better performance
for i in $(seq 0 49); do
  echo "Batch $((i+1))/50 (100k items)..."
  (
    for j in $(seq 1 100000); do
      field_num=$((i * 100000 + j))
      echo "HSET large_hash field_${field_num} value_${field_num}"
    done
  ) | valkey-cli -a testing --pipe 2>/dev/null
done

echo "Done! Checking hash size..."
valkey-cli -a testing HLEN large_hash 2>/dev/null
EOF
chmod +x /tmp/create_large_hash.sh
/tmp/create_large_hash.sh

It seems like we are doing an HGETALL.

Sad_Valkey_admin_low.mov

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions