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
Conversation
There was a problem hiding this 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)); | ||
} | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 @@ | |||
/* |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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. |
Restored the capability to disable striped pool