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 27, 2024
1 parent 31c7c20 commit 21af2d3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ 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 21af2d3

Please sign in to comment.