ByConity: DB::Exception: Cannot read all marks from file xxx/xxx/data, eof: 0, buffer size: 6866, file size: 176688: While executing MergeTreeThread SQLSTATE: 22000.
I was just using ClickHouse official’s Star Schema Benchmark to test the ByConity. When I tried to create a big flat table lineorder_flat (about 40 columns) by INNER JOIN 4 tables (the biggest table has about 600 million rows), I got this exception:
Received exception from server (version 21.8.7): Code: 33. DB::Exception: Received from 127.0.0.1:56871. DB::Exception: Received from 127.0.0.1:53749. DB::Exception: Received from 127.0.0.1:41655. DB::Exception: Cannot read all marks from file c1133162-7809-4269-8ad5-41243831e384/1996_439329587933478912_439330151713472512_2_439330217603104768_0/data, eof: 0, buffer size: 6866, file size: 176688: While executing MergeTreeThread SQLSTATE: 22000.
It seems to be a memory issue. I have not seen this error before when using ClickHouse. I assume this is a new error added to ByConity? Is this a problem with the HDFS related configuations or do I need to configure several ByConity settings correctly?
Thank you very much.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 34 (5 by maintainers)
Commits related to this issue
- Merge pull request #80 from xxisxuxu/xxisxuxu-patch-2 Xxisxuxu patch 2 — committed to janplus/ByConity by WillemJiang a year ago
@xiaomo728 Can you pull the latest version, this issue is fixed.
@canhld94 Hi, the logs of
Code: 49, e.displayText() = DB::Exception: Not a Valid Block SQLSTATE: HY000 (version 21.8.7.1)exception caused byCREATE STATS IF NOT EXISTS ALLare as following:(
xxis just my file path)I tried to execute this SQL many times, but all of them ended up with this exception and never finished.
Thank you guys so many valuable helps! I will keep giving feedback about ByConity to this community.
Hi @dmthuc , thank you very much! It works!
Hi @xiaomo728 , I just notice that you have to change permission and owner of the new folder to
foundationdb. After you do that, remove all new log. Stop foundationdb service withsystemctl stop foundationdb.service, the copy log again then start foundationdb service again withsystemctl start foundationdb.service@hustnn Yes, I think I have solved that. I just re-installed the fdb. Many thx.
Hi @xiaomo728 thank you for trying Byconity. We can reproduce this issue and will fix it asap, will let you know soon.
In addition, can I have some questions:
How’re you deploy Byconity? We’re continuously merge new performance optimizations, so it’s recommended to use latest version for performance testing. If you’re using docker/k8s deployment, let me update the newest image version.
Specially for SSB testing, I have some recommendations: a. Before creating flat table, let’s build the statistic of the table. This allow our CBO to work more efficient, and the join performance will be much better. To build statistic for all table (for example, your tables are in database
ssb100), you can run: (1)use ssb100, then (2)create stats if not exists all. This will create statistics for all tables in current database. Note that the second query will take a while, but you only need to run it once 😃 b. While creating flat table, let’sset enable_optimizer=1to use CBO c. In addition to flat queries, you can also test the Star Schema queries (JOIN queries) to compare with original Clickhouse (hint: it’s an order of magnitude faster, and use much less memory)