Skip to content

branch-4.0: [fix](cloud) Fix packed file write path bypassing encryption #60629#60869

Open
github-actions[bot] wants to merge 1 commit intobranch-4.0from
auto-pick-60629-branch-4.0
Open

branch-4.0: [fix](cloud) Fix packed file write path bypassing encryption #60629#60869
github-actions[bot] wants to merge 1 commit intobranch-4.0from
auto-pick-60629-branch-4.0

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #60629

The PackedFileSystem was wrapping the filesystem after encryption on the
write path, which meant data written through PackedFileSystem bypassed
encryption. On the read path, the encrypted layer would then attempt to
decrypt unencrypted data, leading to data corruption.

Fix by swapping the order: apply PackedFileSystem first, then wrap with
encryption on top, ensuring all data written through the packed path is
properly encrypted.
@github-actions github-actions bot requested a review from yiguolei as a code owner February 27, 2026 03:47
@Thearas
Copy link
Contributor

Thearas commented Feb 27, 2026

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Feb 27, 2026
@Thearas
Copy link
Contributor

Thearas commented Feb 27, 2026

run buildall

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 17.65% (3/17) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.98% (19129/36106)
Line Coverage 36.17% (178104/492441)
Region Coverage 32.75% (137922/421164)
Branch Coverage 33.72% (59895/177618)

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