Bug #4555
closed
error exporting etc >1 run with same name but different wf
Added by Derik Barseghian about 15 years ago.
Updated about 15 years ago.
Category:
workflow run manager
Description
If you export or open more than one run where the workflow names are the same but the workflows are different, you get an error:
ptolemy.kernel.util.IllegalActionException: Error building the KAR file: duplicate entry: 00-StatisticalSummary.xml
at org.kepler.kar.KARBuilder.generateKAR(KARBuilder.java:236)
I fixed the workflow duplicate entry error in r21693, but you can still get a ROML duplicate entry error:
Failed to create kar file: Error building the KAR file: duplicate entry: 00-StatisticalSummary_ROML.xml
ptolemy.kernel.util.IllegalActionException: Error building the KAR file: duplicate entry: 00-StatisticalSummary_ROML.xml
at org.kepler.kar.KARBuilder.generateKAR(KARBuilder.java:241)
at org.kepler.provenance.kar.ExportRunsToKAR.exportRunsToKAR(ExportRunsToKAR.java:142)
Procedure:
1) run a workflow
2) modify workflow, run again
3) using WRM export the two runs to a kar
4) export the two runs again to a different kar
If you unzip the first kar you'll see it doesn't contain a 00-StatisticalSummary_ROML.xml.
put a change in yesterday that will prevent a "blank" ROML from being serialized. But I can definitey imagine a case where this happens when exporting multiple runs.
We really don't want the 00-Statistical_summary_ROML.xml entry at all when we export runs - it is not tied to any particular run. I'm not sure how we can omit that, however, since the KAREntryHandlers have no knowledge of each other or under what context they are being invoked.
Should the KAR builder continue on even when the dupe error is encountered?
Ok, fixed in r21769 by adding a little check in KARBuilder right before createKAR that removes karEntry "duplicates", where duplicate is defined as same name + lsid.
Original Bugzilla ID was 4555
Also available in: Atom
PDF