Updated on 2026-11-09 GMT+08:00

Lock Management

In Aura, LakeFormation central locks are used to ensure correctness when multiple compute nodes concurrently write to the same table. This section introduces parameters primarily governing the behavior of LakeFormation central locks.

Parameter Description

Table 1 Lock management parameters

Parameter

Type

Description

fq_lflock_wait_timeout

Integer

Definition: Controls the maximum waiting time for obtaining a lock. If the waiting time for obtaining a lock exceeds the specified value, the system reports an error.

Range: An integer ranging from 0 to INT_MAX, in milliseconds. If the value is 0, the lock can be requested only once. If the request fails, the system reports an error and does not try again.

Default Value: 30s.

fq_lflock_heartbeat_timeout

Integer

Definition: Specifies the maximum timeout interval for lock heartbeat failures.

  • To maintain the survival of the LakeFormation central lock, the system continuously sends lock heartbeats to LakeFormation during the lock holding period. When the lock heartbeat fails to be sent, the system does not report an error immediately but retries continuously. If the lock heartbeat still fails to be sent within the maximum timeout interval, the system reports an error.
  • The automatic lock release time of LakeFormation is 60s when it does not receive lock heartbeats. In normal cases, the system sends heartbeats to LakeFormation at an interval of 30s. Therefore, if this parameter is set to a value less than 30s, the system reports an error when the first heartbeat fails to be sent. If this parameter is set to a value greater than 60s, the system may lose the lock when it is disconnected from LakeFormation for a long time. If you do not want to lose the lock when the system is disconnected from LakeFormation for a long time, set this parameter to a value less than 60s, or ensure that concurrent writes to the same table are not performed within the interval specified by this parameter.

Range: An integer ranging from 0 to INT_MAX, in milliseconds.

Default Value: 5 min.