ClickHouse/programs/library-bridge
alex filatov bafd9773bc
fix Unknown library method 'extDict_libClone'
We have an issue when using external dictionary. Occasionally library bridge called with extDict_libClone and fails with Unknown library method 'extDict_libClone'. And it looks like it is because of at some point `else if (method == "extDict_libNew")` was changed to  if (lib_new) with no handling for extDict_libClone inside this new if else statement and reporing an error that extDict_libClone is an unknown method.

So there is a two-line fix to handle extDict_libClone properly.

Error logs that we have:

```
2022.12.16 14:17:44.285088 [ 393573 ] {} <Error> ExternalDictionaries: Could not update cache dictionary 'dict.vhash_s', next update is scheduled at 2022-12-16 14:18:00: Code: 86. DB::Exception: Received error from remote server /extdict_request?version=1&dictionary_id=be2b2cd1-ba57-4658-8d1b-35ef40ab005b&method=extDict_libClone&from_dictionary_id=c3537142-eaa9-4deb-9b65-47eb8ea1dee6. HTTP status code: 500 Internal Server Error, body: Unknown library method 'extDict_libClone'
2022.12.16 14:17:44.387049 [ 399133 ] {} <Error> ExternalDictionaries: Could not update cache dictionary 'dict.vhash_s', next update is scheduled at 2022-12-16 14:17:51: Code: 86. DB::Exception: Received error from remote server /extdict_request?version=1&dictionary_id=0df866ac-6c94-4974-a76c-3940522091b9&method=extDict_libClone&from_dictionary_id=c3537142-eaa9-4deb-9b65-47eb8ea1dee6. HTTP status code: 500 Internal Server Error, body: Unknown library method 'extDict_libClone'
2022.12.16 14:17:44.488468 [ 397769 ] {} <Error> ExternalDictionaries: Could not update cache dictionary 'dict.vhash_s', next update is scheduled at 2022-12-16 14:19:38: Code: 86. DB::Exception: Received error from remote server /extdict_request?version=1&dictionary_id=2d8af321-b669-4526-982b-42c0fabf0e8d&method=extDict_libClone&from_dictionary_id=c3537142-eaa9-4deb-9b65-47eb8ea1dee6. HTTP status code: 500 Internal Server Error, body: Unknown library method 'extDict_libClone'
2022.12.16 14:17:44.489935 [ 398226 ] {datamarts_v_dwh_node0032-241534:0x552da2_1_11} <Error> executeQuery: Code: 510. DB::Exception: Update failed for dictionary 'dict.vhash_s': Code: 510. DB::Exception: Update failed for dictionary dict.vhash_s : Code: 86. DB::Exception: Received error from remote server /extdict_request?version=1&dictionary_id=be2b2cd1-ba57-4658-8d1b-35ef40ab005b&method=extDict_libClone&from_dictionary_id=c3537142-eaa9-4deb-9b65-47eb8ea1dee6. HTTP status code: 500 Internal Server Error, body: Unknown library method 'extDict_libClone'
```
2023-03-02 15:53:09 +03:00
..
CatBoostLibraryAPI.h feat: implement catboost in library-bridge 2022-09-08 09:01:32 +00:00
CatBoostLibraryHandler.cpp fix 2023-01-24 15:29:19 +01:00
CatBoostLibraryHandler.h Remove dlopen 2022-09-17 03:02:34 +02:00
CatBoostLibraryHandlerFactory.cpp fix: incorporate review comments 2022-09-14 15:21:24 +00:00
CatBoostLibraryHandlerFactory.h fix: incorporate review comments 2022-09-14 15:21:24 +00:00
CMakeLists.txt Remove dlopen 2022-09-17 03:02:34 +02:00
ExternalDictionaryLibraryAPI.cpp Prepare library-bridge for catboost integration 2022-08-04 19:26:51 +00:00
ExternalDictionaryLibraryAPI.h Prepare library-bridge for catboost integration 2022-08-04 19:26:51 +00:00
ExternalDictionaryLibraryHandler.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
ExternalDictionaryLibraryHandler.h Remove dlopen 2022-09-17 03:02:34 +02:00
ExternalDictionaryLibraryHandlerFactory.cpp feat: implement catboost in library-bridge 2022-09-08 09:01:32 +00:00
ExternalDictionaryLibraryHandlerFactory.h feat: implement catboost in library-bridge 2022-09-08 09:01:32 +00:00
ExternalDictionaryLibraryUtils.h Less use of CH-specific bit_cast() 2022-11-04 15:52:48 +00:00
library-bridge.cpp Prepare library-bridge for catboost integration 2022-08-04 19:26:51 +00:00
LibraryBridge.cpp Prepare library-bridge for catboost integration 2022-08-04 19:26:51 +00:00
LibraryBridge.h Prepare library-bridge for catboost integration 2022-08-04 19:26:51 +00:00
LibraryBridgeHandlerFactory.cpp feat: implement catboost in library-bridge 2022-09-08 09:01:32 +00:00
LibraryBridgeHandlerFactory.h Prepare library-bridge for catboost integration 2022-08-04 19:26:51 +00:00
LibraryBridgeHandlers.cpp fix Unknown library method 'extDict_libClone' 2023-03-02 15:53:09 +03:00
LibraryBridgeHandlers.h chore: restore SYSTEM RELOAD MODEL(S) and moniting view SYSTEM.MODELS 2022-09-12 19:33:02 +00:00
SharedLibrary.cpp Remove dlopen 2022-09-17 03:02:34 +02:00
SharedLibrary.h Remove dlopen 2022-09-17 03:02:34 +02:00