-
Notifications
You must be signed in to change notification settings - Fork 21
CNDB-15526: Load TOC component before performing component discovery #2028
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
Checklist before you submit for review
|
|
❌ Build ds-cassandra-pr-gate/PR-2028 rejected by Butler7 regressions found Found 7 new test failures
Found 3 known test failures |
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.
Left a question
|
|
||
| File compressionFile = desc.fileFor(Components.COMPRESSION_INFO); | ||
| if (!compressionFile.exists()) | ||
| return null; |
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.
This check is not needed?
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.
From what I can tell it's an optimization to return early. The exists() triggers an opening of the file though and that is what causes issues.


What is the issue
TOCComponent performs component discovery before loading the TOC. This can be detrimental to custom component loading and can be optimized to try loading the TOC directly first before resorting to discovery.
What does this PR fix and why was it fixed
Load the TOC component without discovery if possible