WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] CA-33235: add some debug msgs for timed-out sessions

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-33235: add some debug msgs for timed-out sessions
From: Marcus Granado <marcus.granado@xxxxxxxxxx>
Date: Wed, 2 Dec 2009 19:10:39 +0000
Delivery-date: Wed, 02 Dec 2009 11:11:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
2 files changed, 2 insertions(+), 2 deletions(-)
ocaml/xapi/db_gc.ml     |    2 +-
ocaml/xapi/xapi_http.ml |    2 +-


# HG changeset patch
# User Marcus Granado <marcus.granado@xxxxxxxxxx>
# Date 1259780888 0
# Node ID c9d4cd95d8886b2201522e346f7f0d4a5d373115
# Parent  938c7defdf34865e1b6885268f63ba12a8f471b1
CA-33235: add some debug msgs for timed-out sessions

Signed-off-by: Marcus Granado <marcus.granado@xxxxxxxxxxxxx>

diff -r 938c7defdf34 -r c9d4cd95d888 ocaml/xapi/db_gc.ml
--- a/ocaml/xapi/db_gc.ml       Wed Dec 02 17:26:15 2009 +0000
+++ b/ocaml/xapi/db_gc.ml       Wed Dec 02 19:08:08 2009 +0000
@@ -216,7 +216,7 @@
   let cancel doc sessions = 
     List.iter
       (fun (s, active, uuid) ->
-        debug "Session.destroy _ref=%s uuid=%s (last active %s): %s" 
(Ref.string_of s) uuid (Date.to_string (Date.of_float active)) doc;
+        debug "Session.destroy _ref=%s uuid=%s %s (last active %s): %s" 
(Ref.string_of s) uuid (Context.trackid_of_session (Some s)) (Date.to_string 
(Date.of_float active)) doc;
         Xapi_session.destroy_db_session ~__context ~self:s
         ) sessions in
   (* Only the 'lucky' survive: the 'old' and 'unlucky' are destroyed *)
diff -r 938c7defdf34 -r c9d4cd95d888 ocaml/xapi/xapi_http.ml
--- a/ocaml/xapi/xapi_http.ml   Wed Dec 02 17:26:15 2009 +0000
+++ b/ocaml/xapi/xapi_http.ml   Wed Dec 02 19:08:08 2009 +0000
@@ -20,7 +20,7 @@
   try
     let (_: string) = Db.Session.get_uuid ~__context ~self:session_id in ()
   with _ ->
-    debug "Failed to find session_id in database. Perhaps it timed-out?";
+    debug "Failed to find session_id %s in database. Perhaps it timed-out?" 
(Context.trackid_of_session (Some session_id));
     raise (Http.Unauthorised realm)
 
 (* Talk to the master over the network. NB we deliberately use the network 
rather than

Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] CA-33235: add some debug msgs for timed-out sessions, Marcus Granado <=