Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 415014 - Lower sequence number for root during periodic workspace save
Summary: Lower sequence number for root during periodic workspace save
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 4.4 M2   Edit
Assignee: Szymon Ptaszkiewicz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 343977
Blocks:
  Show dependency tree
 
Reported: 2013-08-14 00:21 EDT by Dmitriy Aleksandrovich CLA
Modified: 2019-07-03 01:05 EDT (History)
7 users (show)

See Also:


Attachments
Zipped Logs (111.83 KB, application/x-zip-compressed)
2014-03-13 04:47 EDT, Martin Oberhuber CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Aleksandrovich CLA 2013-08-14 00:21:40 EDT
Periodic problem
----------------------------------------------------
Problem occured
Periodic workspace. has encountered a problem.
An internal error occured during: "Periodic workspace save."
----------------------------------------------------
An internal error occurred during: "Periodic workspace save.".
Cannot set lower sequence number for root (previous: 12, new: 11). Location: C:\Dropbox\AndroidEclipse\.metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources
----------------------------------------------------

I uses DROPBOX for save my all projects.

Sancs.
Comment 1 Szymon Ptaszkiewicz CLA 2013-08-14 07:02:15 EDT
Can you please attach .log file from your workspace/.metadata folder? Please answer also the following questions:
1. How many people use your projects on dropbox?
2. Is it used at the same time by more than one user?
3. Do you share only projects or the whole workspace folder?
4. What is your Eclipse version?
5. What additional plugins are installed in your Eclipse instance?
6. What had happened just before the error occurred?
Thanks!
Comment 2 Szymon Ptaszkiewicz CLA 2013-08-21 04:15:54 EDT
It seems that master table in your workspace is corrupted. Can you please attach the .metadata folder from the affected workspace if the problem still occurs?
Comment 3 Szymon Ptaszkiewicz CLA 2013-08-23 08:49:59 EDT
Let's try to fix it in 4.4.
Comment 4 Szymon Ptaszkiewicz CLA 2013-08-23 11:58:46 EDT
As mentioned in bug 149121 comment 50, there should be only one instance of master table to avoid stale cached data. Fixed in master:

http://git.eclipse.org/c/platform/eclipse.platform.resources.git/commit/?id=74758a62c4f8da5c9fc98aff832dfa08de41813a
Comment 5 Endre Stølsvik CLA 2013-10-04 12:19:33 EDT
Are there any workarounds?
Comment 6 Szymon Ptaszkiewicz CLA 2013-10-06 06:33:47 EDT
(In reply to Endre Stølsvik from comment #5)
> Are there any workarounds?

There are no workarounds, because this error message is a good thing. It tells you that for some reason your workspace was in a bad state and this error message prevented your workspace from being corrupted.

The fix that tries to prevent from that bad state was already pushed to master and is available in Eclipse 4.4 M2. You can download it here: http://download.eclipse.org/eclipse/downloads/

If you know steps how to reproduce on demand the error message mentioned in comment 0 please let me know.
Comment 7 Martin Oberhuber CLA 2014-03-11 23:07:29 EDT
CQ:WIND00-WB4-2543

Thanks for the detailed analysis. Some of our users have also seen this, and now we can tell them that the message is a good thing.
Comment 8 Szymon Ptaszkiewicz CLA 2014-03-12 08:43:32 EDT
(In reply to Martin Oberhuber from comment #7)
> Thanks for the detailed analysis. Some of our users have also seen this, and
> now we can tell them that the message is a good thing.

If you can get any additional information about circumstances when this happens, please let me know.
Comment 9 Martin Oberhuber CLA 2014-03-13 04:47:20 EDT
Created attachment 240845 [details]
Zipped Logs

Zipped Logs attached. Our user wrote:

"
I encountered the same error. The Details in the dialog says:

An internal error occurred during: "Periodic workspace save.".
Cannot set lower sequence number for root (previous: 6, new: 3). Location: G:\wrinstalls\vx7-20140307\workspace\.metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources

I'm adding my workbench logs. wblogs-periodicsave.zip 

I don't remember exactly what I was doing when this happened. I was on a Webex showing Workbench and working with the Layer Project when it happened. 
"
Comment 10 Alexis Drogoul CLA 2016-01-22 05:36:25 EST
Hi,

I encounter a similar error in an RCP application, built with Eclipse 4.5. It happens a bit randomly, and it is quite annoying to say the least. I understand it is a good thing, but is there any way to make it a silent warning rather than a pop-up that gives our users the feeling something is going wrong… ?

Cheers
Alexis
Comment 11 Szymon Ptaszkiewicz CLA 2016-01-22 06:16:07 EST
(In reply to Alexis Drogoul from comment #10)
> Hi,
> 
> I encounter a similar error in an RCP application, built with Eclipse 4.5.
> It happens a bit randomly, and it is quite annoying to say the least. I
> understand it is a good thing, but is there any way to make it a silent
> warning rather than a pop-up that gives our users the feeling something is
> going wrong… ?
> 
> Cheers
> Alexis

This exception prevents from workspace corruption so it is important to let the user know about it. If users have the feeling something is wrong, then they have good feeling because it is a very serious problem. It used to cause data loss in case users hadn't known how to recover properly corrupted workspace. If it happens when you can't do anything to fix it like during startup, then only a warning to the log file is written. Otherwise, an error dialog is appropriate, like in case of other serious problems e.g. OutOfMemoryErrors.

If you can reproduce this problem with 4.5 or later, please open a new bug and provide steps how to reproduce it, e.g. with plugins from your RCP application or sequence of steps leading to this exception that will allows us to investigate what's happening there. We don't know much about circumstances when this error happens, so any help to track it is much appreciated.
Comment 12 Krasimir Kostadinov CLA 2019-07-03 01:05:41 EDT
Recently we encounter same exception.
The root cause was two eclipse instances which used same workspace location.
The workspace was located in NFS shared storage and seems WS/.metadata/.lock file protection does not work in this case.
Regards,
Krasimir kostadinov