Vertica DB 抛出不可用:查询的启动器锁定 - 锁定失败:X 锁定超时
Vertica DB throwing Unavailable: initiator locks for query - Locking failure: Timed out X locking
我在尝试 运行 客户端应用程序 运行 查询 vertica 数据库 table.
时反复收到此错误
有人可以帮助解决这个问题吗?
我想知道您的客户端应用程序将哪种 "queries" 发送到 Vertica(READ COMMITTED 模式下的 SELECT 运行 不需要锁)。
无论如何...第一步,检查 who/what 是否正在使用您的锁:
select * from locks ;
然后从会话中检查 session_id。
现在您可以:
选项 1:稍等
选项 2 关闭会话:select close_session('<session_id>') ;
选项3在配置参数中增加锁定超时
选项 4 ... 取决于 what/why 正在使用您的锁 ...
这不是我的答案,但它修复了错误:
See the LockTimeout configuration parameter:
select * from configuration_parameters where parameter_name =
'LockTimeout';
Note that it says to change it only under the guidance of support :-)
I don't recall if there's a way to say wait forever, but I also
wouldn't recommend doing that. Sometimes you really do want it to
timeout, especially when you do something silly or just don't expect
what's happening to be happening.
--Sharon
我在尝试 运行 客户端应用程序 运行 查询 vertica 数据库 table.
时反复收到此错误有人可以帮助解决这个问题吗?
我想知道您的客户端应用程序将哪种 "queries" 发送到 Vertica(READ COMMITTED 模式下的 SELECT 运行 不需要锁)。
无论如何...第一步,检查 who/what 是否正在使用您的锁:
select * from locks ;
然后从会话中检查 session_id。
现在您可以:
选项 1:稍等
选项 2 关闭会话:select close_session('<session_id>') ;
选项3在配置参数中增加锁定超时
选项 4 ... 取决于 what/why 正在使用您的锁 ...
这不是我的答案,但它修复了错误:
See the LockTimeout configuration parameter:
select * from configuration_parameters where parameter_name = 'LockTimeout';
Note that it says to change it only under the guidance of support :-) I don't recall if there's a way to say wait forever, but I also wouldn't recommend doing that. Sometimes you really do want it to timeout, especially when you do something silly or just don't expect what's happening to be happening.
--Sharon