Skip to content

[TEST-FAILURE] Hash is skipped when all fields are expired during RDB load on primary #3254

Description

@hanxizh9910

Summary

The test fails with the error Expected '0' to be equal to '1' (context: type eval line 22 cmd {assert_equal 0 [r EXISTS myhash]} proc ::test)

Test Suite Job: [test-ubuntu-32bit]

Failing test(s)

Error stack trace

[err]: Hash is skipped when all fields are expired during RDB load on primary in tests/unit/hashexpire.tcl
Expected '0' to be equal to '1' (context: type eval line 22 cmd {assert_equal 0 [r EXISTS myhash]} proc ::test)

===== Start of server log (pid 34197) =====

[ok]: RESTORE loads expired hash fields (108 ms)
### Starting server for test 
34197:M 25 Feb 2026 00:27:18.738 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
34197:M 25 Feb 2026 00:27:18.738 * oO0OoO0OoO0Oo Valkey is starting oO0OoO0OoO0Oo
34197:M 25 Feb 2026 00:27:18.738 * Valkey version=255.255.255, bits=32, commit=1ee434e6, modified=0, pid=34197, just started
34197:M 25 Feb 2026 00:27:18.738 * Configuration loaded
34197:M 25 Feb 2026 00:27:18.748 * monotonic clock: POSIX clock_gettime
34197:M 25 Feb 2026 00:27:18.749 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now.
34197:M 25 Feb 2026 00:27:18.749 # Failed to write PID file: Permission denied
                .+^+.                                                
            .+#########+.                                            
        .+########+########+.           Valkey 255.255.255 (1ee434e6/0) 32 bit
    .+########+'     '+########+.                                    
 .########+'     .+.     '+########.    Running in standalone mode
 |####+'     .+#######+.     '+####|    Port: 27642
 |###|   .+###############+.   |###|    PID: 34197                     
 |###|   |#####*'' ''*#####|   |###|                                 
 |###|   |####'  .-.  '####|   |###|                                 
 |###|   |###(  (@@@)  )###|   |###|          https://valkey.io/      
 |###|   |####.  '-'  .####|   |###|                                 
 |###|   |#####*.   .*#####|   |###|                                 
 |###|   '+#####|   |#####+'   |###|                                 
 |####+.     +##|   |#+'     .+####|                                 
 '#######+   |##|        .+########'                                 
    '+###|   |##|    .+########+'                                    
        '|   |####+########+'                                        
             +#########+'                                            
                '+v+'                                                

34197:M 25 Feb 2026 00:27:18.754 * Module 'lua' loaded from libvalkeylua.so
34197:M 25 Feb 2026 00:27:18.754 * Server initialized
34197:M 25 Feb 2026 00:27:18.754 * Ready to accept connections tcp
34197:M 25 Feb 2026 00:27:18.754 * Ready to accept connections unix
34197:M 25 Feb 2026 00:27:18.848 - Accepted 127.0.0.1:42995
34197:M 25 Feb 2026 00:27:18.855 - Client closed connection id=3 addr=127.0.0.1:42995 laddr=127.0.0.1:27642 fd=10 name= age=0 idle=0 flags=N capa= db=0 sub=0 psub=0 ssub=0 multi=-1 watch=0 qbuf=0 qbuf-free=20474 argv-mem=0 multi-mem=0 rbs=16384 rbp=16384 obl=0 oll=0 omem=0 tot-mem=37248 events=r cmd=ping user=default redir=-1 resp=2 lib-name= lib-ver= tot-net-in=7 tot-net-out=7 tot-cmds=1
34197:M 25 Feb 2026 00:27:18.863 - Accepted 127.0.0.1:35787
### Starting test Hash is skipped when all fields are expired during RDB load on primary in tests/unit/hashexpire.tcl
34197:M 25 Feb 2026 00:27:18.971 * DB saved on disk
34197:M 25 Feb 2026 00:27:18.971 * Cleaning slot migration log in anticipation of a load operation.
34197:M 25 Feb 2026 00:27:18.971 * RDB signature and version check passed. Flushing old data
34197:M 25 Feb 2026 00:27:18.972 * Loading RDB produced by Valkey version 255.255.255
34197:M 25 Feb 2026 00:27:18.972 * RDB age 0 seconds
34197:M 25 Feb 2026 00:27:18.972 * RDB memory usage when created 0.84 Mb
34197:M 25 Feb 2026 00:27:18.972 * Done loading RDB, keys loaded: 1, keys expired: 0, all fields expired hashes: 0.
34197:M 25 Feb 2026 00:27:18.972 * DB reloaded by DEBUG RELOAD
### Starting test RESTORE loads expired hash fields in tests/unit/hashexpire.tcl
===== End of server log (pid 34197) =====

Metadata

Metadata

Assignees

No one assigned

    Labels

    test-failureAn issue indicating a test failure

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions