-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Validate tsfiles after compaction #10146
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
Conversation
| CompactionValidator validator = CompactionValidator.getInstance(); | ||
| if (!validator.validateCompaction( | ||
| tsFileManager, targetTsFileList, storageGroupName, timePartition)) { | ||
| LOGGER.error( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add more logs to illustrate why the validation is false.
| } | ||
|
|
||
| @Override | ||
| public boolean validateCompaction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this method can return a class such as ValidationResult to represent the validation-result and detailed message if the validation is false. So that the invoker can add more error handle logic when validation is not passed such as print detailed logs
Description
Add configuration item 'compaction_validation_level'.