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

IGNITE-12442: Fix unnecessary sync on PagesCache. #7147

Closed
wants to merge 1 commit into from

Conversation

zstan
Copy link
Contributor

@zstan zstan commented Dec 16, 2019

No description provided.

@@ -2033,6 +2033,9 @@ public synchronized boolean add(long pageId) {
int stripeIdx = (int)pageId & (STRIPES_COUNT - 1);

synchronized (stripeLocks[stripeIdx]) {
if (size >= MAX_SIZE)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a redundant check. There already exists a stripe size check under the lock.

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 this, but upper, if so - i agree.

@zstan zstan force-pushed the ignite-12442 branch 2 times, most recently from 84a6fc0 to 96481aa Compare December 19, 2019 08:57
@asfgit asfgit closed this in dec87bf Dec 20, 2019
asfgit pushed a commit that referenced this pull request Dec 24, 2019
Signed-off-by: Aleksey Plekhanov <plehanov.alex@gmail.com>
(cherry picked from commit dec87bf)
alex-plekhanov pushed a commit to alex-plekhanov/ignite that referenced this pull request Dec 26, 2019
…che#7147.

Signed-off-by: Aleksey Plekhanov <plehanov.alex@gmail.com>
(cherry picked from commit dec87bf)
tledkov pushed a commit to gridgain/apache-ignite that referenced this pull request Jan 21, 2020
…AL records.

IGNITE-12442 Fix unnecessary sync on PagesList.PagesCache - Fixes apache#7147.

IGNITE-12254 IO errors during write header of WAL files in FSYNC mode should be handled by failure handler.
zstan added a commit to gridgain/apache-ignite that referenced this pull request Jan 24, 2020
…AL records.

IGNITE-12442 Fix unnecessary sync on PagesList.PagesCache - Fixes apache#7147.

IGNITE-12254 IO errors during write header of WAL files in FSYNC mode should be handled by failure handler.
zstan added a commit to gridgain/apache-ignite that referenced this pull request Jan 27, 2020
…AL records.

IGNITE-12442 Fix unnecessary sync on PagesList.PagesCache - Fixes apache#7147.

IGNITE-12254 IO errors during write header of WAL files in FSYNC mode should be handled by failure handler.
ingvard pushed a commit to gridgain/apache-ignite that referenced this pull request Feb 7, 2020
…AL records.

IGNITE-12442 Fix unnecessary sync on PagesList.PagesCache - Fixes apache#7147.

IGNITE-12254 IO errors during write header of WAL files in FSYNC mode should be handled by failure handler.
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.

2 participants