• Meir Shpilraien (Spielrein)'s avatar
    Ensure that the function load timeout is disabled during loading from RDB/AOF... · 2ee1bbb5
    Meir Shpilraien (Spielrein) authored
    Ensure that the function load timeout is disabled during loading from RDB/AOF and on replicas. (#12451)
    
    When loading a function from either RDB/AOF or a replica, it is essential not to
    fail on timeout errors. The loading time may vary due to various factors, such as
    hardware specifications or the system's workload during the loading process.
    Once a function has been successfully loaded, it should be allowed to load from
    persistence or on replicas without encountering a timeout failure.
    
    To maintain a clear separation between the engine and Redis internals, the
    implementation refrains from directly checking the state of Redis within the
    engine itself. Instead, the engine receives the desired timeout as part of the
    library creation and duly respects this timeout value. If Redis wishes to disable
    any timeout, it can simply send a value of 0.
    2ee1bbb5
function_lua.c 17.8 KB