v.21.12Improvements

Fix Debug and Release Server Errors from Bad HDFS URL

Fix abort in debug server and DB::Exception: std::out_of_range: basic_string error in release server in case of bad hdfs url by adding additional check of hdfs url structure. #31042 (Kruglov Pavel).
Fix abort crashes and DB::Exception: std::out_of_range: basic_string errors caused by malformed HDFS URLs through additional validation of the HDFS URL structure.

Why it matters

This feature addresses stability issues in ClickHouse when connecting to HDFS with invalid URLs. By adding an extra validation check for the HDFS URL structure, it prevents server aborts in debug mode and runtime exceptions in release mode, improving robustness and reliability when using HDFS integrations.

How to use it

No user action is required. The fix automatically validates HDFS URLs internally during server operations, ensuring that malformed URLs do not cause crashes or exceptions.