Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 470260

Summary: cluster: use encode/decode for all object replication.
Product: Red Hat Enterprise MRG Reporter: Alan Conway <aconway>
Component: qpid-cppAssignee: Ted Ross <tross>
Status: CLOSED NOTABUG QA Contact: Kim van der Riet <kim.vdriet>
Severity: low Docs Contact:
Priority: urgent    
Version: 1.0CC: tross
Target Milestone: Next Version   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-13 13:42:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alan Conway 2008-11-06 14:19:15 UTC
Description of problem:

Cluster code uses XML methods to replicate in-memory objects (DeliveryRecord, TxOps etc.) to new members.

The problem is that there's no indication in e.g. the DeliveryRecord code that developers modifying DeliveryRecord won't be aware of the need to also modify the corresponding cluster.xml definition and cluster code.

Solution: 

All objects replicated in the cluster should provide encode/encodedSize/decode,
the cluster will use these rather than XML methods to replicate the objects.

These methods will be present in e.g. DeliveryRecord so developers modifying DeliveryRecord will be more easily able to keep the encode/decode in sync.

Comment 1 Ted Ross 2010-10-13 13:42:44 UTC
This issue will ultimately be resolved by the clustered-queue design work that is ongoing.