Skip to content

Avoid copying measurements when updating last cache#18071

Open
Caideyipi wants to merge 1 commit into
apache:dev/1.3from
Caideyipi:cp-aabf552-dev-1.3
Open

Avoid copying measurements when updating last cache#18071
Caideyipi wants to merge 1 commit into
apache:dev/1.3from
Caideyipi:cp-aabf552-dev-1.3

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Backport #18059 to dev/1.3.

This adapts the last-cache measurement alias handling to the 1.3 schema cache implementation, avoiding measurement array copies on write paths while still updating cache entries by raw measurement names.

Original commit: aabf552

Validation:

  • mvn "-Ddevelocity.off=true" spotless:apply -pl iotdb-core/datanode
  • git diff origin/dev/1.3...HEAD --check
  • Attempted: mvn "-Ddevelocity.off=true" "-Dcheckstyle.skip=true" "-Dspotless.skip=true" -pl iotdb-core/datanode -Dtest=DataNodeSchemaCacheTest#testUpdateLastCacheWithAliasDoesNotCopyMeasurements test (failed locally due to javac Java heap space / Windows pagefile limits)

* Avoid copying measurements when updating last cache

* spotless

(cherry picked from commit aabf552)
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.

1 participant