-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed IMap.putAll() on bouncing members with PutAllPartitionAwareOperationFactory #8310
Fixed IMap.putAll() on bouncing members with PutAllPartitionAwareOperationFactory #8310
Conversation
Either I didn't understand how to use the
I think the cause it that I still create a So I think we have to stick with the solution of #8275, even though it creates more code (which I think is needed). |
@Donnerbart Created a PR based on your commits here #8443 and it seems something like this can be a fix b7a317c |
Yeah, it seems to work \o/ I also updated this PR with your fix. Thanks a lot for having a look. |
I will do a comparison with a profiler between master, the other fix approach #8275 and this PR tomorrow. Just to be sure we have no performance degradation or other regression with one of the fixes. If both are equally good, I'll prefer this solution to reduce code duplication. I'll have a look at the EE side then. |
Hmm, I'm a bit baffled with the benchmark results. This approach with the |
…actory to fix failure in IMap.putAll() on bouncing members.
Test PASSed. |
* @throws Exception | ||
*/ | ||
Map<Integer, Object> invokeOnPartitions(String serviceName, OperationFactory operationFactory, | ||
int[] partitions) throws Exception; |
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 already have a similar method in OperationService
here. Cant we use that instead?
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.
I found no good way to convert an int[]
to a Collection<Integer>
and I didn't want to introduce litter again. Maybe we can get rid of the other method eventually, since the array should be more litter friendly.
👍 |
1 similar comment
👍 |
Replaced
PutAllPerMemberOperation
withPutAllPartitionAwareOperationFactory
to fix failure inIMap.putAll()
on bouncing members.