Bug 1232733

Summary: DistributedTaskPart.equals() implementation is wrong
Product: [JBoss] JBoss Data Grid 6 Reporter: Dan Berindei <dberinde>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: VERIFIED --- QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: dereed, jdg-bugs, pzapataf
Target Milestone: ER1   
Target Release: 6.5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1250033 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1250033    

Description Dan Berindei 2015-06-17 11:58:31 UTC
DistributedExecutorService.submitEverywhere() returns a list of futures, one future for each targeted node. Because of how DistributedTaskPart.equals() is implemented, all the futures in the list appear to be equal, even though their target node is different and their result will also be different.

The simplest fix would be to remove the equals() and hashCode() overloads from DistributedTaskPart.

Comment 2 Dan Berindei 2015-06-17 15:59:23 UTC
PR: https://github.com/infinispan/jdg/pull/686