Skip to content

Conversation

@dorooleg
Copy link
Collaborator

@dorooleg dorooleg commented Nov 7, 2025

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

Copilot AI review requested due to automatic review settings November 7, 2025 16:02
@dorooleg dorooleg requested a review from a team as a code owner November 7, 2025 16:02
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

2025-11-07 16:02:51 UTC Pre-commit check linux-x86_64-release-asan for 05c1657 has started.
2025-11-07 16:03:20 UTC Artifacts will be uploaded here
2025-11-07 16:05:30 UTC ya make is running...
2025-11-07 17:26:43 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

2025-11-07 16:03:37 UTC Pre-commit check linux-x86_64-relwithdebinfo for 05c1657 has started.
2025-11-07 16:04:15 UTC Artifacts will be uploaded here
2025-11-07 16:06:36 UTC ya make is running...
🟢 2025-11-07 17:25:42 UTC Tests successful.

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
31551 30142 0 0 1385 24

🟢 2025-11-07 17:26:00 UTC Build successful.
🟡 2025-11-07 17:26:18 UTC ydbd size 2.3 GiB changed* by +106.0 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 5d8445c merge: 05c1657 diff diff %
ydbd size 2 431 796 456 Bytes 2 431 905 048 Bytes +106.0 KiB +0.004%
ydbd stripped size 516 528 304 Bytes 516 532 464 Bytes +4.1 KiB +0.001%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation
2025-11-07 17:26:20 UTC Check cancelled

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 adds a new normalizer TCleanInsertedPortionsNormalizer to clean inserted portions from the columnshard. The normalizer identifies portions with NPortion::EProduced::INSERTED status and marks them for removal by setting a remove snapshot.

  • Adds new normalizer class TCleanInsertedPortionsNormalizer for cleaning inserted portions
  • Includes unit test infrastructure with TInsertedPortionsCleaner test modifier
  • Alphabetically reorganizes the SRCS list in the build configuration

Reviewed Changes

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

File Description
ydb/core/tx/columnshard/normalizer/portion/clean_inserted_portions.h Header file defining the new TCleanInsertedPortionsNormalizer class
ydb/core/tx/columnshard/normalizer/portion/clean_inserted_portions.cpp Implementation of the normalizer logic for cleaning inserted portions
ydb/core/tx/columnshard/normalizer/portion/ya.make Adds the new source file and alphabetizes the source file list
ydb/core/tx/columnshard/ut_rw/ut_normalizer.cpp Adds unit test for the new normalizer functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

virtual bool CheckPortion(const NColumnShard::TTablesManager& tablesManager, const TPortionDataAccessor& portionInfo) const override;
};

} // namespace NKikimr::NOlap::NNormalizer::NBrokenBlobs
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

The namespace comment refers to 'NBrokenBlobs' but should refer to 'NCleanInsertedPortions' to match the namespace opened on line 12.

Suggested change
} // namespace NKikimr::NOlap::NNormalizer::NBrokenBlobs
} // namespace NKikimr::NOlap::NNormalizer::NCleanInsertedPortions

Copilot uses AI. Check for mistakes.
return true;
}

} // namespace NKikimr::NOlap::NNormalizer::NBrokenBlobs
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

The namespace comment refers to 'NBrokenBlobs' but should refer to 'NCleanInsertedPortions' to match the namespace opened on line 12.

Suggested change
} // namespace NKikimr::NOlap::NNormalizer::NBrokenBlobs
} // namespace NKikimr::NOlap::NNormalizer::NCleanInsertedPortions

Copilot uses AI. Check for mistakes.
Y_UNIT_TEST(InsertedPortionsCleanerNormalizer) {
class TLocalNormalizerChecker: public TNormalizerChecker {
public:
virtual ui64 RecordsCountAfterReboot(const ui64 /*initialRecodsCount*/) const override {
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'initialRecodsCount' to 'initialRecordsCount'.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

🟢 2025-11-07 16:05:36 UTC The validation of the Pull Request description is successful.

@dorooleg dorooleg enabled auto-merge (squash) November 7, 2025 17:27
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

2025-11-07 17:30:37 UTC Pre-commit check linux-x86_64-relwithdebinfo for 336686e has started.
2025-11-07 17:30:55 UTC Artifacts will be uploaded here
2025-11-07 17:33:14 UTC ya make is running...
🟡 2025-11-07 18:59:10 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
31553 30128 0 5 1386 34

2025-11-07 18:59:31 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-11-07 19:07:13 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
69 (only retried tests) 53 0 0 0 16

🟢 2025-11-07 19:07:38 UTC Build successful.
🟡 2025-11-07 19:07:58 UTC ydbd size 2.3 GiB changed* by +107.9 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 87094f8 merge: 336686e diff diff %
ydbd size 2 431 822 416 Bytes 2 431 932 920 Bytes +107.9 KiB +0.005%
ydbd stripped size 516 531 824 Bytes 516 539 696 Bytes +7.7 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

2025-11-07 17:31:03 UTC Pre-commit check linux-x86_64-release-asan for 336686e has started.
2025-11-07 17:31:20 UTC Artifacts will be uploaded here
2025-11-07 17:33:36 UTC ya make is running...
🟡 2025-11-07 19:32:23 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15414 14988 0 153 245 28

🟢 2025-11-07 19:32:36 UTC Build successful.
🟡 2025-11-07 19:33:03 UTC ydbd size 3.8 GiB changed* by +151.8 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 87094f8 merge: 336686e diff diff %
ydbd size 4 073 018 520 Bytes 4 073 173 936 Bytes +151.8 KiB +0.004%
ydbd stripped size 1 511 849 832 Bytes 1 511 882 312 Bytes +31.7 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@dorooleg dorooleg merged commit 802c6dc into ydb-platform:main Nov 10, 2025
10 checks passed
@dorooleg dorooleg deleted the inserted_portions_cleaner branch November 10, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants