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-7993 Striped pool can't be disabled #4235

Closed
wants to merge 3 commits into from

Conversation

gromtech
Copy link
Contributor

Restored the capability to disable striped pool

Copy link
Contributor

@yzhdanov yzhdanov left a comment

Choose a reason for hiding this comment

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

Please see my comments
Changes look good to me at this point, however we need to add more tests


assertEquals("Cache should contain saved object", val, cache.get(key));
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to add balnk line - file should finish with blank one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -276,11 +277,17 @@ else if (desc.receivedFromStartVersion() != null)
}
};

if (stripe >= 0)
cctx.kernalContext().getStripedExecutorService().execute(stripe, c);
GridKernalContext kernalContext = cctx.kernalContext();
Copy link
Contributor

Choose a reason for hiding this comment

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

we usually use ctx for kernal context and cctx for cache context. Please rename kernalContext to ctx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -0,0 +1,113 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to add more tests including full api and fault-tolerance tests with disabled striped pool.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added DisabledStripedExecutorFailoverTest and DisabledStripedExecutorFullApiTest. Please let me know if we need more tests.

@gromtech
Copy link
Contributor Author

gromtech commented Dec 7, 2018

There is going to be implemented a strict thread per partition in the nearest future which will make disabling of striped pool impossible. I am closing this PR. New one PR will be created to update Javadoc.

@gromtech gromtech closed this Dec 7, 2018
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