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

   ## Description
   
   When a Chinese JDBC build receives Thrift's English `Required field 
'client_protocol' was not present!` diagnostic, it compares the text against a 
translated message and loses the legacy-server compatibility hint. Match this 
protocol text with a locale-independent constant while keeping the resulting 
SQLException localized.
   
   Regression tests cover the legacy diagnostic and a different missing field, 
including preservation of the original cause and transport closure.
   
   ## Validation
   
   - Reproduced the regression with unmodified production code under 
`with-zh-locale`: the new test failed because the compatibility hint was 
missing.
   - Default-locale JDBC unit tests passed.
   - `IoTDBConnectionTest` passed under `with-zh-locale`.
   - Both test runs rebuilt JDBC and its reactor dependencies from clean 
sources with the build cache disabled.
   - Spotless apply passed for both changed Java files.
   
   This PR has:
   - [x] added a comment explaining why the Thrift matching text must remain 
locale independent.
   - [x] added regression tests for the affected error paths.
   


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