From bafb9fe5bb206422aae9baf3d083a035a072fa56 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 24 Jan 2010 19:51:17 -0500 Subject: Added bug #bea/8fc# : be crashes on outdated id-cache --- .../432e994f-3759-42bf-a80d-7cd626c7ce7c/body | 40 ++++++++++++++++++++++ .../432e994f-3759-42bf-a80d-7cd626c7ce7c/values | 8 +++++ .../e3d802cf-1fff-4a48-a61c-a07578969333/body | 5 +++ .../e3d802cf-1fff-4a48-a61c-a07578969333/values | 8 +++++ .../8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/values | 17 +++++++++ 5 files changed, 78 insertions(+) create mode 100644 .be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/body create mode 100644 .be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/values create mode 100644 .be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/body create mode 100644 .be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/values create mode 100644 .be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/values (limited to '.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1') 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 index 0000000..359c90f --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/body @@ -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 + 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 index 0000000..993dce1 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/432e994f-3759-42bf-a80d-7cd626c7ce7c/values @@ -0,0 +1,8 @@ +Author: W. Trevor King + + +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 index 0000000..450a208 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/body @@ -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 index 0000000..1c44d10 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/comments/e3d802cf-1fff-4a48-a61c-a07578969333/values @@ -0,0 +1,8 @@ +Author: W. Trevor King + + +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 index 0000000..9fa55b6 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/values @@ -0,0 +1,17 @@ +creator: W. Trevor King + + +reporter: W. Trevor King + + +severity: minor + + +status: open + + +summary: be crashes on outdated id-cache + + +time: Sun, 24 Jan 2010 16:28:06 +0000 + -- cgit From 7d01fa142b05149479e633525fc4d7ddfa2addf0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 24 Jan 2010 20:39:00 -0500 Subject: Fixed #bea/8fc# : be crashes on outdated id-cache Also explicitly avoid loading or saving settings for root comments. --- .../bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1/values | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8fc5d6fa-cae1-451f-9817-3e4da6d0aac1') 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 index 9fa55b6..28975af 100644 --- 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 @@ -7,7 +7,7 @@ reporter: W. Trevor King severity: minor -status: open +status: fixed summary: be crashes on outdated id-cache -- cgit