Skip to content

Pipe: introduce global cache for TsFile metadatas and support TTL of Pipe TsFile#11240

Merged
SteveYurongSu merged 23 commits intoapache:masterfrom
DanielWang2035:pipe-cache-reader
Nov 23, 2023
Merged

Pipe: introduce global cache for TsFile metadatas and support TTL of Pipe TsFile#11240
SteveYurongSu merged 23 commits intoapache:masterfrom
DanielWang2035:pipe-cache-reader

Conversation

@DanielWang2035
Copy link
Collaborator

@DanielWang2035 DanielWang2035 commented Oct 7, 2023

Currently, if a TsFile is processed by N pipes, its metadata will be constructed N times, the overhead will be high when N is very big. This PR added a global cache to reduce repeated creation and redundant IO.

This PR also introduces TTL of TsFiles pinned by pipe engine, just like WALs.

@SteveYurongSu SteveYurongSu self-requested a review October 8, 2023 01:37
@SteveYurongSu SteveYurongSu self-assigned this Oct 8, 2023
DanielWang2035 and others added 9 commits October 8, 2023 16:12
# Conflicts:
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/wal/PipeWALResource.java
# Conflicts:
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/TsFileInsertionDataContainer.java
Copy link
Collaborator

@Caideyipi Caideyipi left a comment

Choose a reason for hiding this comment

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

No other problems spotted ;-)

@DanielWang2035 DanielWang2035 changed the title Pipe: cache TsFileReader and support TTL of Pipe TsFile Pipe: introduce global cache for TsFile metadatas and support TTL of Pipe TsFile Nov 23, 2023
Copy link
Member

@SteveYurongSu SteveYurongSu left a comment

Choose a reason for hiding this comment

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

WELL WELL DONE! WHAT A WONDERFUL JOB!

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.

3 participants