Think you found a bug? Report it here.
Load test results not getting saved due to error
prashanth.bvb Posts: 8
2/10/2021
|
I am running a load test execution for 13 scenario using 6 agents. The load test execution is going fine. But while saving the results, i am getting the following error. Due to this none of the results are getting saved apart from Agent details.
Below are the trace logs
01:31:27.057 - ---Begin saving results--- 01:31:27.758 - Saving Summary 01:31:28.555 - Saving Sessions 01:31:32.664 - Saving Transactions 01:31:34.305 - Saving Agents 01:31:34.977 - Saving VUs 01:31:35.617 - System.Exception: Duplicate key in StresStimulus.Results.Tables.VUResultTableItem ---> System.Data.Linq.DuplicateKeyException: Cannot add an entity with a key that is already in use. at System.Data.Linq.ChangeProcessor.TrackUntrackedObjects(MetaType type, Object item, Dictionary`2 visited) at System.Data.Linq.ChangeProcessor.TrackUntrackedObjects() at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) at StresStimulus.Results.TestResultSaver.trySubmitChanges() --- End of inner exception stack trace --- 01:31:36.133 - Saving Errors 01:31:36.758 - Saving Test Cases 01:31:36.961 - System.Exception: Duplicate key in StresStimulus.Results.Tables.VUResultTableItem ---> System.Data.Linq.DuplicateKeyException: Cannot add an entity with a key that is already in use. at System.Data.Linq.ChangeProcessor.TrackUntrackedObjects(MetaType type, Object item, Dictionary`2 visited) at System.Data.Linq.ChangeProcessor.TrackUntrackedObjects() at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) at StresStimulus.Results.TestResultSaver.trySubmitChanges() --- End of inner exception stack trace --- 01:31:37.039 - System.Exception: Duplicate key in StresStimulus.Results.Tables.VUResultTableItem ---> System.Data.Linq.DuplicateKeyException: Cannot add an entity with a key that is already in use. at System.Data.Linq.ChangeProcessor.TrackUntrackedObjects(MetaType type, Object item, Dictionary`2 visited) at System.Data.Linq.ChangeProcessor.TrackUntrackedObjects() at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) at StresStimulus.Results.TestResultSaver.trySubmitChanges() --- End of inner exception stack trace --- 01:31:37.039 - ---End saving results--- 01:31:37.711 - System.Data.Linq.DuplicateKeyException: Cannot add an entity with a key that is already in use. at System.Data.Linq.ChangeProcessor.TrackUntrackedObjects(MetaType type, Object item, Dictionary`2 visited) at System.Data.Linq.ChangeProcessor.TrackUntrackedObjects() at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) at StresStimulus.Runtime.PanelHelper.SaveGraphCurves(IGraphInfo[] graphs) 03:11:00.105 - End of test
|
|
0
link
|
George @StresStimulus Administrator Posts: 567
2/10/2021
|
Can you please check what version of StresStimulus you are using and are all the load agents are on the same version as the controller? If one of the agents uses an older StresStimulus version that misses a primary key field added in the newer version, it may cause a duplicate error.
Also, can you please describe the following information: - Cheers
|
|
0
link
|
Copyright © 2025 Stimulus Technology