You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by GitBox <gi...@apache.org> on 2021/09/14 16:49:31 UTC

[GitHub] [brooklyn-server] ahgittin opened a new pull request #1257: Tidy rebind, scheduled tasks, and related logging

ahgittin opened a new pull request #1257:
URL: https://github.com/apache/brooklyn-server/pull/1257


   ScheduledTasks in particular were problematic, continuing to run after rebind cycles (especially bad for hot standby!), and not logging correctly their context.
   
   This fixes both of those, and also sets it up so that IDs of bundles are not changed on a rebind/failover.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brooklyn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [brooklyn-server] iuliana commented on a change in pull request #1257: Tidy rebind, scheduled tasks, and related logging

Posted by GitBox <gi...@apache.org>.
iuliana commented on a change in pull request #1257:
URL: https://github.com/apache/brooklyn-server/pull/1257#discussion_r708586171



##########
File path: core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogInitialization.java
##########
@@ -241,24 +241,23 @@ public void populateInitialAndPersistedCatalog(ManagementNodeState mode, Persist
         }
         synchronized (populatingCatalogMutex) {
             if (hasRunFinalInitialization()) {
-                log.warn("Catalog initialization called to add persisted catalog, even though it has already run the final 'master' initialization; mode="+mode+" (perhaps previously demoted from master?)");      
+                log.warn("Catalog initialization called to add persisted catalog, even though it has already run the final 'master' initialization; mode="+mode, new Throwable("Source of duplicate catalog initialization"));
                 hasRunFinalInitialization = false;
             }
             if (hasRunPersistenceInitialization()) {
                 // Multiple calls; will need to reset (only way to clear out the previous persisted state's catalog)
                 if (log.isDebugEnabled()) {
                     String message = "Catalog initialization repeated call to add persisted catalog, resetting catalog (including initial) to start from clean slate; mode="+mode;
-                    if (!ManagementNodeState.isHotProxy(mode)) {
-                        log.debug(message);
-                    } else {
-                        // in hot modes, make this message trace so we don't get too much output then
-                        log.trace(message);
-                    }
+                    log.debug(message);

Review comment:
       Just put the string value here, no need for the message variable.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brooklyn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [brooklyn-server] ahgittin commented on pull request #1257: Tidy rebind, scheduled tasks, and related logging

Posted by GitBox <gi...@apache.org>.
ahgittin commented on pull request #1257:
URL: https://github.com/apache/brooklyn-server/pull/1257#issuecomment-919540686


   merging so we can test more easily; more reviews welcome


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brooklyn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [brooklyn-server] asfgit closed pull request #1257: Tidy rebind, scheduled tasks, and related logging

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #1257:
URL: https://github.com/apache/brooklyn-server/pull/1257


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brooklyn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org