If you log in
with your developerWorks ID, you can leave comments and feedback for the development team.
| Component |
DataGrid API |
| Software Version |
6.1 |
Problem
The ReduceGridAgent and MapGridAgent do not provide the partition, server name, or complete exception information when some exceptions are encountered.
The complete exception object, server name and partition number might be required to allow clients to properly handle failures because each agent runs in an independent transaction.
Cause
The AgentManager does not always use EntryErrorValue
objects when appropriate to identify errors when the error only occurs on a subset of the agents. The EntryErrorValue objects also do not currently have the entire exception object, the server name is set to "???" instead of the actual server name, and no partition number exists.
Workaround
In some circumstances, the agent can use a side map to store the results. A side map can be another ObjectGrid map that is used only to store the agent result data. Clients can examine the side map for the actual state of the agent.
Solution
The reduce agent API has been changed to throw EntryErrorValues to the agent's client-side reduce(Collection) method. This change allows the client to handle any errors that occur. The map grid agent API has been changed to include EntryErrorValues for any keys that have failed to run. If the map grid agent did not supply any keys, then an ObjectGridRuntimeException exception results.
Apply ObjectGrid cumulative intermediate fix 3.
© Copyright IBM Corporation 2007,2010. All Rights Reserved.