[ 
https://issues.apache.org/jira/browse/DISPATCH-2247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17436890#comment-17436890
 ] 

ASF GitHub Bot commented on DISPATCH-2247:
------------------------------------------

ted-ross commented on a change in pull request #1414:
URL: https://github.com/apache/qpid-dispatch/pull/1414#discussion_r740289989



##########
File path: src/router_core/modules/mobile_sync/mobile.c
##########
@@ -690,8 +690,24 @@ static void qcm_mobile_sync_on_mau_CT(qdrm_mobile_sync_t 
*msync, qd_parsed_field
             // Tell the python router about the new mobile sequence
             //
             qdr_post_set_mobile_seq_CT(msync->core, router->mask_bit, 
mobile_seq);
-        } else
-            qd_log(msync->log, QD_LOG_ERROR, "Received MAU from an unknown 
router");
+        } else {
+            //
+            // There is a possibility here that router_id is null but that is 
fine. We want to print it out either way
+            // which will help us in debugging.
+            //
+            char *r_id = 0;
+            bool free_rid = false;
+            if (id_field) {
+                qd_iterator_t *id_iter = qd_parse_raw(id_field);
+                if (id_iter) {
+                    r_id = (char *)qd_iterator_copy(id_iter);
+                    free_rid = true;
+                }
+            }
+            qd_log(msync->log, QD_LOG_ERROR, "Received MAU from an unknown 
router with router id %s", r_id);

Review comment:
       There is a similar log for MAR messages.  For completeness, you should 
probably add the router_id to that one too.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


> "Received MAU from an unknown router" error message must include unknown 
> router id
> ----------------------------------------------------------------------------------
>
>                 Key: DISPATCH-2247
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2247
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>          Components: Routing Engine
>    Affects Versions: 1.17.0
>            Reporter: Ganesh Murthy
>            Priority: Major
>             Fix For: 1.18.0
>
>
> Sometimes the router prints out the following error -
> {noformat}
> Received MAU from an unknown router {noformat}
> It would be nice if it print out the router id received in the MAU, like so
> {noformat}
> Received MAU from an unknown router with id QDR.A {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to