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

[ISSUE #6633] [RIP-65] Improving Tiered Storage Implementation #6781

Merged
merged 15 commits into from
Jun 9, 2023

Conversation

lizhimins
Copy link
Member

According to the plan proposed in RIP-65, the improvements in this submission involve bugfixes and metadata management API, but will not "break data format compatibility".

@lizhimins
Copy link
Member Author

Later I will fix unit test in Windows

interface CompositeAccess {

/**
* Initializes the offset for the flat file.
Copy link
Member

Choose a reason for hiding this comment

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

Since we have extracted CompositeAccess from CompositeQueueFlatFile, could we replace the CompositeQueueFlatFile with CompositeAccess to avoid exposing some details? such as the return value of TieredFlatFileManager#deepCopyFlatFileToList.

Copy link
Member Author

Choose a reason for hiding this comment

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

In current model, cq entered the flat file buffer after commitlog dispatch done, so it is necessary to separate two parts here

@codecov-commenter
Copy link

codecov-commenter commented Jun 6, 2023

Codecov Report

Merging #6781 (216cbbc) into develop (f10f905) will increase coverage by 0.24%.
The diff coverage is 63.87%.

❗ Current head 216cbbc differs from pull request most recent head d08041f. Consider uploading reports for the commit d08041f to get more accurate results

@@              Coverage Diff              @@
##             develop    #6781      +/-   ##
=============================================
+ Coverage      42.44%   42.69%   +0.24%     
- Complexity      9105     9107       +2     
=============================================
  Files           1125     1125              
  Lines          80258    79879     -379     
  Branches       10453    10380      -73     
=============================================
+ Hits           34064    34101      +37     
+ Misses         41903    41504     -399     
+ Partials        4291     4274      -17     
Impacted Files Coverage Δ
...va/org/apache/rocketmq/common/PopAckConstants.java 0.00% <0.00%> (ø)
.../org/apache/rocketmq/store/timer/TimerRequest.java 93.75% <0.00%> (-3.03%) ⬇️
...ache/rocketmq/tieredstore/common/AppendResult.java 100.00% <ø> (ø)
...ache/rocketmq/tieredstore/common/BoundaryType.java 60.00% <ø> (ø)
...mq/tieredstore/exception/TieredStoreErrorCode.java 0.00% <ø> (ø)
...mq/tieredstore/exception/TieredStoreException.java 0.00% <ø> (ø)
...e/rocketmq/tieredstore/metadata/QueueMetadata.java 100.00% <ø> (ø)
...tieredstore/metrics/TieredStoreMetricsManager.java 56.93% <0.00%> (-0.57%) ⬇️
...e/rocketmq/tieredstore/util/MessageBufferUtil.java 80.00% <ø> (ø)
...e/rocketmq/tieredstore/metadata/TopicMetadata.java 88.46% <25.00%> (-11.54%) ⬇️
... and 30 more

... and 18 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -65,13 +66,13 @@ public class TieredMessageFetcher {
private final TieredMessageStoreConfig storeConfig;
private final String brokerName;
private TieredMetadataStore metadataStore;
private final TieredContainerManager containerManager;
private final TieredFlatFileManager containerManager;
Copy link
Contributor

Choose a reason for hiding this comment

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

这个字段名是不是改下,提升代码理解

@lizhimins lizhimins merged commit 6eac107 into apache:develop Jun 9, 2023
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.

4 participants