Skip to content

Conversation

@aonnikov
Copy link
Member

No description provided.

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
@aonnikov aonnikov requested review from Copilot and haiodo August 19, 2025 12:05
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13139

@aonnikov aonnikov requested a review from lexiv0re August 19, 2025 12:06

This comment was marked as outdated.

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
@aonnikov aonnikov requested a review from Copilot August 19, 2025 13:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes memory leaks in the datalake cache system by implementing proper stream resource cleanup and improving cache key management.

  • Adds proper stream cleanup with destroy() calls in finally blocks
  • Migrates from callback-based pipeline to promise-based stream/promises version
  • Refactors cache keys to include workspace UUID for better isolation

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
services/datalake/pod-datalake/src/handlers/image.ts Implements stream cleanup, refactors pipeline usage, and updates cache key generation to include workspace
services/datalake/pod-datalake/src/datalake/datalake.ts Adds stream cleanup and consolidates cache size checking logic
services/datalake/pod-datalake/src/datalake/cache.ts Adds cache enabled method and stream cleanup in streamToBuffer function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@aonnikov aonnikov merged commit 4740275 into develop Aug 19, 2025
15 checks passed
@aonnikov aonnikov deleted the fix-datalake-cache branch August 19, 2025 15:34
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