-
Notifications
You must be signed in to change notification settings - Fork 1.1k
cp from master #16894
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
cp from master #16894
Conversation
(cherry picked from commit c560247)
…6853) * Fix excessive GC caused by loading too many TsFiles at once When loading multiple TsFiles, all file resources were loaded into memory simultaneously, causing excessive memory consumption and frequent GC pauses. This commit introduces batch execution for multi-file loading scenarios: 1. Split LoadTsFileStatement/LoadTsFile into sub-statements, each handling one TsFile, to avoid loading all file resources at once 2. Refactor duplicate code in ClientRPCServiceImpl by extracting helper methods for both tree model and table model 3. Add progress logging to track the loading status of each file 4. Support both synchronous and asynchronous loading modes Changes: - Added getSubStatement() method to LoadTsFileStatement and LoadTsFile for splitting multi-file statements - Extracted shouldSplitLoadTsFileStatement() and shouldSplitTableLoadTsFile() to determine if splitting is needed - Extracted executeBatchLoadTsFile() and executeBatchTableLoadTsFile() to handle batch execution with progress logging - Applied the optimization to 4 execution paths (tree/table model, sync/async loading) This fix significantly reduces memory pressure and improves system stability when loading large numbers of TsFiles. * fix * update (cherry picked from commit bc4f8e9)
…conversion to TableStatement. (#16844) * Pipe: Modify the TableRawReq deserialization method to support direct conversion to TableStatement. * fix * fix * fix * fix * fix * update * update * update * refactor: optimize TabletStatementConverter according to code review - Optimize times array copy: skip copy when lengths are equal, use System.arraycopy - Add warning logs when times array is null or too small - Ensure all arrays (values, times, bitMaps) are copied to rowSize length for immutability - Filter out null columns when converting Statement to Tablet - Rename idColumnIndices to tagColumnIndices - Add skipString method to avoid constructing temporary objects - Add comments explaining skipped fields in readMeasurement - Use direct buffer position increment instead of reading bytes for skipping - Ensure all column values are copied to ensure immutability * update * update (cherry picked from commit 13b0582)
(cherry picked from commit a899c48)
#16819) Co-authored-by: RkGrit <[email protected]> Co-authored-by: Gewu <[email protected]> (cherry picked from commit d7898c4)
…aNode first startup (#16854) * Add cleanup for active load listening directories on DataNode first startup - Add cleanupListeningDirectories() method in ActiveLoadAgent to clean up all listening directories - Call cleanup method when DataNode starts for the first time - Clean up pending, pipe, and failed directories - Silent execution with minimal logging * update * fix (cherry picked from commit bfa71e0)
) (cherry picked from commit 94461b0)
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## force_ci/object_type #16894 +/- ##
=======================================================
Coverage ? 39.03%
Complexity ? 207
=======================================================
Files ? 5030
Lines ? 334374
Branches ? 42595
=======================================================
Hits ? 130515
Misses ? 203859
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|




No description provided.