Github user sjcorbett commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/894#discussion_r39423163
--- Diff:
software/nosql/src/main/java/org/apache/brooklyn/entity/nosql/mongodb/MongoDBReplicaSetImpl.java
---
@@ -394,10 +401,18 @@ public void onManagementStopped() {
// Ignored
}
@Override protected void onEntityAdded(Entity member) {
- ((MongoDBReplicaSetImpl)entity).serverAdded((MongoDBServer)
member);
+ try {
+ ((MongoDBReplicaSetImpl)
entity).serverAdded((MongoDBServer) member);
+ } catch (Exception e) {
+
ServiceStateLogic.ServiceNotUpLogic.updateNotUpIndicator((EntityLocal)member,
"Failed to update replicaset", e);
--- End diff --
Would prefer this to happen in `serverAdded` rather than the event listener.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---