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

Bug 419761

Summary: [server] Delete empty orphaned folders during migration
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne, simon_kaegi
Version: 4.0Flags: simon_kaegi: pmc_approved+
john.arthorne: review+
Target Milestone: 4.0 RC3   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2013-10-17 16:08:47 EDT
We have had metadata issues on both orion.eclipse.org and orionhub.eclipse.org. As a result, there are empty orphaned folders left on the server.

During MetaData migration, was already deleting orphaned user and organization folders, but I was not deleting orphaned project folders that are now sitting at the workspace folder level and I was also not logging any message about them.

I will handle this during migration:

2013-10-17 16:00:23.603 [Start Level Event Dispatcher] DEBUG org.eclipse.orion.server.config - Deleted empty workspace folder: /workspace/foo/F/F/E
2013-10-17 16:00:23.603 [Start Level Event Dispatcher] DEBUG org.eclipse.orion.server.config - Deleted empty user folder: /workspace/foo/F/F
2013-10-17 16:00:23.604 [Start Level Event Dispatcher] DEBUG org.eclipse.orion.server.config - Deleted empty organization folder: /workspace/foo/F

Any non empty folder that could contain old project content is not deleted, but it is still orphaned and you get the error:

2013-10-17 16:04:29.588 [Worker-0] WARN  org.eclipse.orion.server.config - Meta File Error, root contains invalid metadata: folder /workspace/foo/B/B
Comment 2 John Arthorne CLA 2013-10-17 16:30:47 EDT
Looks good.