Stefan Egli created SLING-6809:
----------------------------------

             Summary: improve discovery's TopologyView toString
                 Key: SLING-6809
                 URL: https://issues.apache.org/jira/browse/SLING-6809
             Project: Sling
          Issue Type: Improvement
          Components: Extensions
            Reporter: Stefan Egli
            Assignee: Stefan Egli


Consider the following log message:
{noformat}... 
org.apache.sling.discovery.commons.providers.base.ViewStateManagerImpl 
enqueueForAll: sending topologyEvent TopologyEvent [type=PROPERTIES_CHANGED, 
oldView=DefaultTopologyView[current=false, num=5, 
instances=2466547c-eb7f-4f99-9716-9f1d95a97b24[local=false,leader=true],2466647c-eb7f-4f99-9716-9f1d97a97b87[local=false,leader=true],5466647c-eb7a-4f99-9716-9f1d97a34b85[local=false,leader=true],26101e4c-3488-44ef-b454-787d1673eb69[local=false,leader=true],48b217fb-93f7-4fff-bd96-b86509075c50[local=true,leader=true]],
 newView=DefaultTopologyView[current=true, num=5, 
instances=2466547c-eb7f-4f99-9716-9f1d95a97b24[local=false,leader=true],2466647c-eb7f-4f99-9716-9f1d97a97b87[local=false,leader=true],5466647c-eb7a-4f99-9716-9f1d97a34b85[local=false,leader=true],26101e4c-3488-44ef-b454-787d1673eb69[local=false,leader=true],48b217fb-93f7-4fff-bd96-b86509075c50[local=true,leader=true]]],
 ...{noformat}

This output is misleading as it does not show which instance belongs to which 
cluster. That output (coming from {{DefaultTopologyView.toString()}}) should 
instead group the instances by clusterId to make this clear.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to