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

Remove the logic of memtable flush controlled by memory series size #13653

Open
wants to merge 35 commits into
base: master
Choose a base branch
from

Conversation

HTHou
Copy link
Contributor

@HTHou HTHou commented Sep 29, 2024

Description

In this PR, if the row number of a memory chunk exceeded the avgSeriesPointNumberThreshold, or the size of a binary type memory chunk exceeded the targetChunkSize, this memory chunk will split to multiple disk chunks in the TsFile.

@HTHou HTHou closed this Sep 29, 2024
Copy link

codecov bot commented Sep 29, 2024

Codecov Report

Attention: Patch coverage is 82.06522% with 33 lines in your changes missing coverage. Please review.

Project coverage is 39.84%. Comparing base (4e79200) to head (0393c75).

Files with missing lines Patch % Lines
...e/dataregion/memtable/AlignedWritableMemChunk.java 84.52% 13 Missing ⚠️
...geengine/dataregion/memtable/WritableMemChunk.java 82.14% 10 Missing ⚠️
...he/iotdb/db/utils/datastructure/AlignedTVList.java 69.56% 7 Missing ⚠️
...ageengine/dataregion/memtable/TsFileProcessor.java 66.66% 2 Missing ⚠️
...pache/iotdb/db/service/metrics/WritingMetrics.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13653      +/-   ##
============================================
+ Coverage     39.79%   39.84%   +0.05%     
  Complexity       71       71              
============================================
  Files          4159     4159              
  Lines        263425   263409      -16     
  Branches      32083    32085       +2     
============================================
+ Hits         104818   104963     +145     
+ Misses       158607   158446     -161     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HTHou HTHou reopened this Sep 29, 2024
@HTHou HTHou changed the title [DRAFT] Split MemChunk if row number exceeded the avgSeriesPointNumberThreshold Remove the logic of memtable flush controlled by memory chunk size Oct 10, 2024
@HTHou HTHou marked this pull request as ready for review October 12, 2024 07:08
@HTHou HTHou changed the title Remove the logic of memtable flush controlled by memory chunk size Remove the logic of memtable flush controlled by memory series size Oct 12, 2024
@@ -58,7 +58,7 @@ public class AlignedWritableMemChunk implements IWritableMemChunk {

private static final IoTDBConfig CONFIG = IoTDBDescriptor.getInstance().getConfig();
private final long TARGET_CHUNK_SIZE = CONFIG.getTargetChunkSize();
private final long MAX_NUMBER_OF_POINTS_IN_CHUNK = CONFIG.getAvgSeriesPointNumberThreshold();
private long MAX_NUMBER_OF_POINTS_IN_CHUNK = CONFIG.getTargetChunkPointNum();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that it is not final, its capitalization would better be changed.

Copy link

sonarcloud bot commented Oct 24, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants