python log :
[2023-09-12 10:21:54.496] [806432,806432] [debug] 160ms, Using nameserver: 127.0.0.53
[2023-09-12 10:21:54.500] [806432,806432] [debug] 3ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/07c0e1-c025-584f-d48b-dfab28854536df/plain/-] <192.168.10.138:11210> attempt to establish MCBP connection
[2023-09-12 10:21:54.500] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/07c0e1-c025-584f-d48b-dfab28854536df/plain/-] <192.168.10.138:11210> connecting to 192.168.10.138:11210, timeout=50000ms
[2023-09-12 10:21:54.507] [806432,806433] [debug] 6ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/07c0e1-c025-584f-d48b-dfab28854536df/plain/-] <192.168.10.138:11210> connected to 192.168.10.138:11210
[2023-09-12 10:21:54.507] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/07c0e1-c025-584f-d48b-dfab28854536df/plain/-] <192.168.10.138/192.168.10.138:11210> user_agent={"a":"cxx/1.0.0/adc416d;Linux/x86_64;pycbc/4.1.6 (python/3.10.12)","i":"976b47-94fe-1749-ab1a-c5984d33c65ca1/07c0e1-c025-584f-d48b-dfab28854536df"}, requested_features=[tcp_nodelay, xattr, xerror, select_bucket, json, duplex, alt_request_support, tracing, sync_replication, vattr, collections, subdoc_create_as_deleted, preserve_ttl, unordered_execution, mutation_seqno]
[2023-09-12 10:21:54.510] [806432,806433] [debug] 2ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/07c0e1-c025-584f-d48b-dfab28854536df/plain/-] <192.168.10.138/192.168.10.138:11210> supported_features=[tcp_nodelay, mutation_seqno, xattr, xerror, select_bucket, json, duplex, unordered_execution, tracing, alt_request_support, sync_replication, collections, preserve_ttl, vattr, subdoc_create_as_deleted]
[2023-09-12 10:21:54.528] [806432,806433] [debug] 18ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/07c0e1-c025-584f-d48b-dfab28854536df/plain/-] <192.168.10.138/192.168.10.138:11210> detected network is "default"
[2023-09-12 10:21:54.528] [806432,806433] [debug] 0ms, PYCBC: create conn callback completed
[2023-09-12 10:21:54.529] [806432,806432] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/88332a-a45a-7942-e771-6196e6cb000fef/plain/demo] <192.168.10.138:11210> attempt to establish MCBP connection
[2023-09-12 10:21:54.531] [806432,806433] [debug] 1ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/88332a-a45a-7942-e771-6196e6cb000fef/plain/demo] <192.168.10.138:11210> connecting to 192.168.10.138:11210, timeout=50000ms
[2023-09-12 10:21:54.531] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/88332a-a45a-7942-e771-6196e6cb000fef/plain/demo] <192.168.10.138:11210> connected to 192.168.10.138:11210
[2023-09-12 10:21:54.531] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/88332a-a45a-7942-e771-6196e6cb000fef/plain/demo] <192.168.10.138/192.168.10.138:11210> user_agent={"a":"cxx/1.0.0/adc416d;Linux/x86_64;pycbc/4.1.6 (python/3.10.12)","i":"976b47-94fe-1749-ab1a-c5984d33c65ca1/88332a-a45a-7942-e771-6196e6cb000fef"}, requested_features=[tcp_nodelay, xattr, xerror, select_bucket, json, duplex, alt_request_support, tracing, sync_replication, vattr, collections, subdoc_create_as_deleted, preserve_ttl, unordered_execution, mutation_seqno]
[2023-09-12 10:21:54.532] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/88332a-a45a-7942-e771-6196e6cb000fef/plain/demo] <192.168.10.138/192.168.10.138:11210> supported_features=[tcp_nodelay, mutation_seqno, xattr, xerror, select_bucket, json, duplex, unordered_execution, tracing, alt_request_support, sync_replication, collections, preserve_ttl, vattr, subdoc_create_as_deleted]
[2023-09-12 10:21:54.541] [806432,806433] [debug] 9ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/88332a-a45a-7942-e771-6196e6cb000fef/plain/demo] <192.168.10.138/192.168.10.138:11210> selected bucket: demo
[2023-09-12 10:21:54.546] [806432,806433] [debug] 4ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/demo] initialize configuration rev=1:90703
[2023-09-12 10:21:54.548] [806432,806433] [debug] 1ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/demo] rev=1:90703, add session="2ddf94-0923-ce47-a42f-30c81b4528399d", address="192.168.10.131:11210", index=0
[2023-09-12 10:21:54.549] [806432,806433] [debug] 1ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/2ddf94-0923-ce47-a42f-30c81b4528399d/plain/demo] <192.168.10.131:11210> attempt to establish MCBP connection
[2023-09-12 10:21:54.550] [806432,806433] [debug] 1ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/demo] rev=1:90703, add session="a80cab-a1c9-0f4c-695d-26c163d2b61779", address="192.168.10.135:11210", index=1
[2023-09-12 10:21:54.552] [806432,806433] [debug] 1ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/a80cab-a1c9-0f4c-695d-26c163d2b61779/plain/demo] <192.168.10.135:11210> attempt to establish MCBP connection
[2023-09-12 10:21:54.553] [806432,806433] [debug] 1ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/demo] rev=1:90703, add session="d8f4f6-6b9f-254f-3877-44180aeaba61e3", address="192.168.10.137:11210", index=2
[2023-09-12 10:21:54.553] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/d8f4f6-6b9f-254f-3877-44180aeaba61e3/plain/demo] <192.168.10.137:11210> attempt to establish MCBP connection
[2023-09-12 10:21:54.554] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/demo] rev=1:90703, preserve session="88332a-a45a-7942-e771-6196e6cb000fef", address="192.168.10.138:11210", index=3->3
[2023-09-12 10:21:54.555] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/demo] rev=1:90703, add session="62937e-7967-aa49-e8b6-560b84e9ff58d6", address="192.168.10.139:11210", index=4
[2023-09-12 10:21:54.555] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/62937e-7967-aa49-e8b6-560b84e9ff58d6/plain/demo] <192.168.10.139:11210> attempt to establish MCBP connection
[2023-09-12 10:21:54.555] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/2ddf94-0923-ce47-a42f-30c81b4528399d/plain/demo] <192.168.10.131:11210> connecting to 192.168.10.131:11210, timeout=50000ms
[2023-09-12 10:21:54.556] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/a80cab-a1c9-0f4c-695d-26c163d2b61779/plain/demo] <192.168.10.135:11210> connecting to 192.168.10.135:11210, timeout=50000ms
[2023-09-12 10:21:54.556] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/d8f4f6-6b9f-254f-3877-44180aeaba61e3/plain/demo] <192.168.10.137:11210> connecting to 192.168.10.137:11210, timeout=50000ms
[2023-09-12 10:21:54.557] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/62937e-7967-aa49-e8b6-560b84e9ff58d6/plain/demo] <192.168.10.139:11210> connecting to 192.168.10.139:11210, timeout=50000ms
[2023-09-12 10:21:54.559] [806432,806433] [debug] 1ms, PYCBC: open/close bucket callback completed
[2023-09-12 10:21:54.561] [806432,806432] [debug] 2ms, QUERY: client_context_id="601d4a-28d9-6a48-21fe-e5ae302213eea3", prep=false, "SELECT META(c).id AS k,{c.custid,c.name,c.phone, c.email, c.birthday} FROM demo.test.customer AS c JOIN demo.test.orders AS i on i.custid = c.custid JOIN demo.test.address AS ad ON c.zipcode = ad.zipcode JOIN demo.test.orders_detail AS od ON od.orderno = i.orderno", options={"client_context_id":"601d4a-28d9-6a48-21fe-e5ae302213eea3","metrics":false,"query_context":"`demo`.`test`","timeout":"74500ms"}
[2023-09-12 10:21:54.562] [806432,806433] [debug] 1ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/e7dcf9-bcc7-d342-f613-cc61993847b9b2] connecting to 192.168.10.140:8093, timeout=50000ms
[2023-09-12 10:21:54.563] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/2ddf94-0923-ce47-a42f-30c81b4528399d/plain/demo] <192.168.10.131:11210> connected to 192.168.10.131:11210
[2023-09-12 10:21:54.564] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/2ddf94-0923-ce47-a42f-30c81b4528399d/plain/demo] <192.168.10.131/192.168.10.131:11210> user_agent={"a":"cxx/1.0.0/adc416d;Linux/x86_64;pycbc/4.1.6 (python/3.10.12)","i":"976b47-94fe-1749-ab1a-c5984d33c65ca1/2ddf94-0923-ce47-a42f-30c81b4528399d"}, requested_features=[tcp_nodelay, xattr, xerror, select_bucket, json, duplex, alt_request_support, tracing, sync_replication, vattr, collections, subdoc_create_as_deleted, preserve_ttl, unordered_execution, mutation_seqno]
[2023-09-12 10:21:54.564] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/a80cab-a1c9-0f4c-695d-26c163d2b61779/plain/demo] <192.168.10.135:11210> connected to 192.168.10.135:11210
[2023-09-12 10:21:54.564] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/a80cab-a1c9-0f4c-695d-26c163d2b61779/plain/demo] <192.168.10.135/192.168.10.135:11210> user_agent={"a":"cxx/1.0.0/adc416d;Linux/x86_64;pycbc/4.1.6 (python/3.10.12)","i":"976b47-94fe-1749-ab1a-c5984d33c65ca1/a80cab-a1c9-0f4c-695d-26c163d2b61779"}, requested_features=[tcp_nodelay, xattr, xerror, select_bucket, json, duplex, alt_request_support, tracing, sync_replication, vattr, collections, subdoc_create_as_deleted, preserve_ttl, unordered_execution, mutation_seqno]
[2023-09-12 10:21:54.564] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/d8f4f6-6b9f-254f-3877-44180aeaba61e3/plain/demo] <192.168.10.137:11210> connected to 192.168.10.137:11210
[2023-09-12 10:21:54.564] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/d8f4f6-6b9f-254f-3877-44180aeaba61e3/plain/demo] <192.168.10.137/192.168.10.137:11210> user_agent={"a":"cxx/1.0.0/adc416d;Linux/x86_64;pycbc/4.1.6 (python/3.10.12)","i":"976b47-94fe-1749-ab1a-c5984d33c65ca1/d8f4f6-6b9f-254f-3877-44180aeaba61e3"}, requested_features=[tcp_nodelay, xattr, xerror, select_bucket, json, duplex, alt_request_support, tracing, sync_replication, vattr, collections, subdoc_create_as_deleted, preserve_ttl, unordered_execution, mutation_seqno]
[2023-09-12 10:21:54.564] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/62937e-7967-aa49-e8b6-560b84e9ff58d6/plain/demo] <192.168.10.139:11210> connected to 192.168.10.139:11210
[2023-09-12 10:21:54.565] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/62937e-7967-aa49-e8b6-560b84e9ff58d6/plain/demo] <192.168.10.139/192.168.10.139:11210> user_agent={"a":"cxx/1.0.0/adc416d;Linux/x86_64;pycbc/4.1.6 (python/3.10.12)","i":"976b47-94fe-1749-ab1a-c5984d33c65ca1/62937e-7967-aa49-e8b6-560b84e9ff58d6"}, requested_features=[tcp_nodelay, xattr, xerror, select_bucket, json, duplex, alt_request_support, tracing, sync_replication, vattr, collections, subdoc_create_as_deleted, preserve_ttl, unordered_execution, mutation_seqno]
[2023-09-12 10:21:54.566] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/e7dcf9-bcc7-d342-f613-cc61993847b9b2] connected to 192.168.10.140:8093
[2023-09-12 10:21:54.567] [806432,806433] [debug] 1ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/2ddf94-0923-ce47-a42f-30c81b4528399d/plain/demo] <192.168.10.131/192.168.10.131:11210> supported_features=[tcp_nodelay, mutation_seqno, xattr, xerror, select_bucket, json, duplex, unordered_execution, tracing, alt_request_support, sync_replication, collections, preserve_ttl, vattr, subdoc_create_as_deleted]
[2023-09-12 10:21:54.574] [806432,806433] [debug] 6ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/d8f4f6-6b9f-254f-3877-44180aeaba61e3/plain/demo] <192.168.10.137/192.168.10.137:11210> supported_features=[tcp_nodelay, mutation_seqno, xattr, xerror, select_bucket, json, duplex, unordered_execution, tracing, alt_request_support, sync_replication, collections, preserve_ttl, vattr, subdoc_create_as_deleted]
[2023-09-12 10:21:54.579] [806432,806433] [debug] 4ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/62937e-7967-aa49-e8b6-560b84e9ff58d6/plain/demo] <192.168.10.139/192.168.10.139:11210> supported_features=[tcp_nodelay, mutation_seqno, xattr, xerror, select_bucket, json, duplex, unordered_execution, tracing, alt_request_support, sync_replication, collections, preserve_ttl, vattr, subdoc_create_as_deleted]
[2023-09-12 10:21:54.584] [806432,806433] [debug] 5ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/a80cab-a1c9-0f4c-695d-26c163d2b61779/plain/demo] <192.168.10.135/192.168.10.135:11210> supported_features=[tcp_nodelay, mutation_seqno, xattr, xerror, select_bucket, json, duplex, unordered_execution, tracing, alt_request_support, sync_replication, collections, preserve_ttl, vattr, subdoc_create_as_deleted]
[2023-09-12 10:21:54.590] [806432,806433] [debug] 5ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/d8f4f6-6b9f-254f-3877-44180aeaba61e3/plain/demo] <192.168.10.137/192.168.10.137:11210> selected bucket: demo
[2023-09-12 10:21:54.592] [806432,806433] [debug] 1ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/2ddf94-0923-ce47-a42f-30c81b4528399d/plain/demo] <192.168.10.131/192.168.10.131:11210> selected bucket: demo
[2023-09-12 10:21:54.593] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/62937e-7967-aa49-e8b6-560b84e9ff58d6/plain/demo] <192.168.10.139/192.168.10.139:11210> selected bucket: demo
[2023-09-12 10:21:54.598] [806432,806433] [debug] 4ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/a80cab-a1c9-0f4c-695d-26c163d2b61779/plain/demo] <192.168.10.135/192.168.10.135:11210> selected bucket: demo
[2023-09-12 10:23:09.088] [806432,806433] [debug] 74490ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/e7dcf9-bcc7-d342-f613-cc61993847b9b2] <192.168.10.140:8093> put HTTP session back to idle connections
Traceback (most recent call last):
File "/home/time.py", line 66, in <module>
timeout_test()
File "/home/time.py", line 58, in timeout_test
for row in result.rows():
File "/usr/local/lib/python3.10/dist-packages/couchbase/n1ql.py", line 90, in __next__
raise ex
File "/usr/local/lib/python3.10/dist-packages/couchbase/n1ql.py", line 84, in __next__
return self._get_next_row()
File "/usr/local/lib/python3.10/dist-packages/couchbase/n1ql.py", line 75, in _get_next_row
raise ErrorMapper.build_exception(row)
couchbase.exceptions.UnAmbiguousTimeoutException: UnAmbiguousTimeoutException(<ec=14, category=couchbase.common, message=unambiguous_timeout (14), context=QueryErrorContext({'last_dispatched_to': '192.168.10.140:8093', 'last_dispatched_from': '192.168.10.137:37550', 'retry_attempts': 0, 'client_context_id': '601d4a-28d9-6a48-21fe-e5ae302213eea3', 'method': 'POST', 'path': '/query/service', 'http_status': 200, 'http_body': '{\n"requestID": "93589c94-bf1c-4d28-ac42-a44ae73a9507",\n"clientContextID": "601d4a-28d9-6a48-21fe-e5ae302213eea3",\n"signature": {"$1":"object","k":"json"},\n"results": [\n],\n"errors": [{"code":1080,"msg":"Timeout 1m14.5s exceeded","retry":true}],\n"status": "timeout"\n}\n', 'first_error_code': 1080, 'first_error_message': 'Timeout 1m14.5s exceeded', 'statement': 'SELECT META(c).id AS k,{c.custid,c.name,c.phone, c.email, c.birthday} FROM demo.test.customer AS c JOIN demo.test.orders AS i on i.custid = c.custid JOIN demo.test.address AS ad ON c.zipcode = ad.zipcode JOIN demo.test.orders_detail AS od ON od.orderno = i.orderno', 'parameters': '{"client_context_id":"601d4a-28d9-6a48-21fe-e5ae302213eea3","metrics":false,"query_context":"`demo`.`test`","statement":"SELECT META(c).id AS k,{c.custid,c.name,c.phone, c.email, c.birthday} FROM demo.test.customer AS c JOIN demo.test.orders AS i on i.custid = c.custid JOIN demo.test.address AS ad ON c.zipcode = ad.zipcode JOIN demo.test.orders_detail AS od ON od.orderno = i.orderno","timeout":"74500ms"}', 'context_type': 'QueryErrorContext'}), C Source=/home/ec2-user/workspace/python/sdk/python-packaging-pipeline/py-client/src/n1ql.cxx:297>)
[2023-09-12 10:23:09.494] [806432,806432] [debug] 405ms, PYCBC: exception_base_dealloc completed
[2023-09-12 10:23:09.506] [806432,806432] [debug] 12ms, dealloc transaction_config
[2023-09-12 10:23:09.507] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/07c0e1-c025-584f-d48b-dfab28854536df/plain/-] <192.168.10.138/192.168.10.138:11210> stop MCBP connection, reason=do_not_retry
[2023-09-12 10:23:09.507] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/2ddf94-0923-ce47-a42f-30c81b4528399d/plain/demo] <192.168.10.131/192.168.10.131:11210> stop MCBP connection, reason=do_not_retry
[2023-09-12 10:23:09.508] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/a80cab-a1c9-0f4c-695d-26c163d2b61779/plain/demo] <192.168.10.135/192.168.10.135:11210> stop MCBP connection, reason=do_not_retry
[2023-09-12 10:23:09.508] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/d8f4f6-6b9f-254f-3877-44180aeaba61e3/plain/demo] <192.168.10.137/192.168.10.137:11210> stop MCBP connection, reason=do_not_retry
[2023-09-12 10:23:09.508] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/88332a-a45a-7942-e771-6196e6cb000fef/plain/demo] <192.168.10.138/192.168.10.138:11210> stop MCBP connection, reason=do_not_retry
[2023-09-12 10:23:09.509] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/62937e-7967-aa49-e8b6-560b84e9ff58d6/plain/demo] <192.168.10.139/192.168.10.139:11210> stop MCBP connection, reason=do_not_retry
[2023-09-12 10:23:09.510] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/07c0e1-c025-584f-d48b-dfab28854536df/plain/-] <192.168.10.138/192.168.10.138:11210> destroy MCBP connection
[2023-09-12 10:23:09.510] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/2ddf94-0923-ce47-a42f-30c81b4528399d/plain/demo] <192.168.10.131/192.168.10.131:11210> destroy MCBP connection
[2023-09-12 10:23:09.511] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/a80cab-a1c9-0f4c-695d-26c163d2b61779/plain/demo] <192.168.10.135/192.168.10.135:11210> destroy MCBP connection
[2023-09-12 10:23:09.511] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/d8f4f6-6b9f-254f-3877-44180aeaba61e3/plain/demo] <192.168.10.137/192.168.10.137:11210> destroy MCBP connection
[2023-09-12 10:23:09.512] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/88332a-a45a-7942-e771-6196e6cb000fef/plain/demo] <192.168.10.138/192.168.10.138:11210> destroy MCBP connection
[2023-09-12 10:23:09.512] [806432,806433] [debug] 0ms, [976b47-94fe-1749-ab1a-c5984d33c65ca1/62937e-7967-aa49-e8b6-560b84e9ff58d6/plain/demo] <192.168.10.139/192.168.10.139:11210> destroy MCBP connection
[2023-09-12 10:23:09.513] [806432,806432] [debug] 0ms, PYCBC: dealloc_conn completed
[2023-09-12 10:23:09.514] [806432,806432] [warning] 0ms, Operations over threshold: {"count":1,"service":"query","top":[{"last_local_id":"e7dcf9-bcc7-d342-f613-cc61993847b9b2","last_local_socket":"192.168.10.137:37550","last_operation_id":"601d4a-28d9-6a48-21fe-e5ae302213eea3","last_remote_socket":"192.168.10.140:8093","operation_name":"cb.query","total_duration_us":74518355}]}
[2023-09-12 10:23:09.515] [806432,806432] [debug] 1ms, dealloc transaction_query_options
python script :
from datetime import timedelta
# these modules are used to access and authenticate with your database cluster:
from couchbase.auth import PasswordAuthenticator
from couchbase.cluster import Cluster
# needed for options -- cluster, timeout, SQL++ (N1QL) query, etc.
from couchbase.options import (ClusterOptions, ClusterTimeoutOptions, QueryOptions)
# Update this to your cluster
username = "Administrator"
password = "password"
bucket_name = "demo"
auth = PasswordAuthenticator(
username,
password,
)
timeout_options = ClusterTimeoutOptions(connect_timeout=timedelta(seconds=50),kv_timeout=timedelta(seconds=50),query_timeout=timedelta(seconds=5))
cluster = Cluster('couchbase://192.168.10.138', options)
cb = cluster.bucket(bucket_name)
cb_coll = cb.scope("test").collection("test")
# Get a reference to the default collection, required for older Couchbase server versions
cb_coll_default = cb.default_collection()
test_scope = cb.scope('test')
def timeout_test():
# query = "select count(*) as Cnt from comp_test.test.test"
query = "SELECT META(c).id AS k,{c.custid,c.name,c.phone, c.email, c.birthday} FROM demo.test.customer AS c JOIN demo.test.orders AS i on i.custid = c.custid JOIN demo.test.address AS ad ON c.zipcode = ad.zipcode JOIN demo.test.orders_detail AS od ON od.orderno = i.orderno"
result = test_scope.query(query)
for row in result.rows():
print("Found row: {}".format(row))
No = row['Cnt'] + 1
print('No:', No)
timeout_test()