Hi, It looks like this isn’t an issue in the latest 4.1 code, so that’s good. However, in the 4.1 code we’ve lost the ability to pass data about topology events to the extensions run by the cartridge agent. I’ve attached a diff which shows how I would add this functionality back. Basically I’d extend the (Topology)Event interface to include a toEnv() method, which can be overridden by the subclasses to populate a HashMap with event data. This HashMap will then be passed into the subprocess as extra environment info. How do people feel about the approach? I think it’s cleaner than the approach that existed in the 4.0 code, where the calling code put the event info into environment variables. If people think this is a good idea I’m happy to expand it to cover the other TopologyEvents, and go through the process of getting it into the codebase. Feedback is welcome! Best regards, Michiel |
event_env.diff
Description: Binary data
|
signature.asc
Description: Message signed with OpenPGP using GPGMail