Hi,
I’m looking at an issue with Stratos 4.0.0 code, and I’m having an issue with 
the cartridge agent. It complains about the topology being inconsistent, 
triggered by this code [1].

This causes the extension handler not to fire for cartridges going down.

[2015-04-19 07:19:22,486]  INFO - [MemberTerminatedMessageProcessor] Member 
terminated: [service] XXX [cluster] XXX [member] 
XXX-0.dom2a4618d5-edd9-4a99-9d9c-918715c761bd
[2015-04-19 07:19:22,486]  INFO - [DefaultExtensionHandler] Member terminated 
event received: [service] XXX [cluster] XX [member] 
XXX-0.dom2a4618d5-edd9-4a99-9d9c-918715c761bd
[2015-04-19 07:19:22,486] ERROR - [ExtensionUtils] Member id not found in 
topology [member] XXXX.dom2a4618d5-edd9-4a99-9d9c-918715c761bd
[2015-04-19 07:19:22,486] ERROR - [DefaultExtensionHandler] Topology is 
inconsistent...failed to execute member terminated event

Any idea what’s going wrong here?

I assume the topology isn’t being maintained correctly for some reason, but I 
haven’t quite figured out how/if the topology is being maintained at all. 
Looking at the complete topology event handler [2] for example, it doesn’t 
actually update the internally stored topology.. There’s nothing in the 
cartridge agent that calls the topology manager’s acquireWriteLock function..

Best regards,

Michiel

[1] 
https://github.com/apache/stratos/blob/4.0.0/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/extensions/DefaultExtensionHandler.java#L374

[2] 
https://github.com/apache/stratos/blob/4.0.0/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/extensions/DefaultExtensionHandler.java#L328

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to