Added bug #bea/8fc# : be crashes on outdated id-cache
authorW. Trevor King <wking@drexel.edu>
Mon, 25 Jan 2010 00:51:17 +0000 (19:51 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 25 Jan 2010 00:51:17 +0000 (19:51 -0500)
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/body [new file with mode: 0644]
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/values [new file with mode: 0644]
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/body [new file with mode: 0644]
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/values [new file with mode: 0644]
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/values [new file with mode: 0644]

diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/body b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/body
new file mode 100644 (file)
index 0000000..359c90f
--- /dev/null
@@ -0,0 +1,40 @@
+For example, after merging in a branch with new bugs, the id-cache is
+incomplete.  An example traceback (from `be list`) is
+
+Traceback (most recent call last):
+  File "./be", line 21, in <module>
+    sys.exit(libbe.ui.command_line.main())
+  File ".../be.wtk/libbe/ui/command_line.py", line 327, in main
+    ret = dispatch(ui, command, args)
+  File ".../be.wtk/libbe/ui/command_line.py", line 267, in dispatch
+    ret = ui.run(command, options, args)
+  File ".../be.wtk/libbe/command/base.py", line 504, in run
+    return command.run(options, args)
+  File ".../be.wtk/libbe/command/base.py", line 233, in run
+    self.status = self._run(**params)
+  File ".../be.wtk/libbe/command/list.py", line 168, in _run
+    bugs = self._sort_bugs(bugs, cmp_list)
+  File ".../be.wtk/libbe/command/list.py", line 229, in _sort_bugs
+    bugs.sort(cmp_fn)
+  File ".../be.wtk/libbe/bug.py", line 818, in __call__
+    val = comparison(bug_1, bug_2)
+  File ".../be.wtk/libbe/bug.py", line 798, in cmp_comments
+    comms_1 = sorted(bug_1.comments(), key = lambda comm : comm.uuid)
+  File ".../be.wtk/libbe/bug.py", line 687, in comments
+    for comment in self.comment_root.traverse():
+  File ".../be.wtk/libbe/storage/util/properties.py", line 297, in _fget
+    value = generator(self)
+  File ".../be.wtk/libbe/bug.py", line 225, in _get_comment_root
+    return comment.load_comments(self, load_full=load_full)
+  File ".../be.wtk/libbe/comment.py", line 85, in load_comments
+    bug.id.storage())):
+  File ".../be.wtk/libbe/storage/base.py", line 314, in children
+    return self._children(*args, **kwargs)
+  File ".../be.wtk/libbe/storage/vcs/base.py", line 804, in _children
+    path = self.path(id, revision, relpath=False)
+  File ".../be.wtk/libbe/storage/vcs/base.py", line 705, in path
+    path = self._cached_path_id.path(id)
+  File ".../be.wtk/libbe/storage/vcs/base.py", line 242, in path
+    raise InvalidID(uuid)
+libbe.storage.base.InvalidID: cf56e648-3b09-4131-8847-02dff12b4db2 in revision None
+
diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/values
new file mode 100644 (file)
index 0000000..993dce1
--- /dev/null
@@ -0,0 +1,8 @@
+Author: W. Trevor King <wking@drexel.edu>
+
+
+Content-type: text/plain
+
+
+Date: Sun, 24 Jan 2010 16:29:46 +0000
+
diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/body b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/body
new file mode 100644 (file)
index 0000000..450a208
--- /dev/null
@@ -0,0 +1,5 @@
+Work around by removing id-cache (forcing recreation).
+
+A better solution would be detecting the problem and recreating the
+cache automatically.
+
diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/values
new file mode 100644 (file)
index 0000000..1c44d10
--- /dev/null
@@ -0,0 +1,8 @@
+Author: W. Trevor King <wking@drexel.edu>
+
+
+Content-type: text/plain
+
+
+Date: Mon, 25 Jan 2010 00:50:17 +0000
+
diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/values
new file mode 100644 (file)
index 0000000..9fa55b6
--- /dev/null
@@ -0,0 +1,17 @@
+creator: W. Trevor King <wking@drexel.edu>
+
+
+reporter: W. Trevor King <wking@drexel.edu>
+
+
+severity: minor
+
+
+status: open
+
+
+summary: be crashes on outdated id-cache
+
+
+time: Sun, 24 Jan 2010 16:28:06 +0000
+