Skip to content

[NO_MERGE] Extension for deleting redundant message fast view data - #2667

Closed
hungphan227 wants to merge 4 commits into
apache:masterfrom
hungphan227:Extension-for-deleting-redundant-message-fast-view-data
Closed

[NO_MERGE] Extension for deleting redundant message fast view data#2667
hungphan227 wants to merge 4 commits into
apache:masterfrom
hungphan227:Extension-for-deleting-redundant-message-fast-view-data

Conversation

@hungphan227

@hungphan227 hungphan227 commented Mar 6, 2025

Copy link
Copy Markdown
Contributor

require pr #2666

@hungphan227
hungphan227 force-pushed the Extension-for-deleting-redundant-message-fast-view-data branch from d6e56d0 to 215695c Compare March 6, 2025 10:22
@hungphan227 hungphan227 closed this Mar 7, 2025
@hungphan227
hungphan227 force-pushed the Extension-for-deleting-redundant-message-fast-view-data branch from 215695c to ce61177 Compare March 7, 2025 01:30
@hungphan227 hungphan227 reopened this Mar 7, 2025
@hungphan227
hungphan227 force-pushed the Extension-for-deleting-redundant-message-fast-view-data branch from a75bb6e to e66ff08 Compare March 7, 2025 04:05

@chibenwa chibenwa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good to me.

IMO let's not merge this PR.

Please open another PR with "How to run this extension" in upgrade-instructions.md (so pointing to this PR)

@Arsnael Arsnael left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM too

@hungphan227 hungphan227 changed the title Extension for deleting redundant message fast view data [NO_MERGER] Extension for deleting redundant message fast view data Mar 10, 2025
@hungphan227 hungphan227 changed the title [NO_MERGER] Extension for deleting redundant message fast view data [NO_MERGE] Extension for deleting redundant message fast view data Mar 10, 2025
.doOnSuccess(any -> LOGGER.info("Total records deleted: {}", totalDeleted.incrementAndGet())),
MESSAGE_IDS_PER_SECOND)
.then()
.thenReturn(totalDeleted.get())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

.get needs to be wrapped in a mono overwise it is precomputed before the run of the reactive pipeline

curl -XPOST 127.0.0.1:8000/messageFastViewCleanup 
{"totalDeletedMessageFastViewItems":"0"}

VS

Message fast view cleanup complete. Total deleted: 13006007

}

public Mono<MessageId> getAllMessageIds() {
return cassandraAsyncExecutor.executeSingleRow(select.bind())

@chibenwa chibenwa Mar 12, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is clearly faulty we need to return all records, obviously, not just one!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I am very sorry. Do not know why I forget to update this.

@chibenwa chibenwa closed this Mar 14, 2025
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