Bug 413362 - Patchset section not rendering
Summary: Patchset section not rendering
Status: RESOLVED DUPLICATE of bug 413363
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-19 16:23 EDT by Thomas Ehrnhoefer CLA
Modified: 2013-08-06 03:49 EDT (History)
1 user (show)

See Also:


Attachments
patchset section not showing patchsets (14.03 KB, image/png)
2013-07-19 16:24 EDT, Thomas Ehrnhoefer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Ehrnhoefer CLA 2013-07-19 16:23:34 EDT
Opened up a review with 3 patchsets, but the section appears empty.
Collapsing/expanding doesn't change this state

seen on:   Mylyn Reviews Connector: Gerrit	2.0.1.I20130712-2204
Comment 1 Thomas Ehrnhoefer CLA 2013-07-19 16:24:52 EDT
Created attachment 233636 [details]
patchset section not showing patchsets
Comment 2 Thomas Ehrnhoefer CLA 2013-07-19 16:25:15 EDT
a refresh of the editor made them appear. nothing in the error log
Comment 3 Thomas Ehrnhoefer CLA 2013-07-19 16:27:09 EDT
Actually, I just updated the gerrit connector and this happens on all my offline cached reviews.

version I updated from:     Mylyn Reviews Connector: Gerrit	2.0.0.I20130506-1308

Could be sever if this happens when updating from a released version
Comment 4 Thomas Ehrnhoefer CLA 2013-07-19 16:29:36 EDT
ok, no, this happens on each review that I open. Once I manually select "Synchronize Incoming Changes" in the task editor, it renders. 
So this is a persistant issue.
Comment 5 Thomas Ehrnhoefer CLA 2013-07-19 16:31:36 EDT
could be related to bug 413363, as an error appeared in the error log a few minutes after I have seen this issue the first time
Comment 6 Sam Davis CLA 2013-07-22 12:53:39 EDT
Now that I think about it, maybe this only happens when upgrading from a weekly build. After you refresh the editor, does it happen again for the same review?
Comment 7 Thomas Ehrnhoefer CLA 2013-07-22 13:05:04 EDT
Yes. This happens again and again on every review I try. I actually reverted to the last released version as this together with the reappearing stack overflow from bug 413363 made the connector unusable for me.
Comment 8 Tomasz Zarna CLA 2013-07-24 10:42:19 EDT
When opening the editor @ReviewSetSection.createContent(FormToolkit, Composite)@ is called to create "Patch Sets" section and to reveal the current patch set. In Thomas' case (which I'm able to reproduce), @getReview().getSets()@ returns an empty collection, thus no patch set is displayed. However, when I synchronized the query containing the review first, the editor rendered as expected.
Comment 9 Thomas Ehrnhoefer CLA 2013-07-24 10:59:25 EDT
(In reply to comment #8)
> When opening the editor @ReviewSetSection.createContent(FormToolkit, Composite)@
> is called to create "Patch Sets" section and to reveal the current patch set. In
> Thomas' case (which I'm able to reproduce), @getReview().getSets()@ returns an
> empty collection, thus no patch set is displayed. However, when I synchronized
> the query containing the review first, the editor rendered as expected.
The interesting thing is that I had this over and over again, so whatever causes getSets() to be filled when I synchronize the task (from the open task editor), it doesn't get persisted. Closing the editor and reopening reproduces this (so not sure whether it's the same cause or not)
Comment 10 Steffen Pingel CLA 2013-07-24 11:20:15 EDT
I believe the behavior is expected in the sense that the section does not render when the data is not cached.

In Thomas case it sounds like the review caching is broken and hence it always happens. It's odd that there is no logging. Tomek, could you check if errors are expected to be logged if stuff can't be persisted?

Thomas, to recover you could try to delete the offline cache in workspace/.metadata/.mylyn/reviews_bin.
Comment 11 Thomas Ehrnhoefer CLA 2013-07-24 13:29:25 EDT
(In reply to comment #10)
> In Thomas case it sounds like the review caching is broken 
...which could be related to to the EMF stack overflow reported on bug 413363...
Comment 12 Thomas Ehrnhoefer CLA 2013-07-24 13:30:30 EDT
(In reply to comment #10)
> Thomas, to recover you could try to delete the offline cache in
> workspace/.metadata/.mylyn/reviews_bin.
I actually reverted to the last released Gerrit as I cannot afford to be impeded that much during the end of the release cycle :(.
Comment 13 Miles Parker CLA 2013-07-29 15:01:09 EDT
(In reply to comment #10)
> In Thomas case it sounds like the review caching is broken and hence it always
> happens. It's odd that there is no logging. Tomek, could you check if errors are
> expected to be logged if stuff can't be persisted?

Right. Bug 413363 is the cause of this. Otherwise as Steffen states, this is working as expected (better in fact, because it's not actually totally choking, it just won't persist properly.)

> Thomas, to recover you could try to delete the offline cache in
> workspace/.metadata/.mylyn/reviews_bin.

Thomas, as soon as release is over, please try deleting the cache. But *before* you do that :), I'd also like to see a copy of the cache if you can save it.
Comment 14 Miles Parker CLA 2013-07-30 18:13:16 EDT
I checked with Thomas and he is using a directory with spaces for workspace, e.g. "C:\work\workspaces\to work from". So I'm pretty sure this is a dup of bug 413363 which is likely a dup of bug 413480. :)

*** This bug has been marked as a duplicate of bug 413363 ***
Comment 15 Thomas Ehrnhoefer CLA 2013-08-06 03:49:02 EDT
Miles,

While it appears the stack overflow is not happening, I am now observing bug 414460, bug 414461 and bug 414464 (the latter sounds  a lot like it's related to this one and bug 413363).