Skip to content

Comments

IGNITE-19494 Correctly stop a replica#2142

Merged
vldpyatkov merged 4 commits intoapache:mainfrom
gridgain:ignite-19494
Jun 8, 2023
Merged

IGNITE-19494 Correctly stop a replica#2142
vldpyatkov merged 4 commits intoapache:mainfrom
gridgain:ignite-19494

Conversation

@vldpyatkov
Copy link
Contributor


//TODO: IGNITE-15568 endOfBatch should be set to true to prevent caching tasks until IGNITE-15568 has fixed.
handler.onEvent(event, sequence, true);
handler.onEvent(event, sequence, subscribers.size() > 1 ? true : endOfBatch);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it an intended change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not intended, but I decided to leave it after commit. Because this allows to do slightly better of disruptor for Meta storage and Cluster management group and I don't want to create dedicate ticket for this small change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds reasonable, however I had to ask. How did you understand that it works better after given change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have a test that will be able to demonstrate that. I assume, that update is not doing worse at least.
Theoretically, RAFT log may fsync less often in the circumstance when several RAFT commands are executing simultaniously.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that this change is reasonable, because we have a plan to port disruptor changes in a upcoming sprint, potentially this fix will live a few weeks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We will work a little better just now. Today, the change worth nothing for us.

@vldpyatkov vldpyatkov merged commit b4bdceb into apache:main Jun 8, 2023
@vldpyatkov vldpyatkov deleted the ignite-19494 branch June 8, 2023 14:06
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.

3 participants