Skip to content

Commit

Permalink
Enh 36973431 - [36969549->24.09] Dump the stack when loading the oper…
Browse files Browse the repository at this point in the history
…ational config

(merge main -> ce/main 110750)

[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 110752]
  • Loading branch information
thegridman committed Aug 21, 2024
1 parent 34e1f0c commit e67ae3d
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

package com.tangosol.coherence.component.application.console;

import com.oracle.coherence.common.util.Threads;
import com.tangosol.coherence.Component;
import com.tangosol.coherence.component.net.Member;
import com.tangosol.coherence.component.net.MemberSet;
Expand Down Expand Up @@ -4168,6 +4169,19 @@ protected static void loadConfiguration()
// instantiate the Coherence singleton (necessary for logging)
get_Instance();

if (Config.getBoolean("coherence.debug.operational.config"))
{
StringBuilder sbTrace = new StringBuilder("Loading Coherence operational configuration, call stack:\n");
StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
for (int i = 1; i < stackTrace.length; i++)
{
sbTrace.append("\tat ")
.append(stackTrace[i])
.append("\n");
}
_trace(sbTrace.toString());
}

Map mapConfig = getServiceConfigMap();
XmlDocument xmlCoherence = XmlHelper.loadResource(FILE_CFG_COHERENCE,
"operational configuration", get_CLASS().getClassLoader());
Expand Down

0 comments on commit e67ae3d

Please sign in to comment.