Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sst not found during compaction #775

Closed
zouxiang1993 opened this issue Mar 27, 2023 · 2 comments
Closed

sst not found during compaction #775

zouxiang1993 opened this issue Mar 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@zouxiang1993
Copy link
Contributor

Describe this problem

I create a partition table and write points to it. Then I execute a query and it fails with the response:

{"code":500,"message":"Failed to handle request, err:Failed to execute interpreter, query:\nselect count(*) from perflog\n, err:Failed to execute select, err:Failed to execute logical plan, err:Failed to collect record batch stream, err:Stream error, msg:convert from arrow record batch, err:External error: Stream error, msg:poll read response failed, err:Failed to query from table in server, table_ident:TableIdentifier { catalog: \"ceresdb\", schema: \"public\", table: \"__perflog_95\" }, code:500, msg:record batch failed. Caused by: Stream error, msg:read record batch, err:Failed to read data from the sub iterator, err:PullRecordBatch { source: DecodeRecordBatch { source: ParquetError { source: General(\"Failed to fetch ranges from object store, err:Object at location /data/ceresdb/store/0/96/182.sst not found: No such file or directory (os error 2)\"), backtrace:"}

I retry the query after a few seconds and it success.
There is no useful information in the server log.

It seems that the sst has been removed during compaction but the query gets the expired version.

Server version

CeresDB Server
CeresDB version: 1.0.0
Git branch: main
Git commit: 95ea870
Build time: 2023-03-06T03:30:09.845055021Z
Rustc version: 1.69.0-nightly

Steps to reproduce

None

Expected behavior

No response

Additional Information

No response

@zouxiang1993 zouxiang1993 added the bug Something isn't working label Mar 27, 2023
@chunshao90
Copy link
Contributor

#699 has fixed this issue.

@ShiKaiWi
Copy link
Member

@zouxiang1993 If you want to use the latest ceresdb server, the nightly image may be a good choice: https://github.com/CeresDB/ceresdb/pkgs/container/ceresdb-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants