HTHou opened a new pull request, #18162:
URL: https://github.com/apache/iotdb/pull/18162

   ## Description
   
   This PR improves IPv6 endpoint handling across IoTDB by centralizing 
endpoint formatting/parsing and using bracketed IPv6 URLs where a port is 
appended.
   
   - Add `[ipv6]:port` formatting/parsing in shared `UrlUtils`, while keeping 
legacy naked IPv6 endpoint strings such as `::1:10710` readable.
   - Reuse the shared endpoint formatter in Ratis peer addresses, node URL 
utilities, Session/JDBC clients, pipe sink displays, metrics URLs, and 
integration-test environment helpers.
   - Add Python Session and AINode parsing/formatting support for bracketed 
IPv6 endpoints.
   - Add regression tests for bracketed IPv6 URLs and malformed inputs like 
`[::1]6667`, `[::1]:`, and `[::1:6667`.
   
   ## Tests
   
   - `mvn test -pl 
iotdb-client/service-rpc,iotdb-client/jdbc,iotdb-client/session -am 
-Dtest=UrlUtilsTest,UtilsTest,SessionUtilsTest 
-Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false`
   - `mvn test -pl iotdb-core/node-commons -am -Dtest=NodeUrlUtilsTest 
-Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false`
   - `mvn test -pl iotdb-core/consensus -am -Dtest=UtilsTest 
-Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false`
   - `mvn test-compile -pl integration-test -am -P with-integration-tests 
-DskipTests`
   - `cd iotdb-client/client-py && python3 -m pytest 
tests/unit/test_session_node_url.py`
   - `python3 -m black --check iotdb-client/client-py/iotdb/Session.py 
iotdb-client/client-py/tests/unit/test_session_node_url.py 
iotdb-core/ainode/iotdb/ainode/core/config.py 
iotdb-core/ainode/iotdb/ainode/core/ingress/iotdb.py`
   - `PYTHONPATH=/tmp/codex-isort-6.0.1 python3 -m isort --profile black 
--check-only iotdb-client/client-py/iotdb/Session.py 
iotdb-client/client-py/tests/unit/test_session_node_url.py 
iotdb-core/ainode/iotdb/ainode/core/config.py 
iotdb-core/ainode/iotdb/ainode/core/ingress/iotdb.py`
   - `python3 -m py_compile iotdb-core/ainode/iotdb/ainode/core/config.py 
iotdb-core/ainode/iotdb/ainode/core/ingress/iotdb.py`
   - `git diff --check`
   


-- 
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]

Reply via email to