Open pkoosha opened 6 months ago
I was able to create MySQL and influxDB connections as the other databases supported by the application. I think there is something wrong here with clickhouse.
Hi @pkoosha, thank you for reporting an issue! What are library and ClickHouse versions? On what platform do you run an app?
I also get this crash in wsl Ubuntu22,04
I also get this crash in wsl Ubuntu22,04
It's my problem.The library is compiled by gcc,but my project is compiled by clang
Hi,
TL;DR: I am getting bad_alloc error when creating clickhouse connections on a node that used to run clickhouse fine.
I have clickhouse-cpp and clickhouse-server set up on a centOS node with the following OS:
uname -a Linux fpga01.cluster 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
I have been able to run my client application to connect to the clickhouse. However, after restarting the application I am getting the following error:[clickhouse_create_tables] host: localhost, user : myuser, password: thepassword, dbname: mydb, pool_size: 8 [ClickHouseConnectionPool] creating clickhosue connection for pool : 0 out of 8 terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted
I believe there is something wrong with clickhouse-cpp here. I can run the application on a new node with similar specs. I tried restarting the clickhouse-server and the issue still persists.
When I check the node memory I see enough free memory available.
free -h total used free shared buff/cache available Mem: 125G 11G 101G 924M 12G 112G Swap: 3.7G 0B 3.7G
Here is the code snippet that is creating the database connections, I do not see connection 1 establishing :