python delete(key) couchbase 导致超时
python delete(key) couchbase causing time out
我正在从 couchbase 存储桶中删除密钥。但这会导致超时,但 get(key) 始终有效。
default_connection=couchbase_service.get_default_connection()
default_connection.delete(key)
异常
[Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout]
_TimeoutError_0x17 (generated, catch TimeoutError): <Key=u'foo', RC=0x17[Client-
Side timeout exceeded for operation. Inspect network conditions or increase the
timeout], Operational Error, Results=1, C Source=(src/multiresult.c,282)>
是否与key
的值完全相同?
根据您的部署,您可能在磁盘上有一些项目需要更长的时间来检索,而在内存中有一些项目。默认超时时间是 2.5 秒,这很长,但您的磁盘实际上可能很慢。
我没有足够的信息,但目前我猜这可能是原因。
一个可能查看更多信息的工具是 turn up logging。
我正在从 couchbase 存储桶中删除密钥。但这会导致超时,但 get(key) 始终有效。
default_connection=couchbase_service.get_default_connection()
default_connection.delete(key)
异常
[Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout]
_TimeoutError_0x17 (generated, catch TimeoutError): <Key=u'foo', RC=0x17[Client-
Side timeout exceeded for operation. Inspect network conditions or increase the
timeout], Operational Error, Results=1, C Source=(src/multiresult.c,282)>
是否与key
的值完全相同?
根据您的部署,您可能在磁盘上有一些项目需要更长的时间来检索,而在内存中有一些项目。默认超时时间是 2.5 秒,这很长,但您的磁盘实际上可能很慢。
我没有足够的信息,但目前我猜这可能是原因。
一个可能查看更多信息的工具是 turn up logging。