Skip to content

Commit

Permalink
ODP-1451: If condition addition in clonedNDC check
Browse files Browse the repository at this point in the history
  • Loading branch information
manishsinghmowall committed May 23, 2024
1 parent d87f38e commit e99e2fa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,10 @@ public LlapTaskUmbilicalProtocol run() throws Exception {

private void setMDCFromNDC() {
final Stack<String> clonedNDC = NDC.cloneStack();
LOG.debug("Get the class name " + clonedNDC.peek().getClass());
if(!clonedNDC.empty())

LOG.debug("Get the class name " + clonedNDC.peek().getClass());

final String fragId = clonedNDC.empty() ? "":clonedNDC.pop().toString();
LOG.debug("FragId " + fragId);
final String queryId = clonedNDC.empty() ? "":clonedNDC.pop().toString();
Expand Down

0 comments on commit e99e2fa

Please sign in to comment.