Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351294

Summary: Add timestamp values to "Resource is out of sync" message
Product: [Eclipse Project] Platform Reporter: Alfred Nathaniel <alfred.nathaniel>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: Szymon.Brandys, yevshif
Version: 3.7Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard: stalebug

Description Alfred Nathaniel CLA 2011-07-06 05:37:54 EDT
Build Identifier: 20110615-0604

We are using Eclipse on Vista with the workspace on C: but all projects on a Samba mounted ZFS on Solaris.  Since some time now there is the annoying behaviour that resources get out of sync in a fairly random fashion.  When doing a CVS update or Team Sync there is a fair probability that it will complain about a few files:

org.eclipse.core.internal.resources.ResourceException: Resource is out of sync with the file system: '...'.
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.write(FileSystemResourceManager.java:1076)
	at org.eclipse.core.internal.resources.File.internalSetContents(File.java:321)
	at org.eclipse.core.internal.resources.File.setContents(File.java:360)
	at org.eclipse.core.internal.resources.File.setContents(File.java:464)
	at org.eclipse.team.internal.ccvs.core.resources.EclipseFile.setContents(EclipseFile.java:198)
	at org.eclipse.team.internal.ccvs.core.client.Session.receiveFile(Session.java:801)

I don't blame Eclipse (appeared already in 3.6 and persists with 3.7) but I am at a loss where to look further (Windows / Samba / ZFS?).  It would be helpfull to know what the actual mismatch is.  Is it a seconds vs. millisecond resolution problem, a few seconds clock difference, or is one of the values zero?

Could you please include the mismatching timestamp values in the message for diagnosing the root problem.  Timestamp as long value would be fine.  If you choose to format the timestamp, please display with milliseconds resolution.


Reproducible: Sometimes

Steps to Reproduce:
1.Touch file outside Eclipse
2.Open file inside Eclipse
3.Message should read: Resource is out of sync with the file system: '[filename]' ([timestamp] vs. [timestamp]).
Comment 1 Lars Vogel CLA 2019-11-14 03:15:18 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.