Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GG-37730 Logging improvements for events of WAL segments deletion #2963

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

sergey-chugunov-1985
Copy link
Contributor

No description provided.

@sergey-chugunov-1985 sergey-chugunov-1985 requested review from ibessonov and sashapolo and removed request for ibessonov November 20, 2023 09:52
@@ -1067,16 +1067,19 @@ private boolean hasIndex(long absIdx) {

int deleted = 0;

List<String> deletedSegments = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to use lazy initialization here and in similar places, since this is only for logging

if (cleanedUpSize > 0)
deletedRawSegments.add(desc.idx);

segmentAware.addSize(desc.idx, -cleanedUpSize);
Copy link
Contributor

Choose a reason for hiding this comment

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

should we move this line under the if as well?

*/
private Ignite startGrid(Consumer<DataStorageConfiguration> customConfigurator) throws Exception {
private Ignite startGrid(Consumer<DataStorageConfiguration> customConfigurator, IgniteLogger customLog) throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we use Nullable annotations in GG?

…rs/cache/persistence/db/wal/WalDeletionArchiveAbstractTest.java

Co-authored-by: Alexander Polovtcev <alex.polovtcev@gmail.com>
…rs/cache/persistence/db/wal/WalDeletionArchiveAbstractTest.java

Co-authored-by: Alexander Polovtcev <alex.polovtcev@gmail.com>
…rs/cache/persistence/db/wal/WalDeletionArchiveAbstractTest.java

Co-authored-by: Alexander Polovtcev <alex.polovtcev@gmail.com>
sergey-chugunov-1985 added a commit that referenced this pull request Nov 23, 2023
…h additional logging (#2963)

Co-authored-by: Alexander Polovtcev <alex.polovtcev@gmail.com>

Signed-off-by: Alexander Polovtcev <alex.polovtcev@gmail.com>
sergey-chugunov-1985 added a commit that referenced this pull request Nov 24, 2023
…h additional logging (#2963)

Co-authored-by: Alexander Polovtcev <alex.polovtcev@gmail.com>

Signed-off-by: Alexander Polovtcev <alex.polovtcev@gmail.com>
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.

None yet

2 participants