Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #774

Merged
merged 13 commits into from
Apr 26, 2023
Merged

Fixes #774

merged 13 commits into from
Apr 26, 2023

Conversation

martijn00
Copy link
Contributor

@martijn00 martijn00 commented Apr 25, 2023

Also fixes #772

@ebozduman

@martijn00
Copy link
Contributor Author

@ebozduman can you merge?

@ebozduman
Copy link
Collaborator

@martijn00

I still see the same problem when CopyObject_Test8 functional test runs against framework net4.8.
Your fix looks complete, but still the same error:

{"name":"minio-dotnet : CopyObject_Test8","function":"Task<CopyObjectResult> CopyObjectAsync(CopyObjectArgs args, CancellationToken cancellationToken = default(CancellationToken))","description":"Tests whether CopyObject with metadata replacement passes","args":{"bucketName":"minio-dotnet-example-ehym8w6609mh64g","objectName":"bf@ghe+#h+","destBucketName":"minio-dotnet-example-fwoxevgbqvmaec6","destObjectName":"minio-dotnet-example-hfko4gkvpn","data":"1KB","size":"1KB","copyconditions":"x-amz-metadata-directive:REPLACE"},"duration":1051,"status":"FAIL","alert":"Collection was modified; enumeration operation may not execute.","message":"System.InvalidOperationException: Collection was modified; enumeration operation may not execute.\n  at System.Collections.Generic.Dictionary`2+Enumerator[TKey,TValue].MoveNext () [0x00013] in <de882a77e7c14f8ba5d298093dde82b2>:0 \n  at Minio.CopyObjectArgs.Populate () [0x000fc] in <ae63953852d443a790f9788c050ef577>:0 \n  at Minio.CopyObjectArgs.Validate () [0x00093] in <ae63953852d443a790f9788c050ef577>:0 \n  at Minio.MinioClient.CopyObjectAsync (Minio.CopyObjectArgs args, System.Threading.CancellationToken cancellationToken) [0x0023f] in <ae63953852d443a790f9788c050ef577>:0 \n  at Minio.Functional.Tests.FunctionalTest.CopyObject_Test8 (Minio.MinioClient minio) [0x00575] in <87b15959cb13430c973a5940771c37d1>:0 "}

Unhandled Exception:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.Dictionary`2+Enumerator[TKey,TValue].MoveNext () [0x00013] in <de882a77e7c14f8ba5d298093dde82b2>:0 
  at Minio.CopyObjectArgs.Populate () [0x000fc] in <ae63953852d443a790f9788c050ef577>:0 
  at Minio.CopyObjectArgs.Validate () [0x00093] in <ae63953852d443a790f9788c050ef577>:0 
  at Minio.MinioClient.CopyObjectAsync (Minio.CopyObjectArgs args, System.Threading.CancellationToken cancellationToken) [0x0023f] in <ae63953852d443a790f9788c050ef577>:0 
  at Minio.Functional.Tests.FunctionalTest.CopyObject_Test8 (Minio.MinioClient minio) [0x0077f] in <87b15959cb13430c973a5940771c37d1>:0 
  at Minio.Functional.Tests.FunctionalTest.CopyObject_Test8 (Minio.MinioClient minio) [0x008a2] in <87b15959cb13430c973a5940771c37d1>:0 
  at Minio.Functional.Tests.Program.Main (System.String[] args) [0x004db] in <87b15959cb13430c973a5940771c37d1>:0 
  at Minio.Functional.Tests.Program.<Main> (System.String[] args) [0x0000c] in <87b15959cb13430c973a5940771c37d1>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.Dictionary`2+Enumerator[TKey,TValue].MoveNext () [0x00013] in <de882a77e7c14f8ba5d298093dde82b2>:0 
  at Minio.CopyObjectArgs.Populate () [0x000fc] in <ae63953852d443a790f9788c050ef577>:0 
  at Minio.CopyObjectArgs.Validate () [0x00093] in <ae63953852d443a790f9788c050ef577>:0 
  at Minio.MinioClient.CopyObjectAsync (Minio.CopyObjectArgs args, System.Threading.CancellationToken cancellationToken) [0x0023f] in <ae63953852d443a790f9788c050ef577>:0 
  at Minio.Functional.Tests.FunctionalTest.CopyObject_Test8 (Minio.MinioClient minio) [0x0077f] in <87b15959cb13430c973a5940771c37d1>:0 
  at Minio.Functional.Tests.FunctionalTest.CopyObject_Test8 (Minio.MinioClient minio) [0x008a2] in <87b15959cb13430c973a5940771c37d1>:0 
  at Minio.Functional.Tests.Program.Main (System.String[] args) [0x004db] in <87b15959cb13430c973a5940771c37d1>:0 
  at Minio.Functional.Tests.Program.<Main> (System.String[] args) [0x0000c] in <87b15959cb13430c973a5940771c37d1>:0 

@martijn00
Copy link
Contributor Author

@ebozduman are you sure you pulled in the latest code from this branch? I explicetly test this on net4.8. I run CopyObject_Test8 again just now on 4.8 and it works fine now. Is there something I miss here?

@ebozduman
Copy link
Collaborator

let me check again

Minio/DataModel/AccessCredentials.cs Outdated Show resolved Hide resolved
@ebozduman
Copy link
Collaborator

Yes. CopyObject_Test8 works.
I forgot to remove Minio 5.0.0 package in my csproj file.

@martijn00
Copy link
Contributor Author

@ebozduman I've fixed the remark. Can you run CI again and merge?

Minio/DataModel/AccessCredentials.cs Outdated Show resolved Hide resolved
@martijn00
Copy link
Contributor Author

@ebozduman good find. Fixed now.

Copy link
Collaborator

@ebozduman ebozduman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ebozduman ebozduman merged commit 66cef4f into minio:master Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 functional tests fail when run against net48
2 participants