che
che copied to clipboard
Snapshoting of machines failed if snapshot made second time for given machine
Reproduction Steps:
- Create new machine.
- Snapshot machine.
- Stop machine.
- Start machine from saved snapshot.
- Attempt to snapshot machine.
Expected behavior:
Snapshot is made overwriting old one, possible display confirmation dialog to user.
Observed behavior:
Error shown:
2016-09-05 14:30:13,003[aceManager-3600] [ERROR] [o.e.c.a.w.s.WorkspaceManager 745] - Snapshot with id 'snapshot******' or combination of workspace id 'workspace*****' & environment 'default' & machine name 'default' already exists
org.eclipse.che.api.machine.server.exception.SnapshotException: Snapshot with id 'snapshot*****' or combination of workspace id 'workspace******' & environment 'default' & machine name 'default' already exists
at com.codenvy.api.dao.mongo.SnapshotDaoImpl.saveSnapshot(SnapshotDaoImpl.java:92) ~[codenvy-hosted-platform-api-impl-4.7.0.jar:4.7.0]
at org.eclipse.che.api.workspace.server.WorkspaceManager.createSnapshotSync(WorkspaceManager.java:740) [che-core-api-workspace-4.7.0.jar:4.7.0]
at org.eclipse.che.api.workspace.server.WorkspaceManager.lambda$createSnapshot$0(WorkspaceManager.java:518) [che-core-api-workspace-4.7.0.jar:4.7.0]
at org.eclipse.che.api.workspace.server.WorkspaceManager$$Lambda$238/772546380.run(Unknown Source) [che-core-api-workspace-4.7.0.jar:4.7.0]
at org.eclipse.che.commons.lang.concurrent.CopyThreadLocalRunnable.run(CopyThreadLocalRunnable.java:28) [che-core-commons-lang-4.7.0.jar:4.7.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Che version: 4.7 OS and version: Centos 7.2 Docker version: 1.11.1 Che install: Codenvy 4.7
Additional information: This problem is reproduced only hosted version CHE
I think it is a blocker because snapshot feature works only 1 time.