Project

General

Profile

Actions

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.

Status:
Resolved
Priority:
Normal
Category:
workflow run manager
Target version:
Start date:
11/16/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4555

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)

Actions #1

Updated by Derik Barseghian about 15 years ago

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.

Actions #2

Updated by ben leinfelder about 15 years ago

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?

Actions #3

Updated by Derik Barseghian about 15 years ago

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.

Actions #4

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 4555

Actions

Also available in: Atom PDF