WJSGDBZ opened a new pull request, #2306:
URL: https://github.com/apache/incubator-pegasus/pull/2306

   ### What problem does this PR solve? <!--add issue link with summary if 
exists-->
   add dns resolution support
   
   ### What is changed and how does it work?
   When the Pegasus operation times out, it will attempt to fetch the topology 
from meta. If all meta servers fail to respond, it will try to re-resolve the 
DNS to obtain new IP addresses.
   
   ### Checklist <!--REMOVE the items that are not applicable-->
   
   ##### Tests <!-- At least one of them must be included. -->
   
   - Manual test (add detailed scripts or steps below)
   In local tests, the meta addresses can be successfully re-resolved
   ```
   2025-10-16 14:51:00 [134627073400832] [WARNING] pgclient.py:86 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34803), failure: [Failure 
instance: Traceback (failure with no frames): <class 
'twisted.internet.defer.CancelledError'>: 
   ]
   2025-10-16 14:51:00 [134627073400832] [WARNING] pgclient.py:92 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34803), time: 2.0 s, timeout
   2025-10-16 14:51:01 [134627073400832] [INFO] pgclient.py:829 table: 
CL11020_test_python_metaproxy, checking meta ...
   2025-10-16 14:51:02 [134627073400832] [WARNING] pgclient.py:86 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34803), failure: [Failure 
instance: Traceback (failure with no frames): <class 
'twisted.internet.defer.CancelledError'>: 
   ]
   2025-10-16 14:51:02 [134627073400832] [WARNING] pgclient.py:92 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34803), time: 2.0 s, timeout
   2025-10-16 14:51:03 [134627073400832] [INFO] pgclient.py:829 table: 
CL11020_test_python_metaproxy, checking meta ...
   2025-10-16 14:51:04 [134627073400832] [WARNING] pgclient.py:86 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34802), failure: [Failure 
instance: Traceback (failure with no frames): <class 
'twisted.internet.defer.CancelledError'>: 
   ]
   2025-10-16 14:51:04 [134627073400832] [WARNING] pgclient.py:92 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34802), time: 2.0 s, timeout
   2025-10-16 14:51:05 [134627073400832] [INFO] pgclient.py:829 table: 
CL11020_test_python_metaproxy, checking meta ...
   2025-10-16 14:51:06 [134627073400832] [WARNING] pgclient.py:86 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34802), failure: [Failure 
instance: Traceback (failure with no frames): <class 
'twisted.internet.defer.CancelledError'>: 
   ]
   2025-10-16 14:51:06 [134627073400832] [WARNING] pgclient.py:92 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34802), time: 2.0 s, timeout
   2025-10-16 14:51:07 [134627073400832] [INFO] pgclient.py:829 table: 
CL11020_test_python_metaproxy, checking meta ...
   2025-10-16 14:51:08 [134627073400832] [WARNING] pgclient.py:86 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34802), failure: [Failure 
instance: Traceback (failure with no frames): <class 
'twisted.internet.defer.CancelledError'>: 
   ]
   2025-10-16 14:51:08 [134627073400832] [WARNING] pgclient.py:92 peer: 
IPv4Address(type='TCP', host='10.255.255.254', port=34802), time: 2.0 s, timeout
   2025-10-16 14:51:09 [134627073400832] [INFO] pgclient.py:829 table: 
CL11020_test_python_metaproxy, checking meta ...
   2025-10-16 14:51:09 [134627073400832] [ERROR] pgclient.py:236 table: 
CL11020_test_python_metaproxy, connect err: [Failure instance: Traceback 
(failure with no frames): <class 
'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by 
other side: 111: Connection refused.
   ]
   2025-10-16 14:51:09 [134627073400832] [ERROR] pgclient.py:236 table: 
CL11020_test_python_metaproxy, connect err: [Failure instance: Traceback 
(failure with no frames): <class 
'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by 
other side: 111: Connection refused.
   ]
   2025-10-16 14:51:09 [134627073400832] [ERROR] pgclient.py:236 table: 
CL11020_test_python_metaproxy, connect err: [Failure instance: Traceback 
(failure with no frames): <class 
'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by 
other side: 111: Connection refused.
   ]
   2025-10-16 14:51:09 [134627073400832] [INFO] pgclient.py:375 resolved 
hostname xxxxxxx to IP type:host_port_types.kHostTypeIpv4, addr:['xx.xx.xx.xx']
   2025-10-16 14:51:09 [134627073400832] [INFO] pgclient.py:389 removed stale 
server: 127.0.0.1:34602
   2025-10-16 14:51:09 [134627073400832] [INFO] pgclient.py:389 removed stale 
server: 127.0.0.1:34603
   2025-10-16 14:51:09 [134627073400832] [INFO] pgclient.py:389 removed stale 
server: 127.0.0.1:34601
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to