Retrieve metadata freezes

Issue #499 resolved
Julio Enrique created an issue

I updated the Illuiminated cloud version and when I'm trying to retrieve metadata the loading popup gets freezed.

Comments (11)

  1. Scott Wells repo owner

    Julio, does this happen consistently? If reproducible, would you mind adding the following under Help>Debug Log Settings and reproducing it:

    #com.illuminatedcloud.intellij.builder.ForceComMetadataRetriever
    

    Then please send me the resulting idea.log using Help>Show Log in Explorer/Finder so I can see where it's hanging.

  2. Julio Enrique reporter

    Sure, I'm attaching it and adding the exception msg: "Caused by: org.apache.cxf.binding.soap.SoapFault: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1960066401-234192 (765673756)"

  3. Scott Wells repo owner

    Thanks, Julio. So the call that's being made to the Salesforce APIs is for MetadataAPI.listMetadata(). Unfortunately this log doesn't include all of the details. Would you mind adding one more class for debug logging?

    #com.illuminatedcloud.intellij.builder.ForceComBuilderUtil
    

    Hopefully that will tell us exactly which metadata type is causing the issue.

    I wouldn't have expected this to stall out the entire retrieval process, though. There's obviously something for me to fix in there, though by "fix" what I mean is to omit whatever metadata type(s) are causing this issue. Let's see what it is and then we'll see what the right way to proceed is.

  4. Scott Wells repo owner

    Julio, I need to step out for a bit. Hopefully the new debug log will tell you the exact metadata types which are causing the issue on the Salesforce side. Please provide that and I'll take a look when I get back. You might be able to work around the issue by removing those types from your metadata subscription.

  5. Julio Enrique reporter

    Attaching the new log. I could finally retrieve the metada but I took around 30 min to do it, since in the previous versions it took only a few minutes.

  6. Scott Wells repo owner

    Thanks for the log. I'm not seeing the actual retrieval in here, just the listing of metadata. I can see the metadata types that are causing the errors, but it turns out that I am doing the right thing there and treating those as warnings instead of errors.

    As for the retrieval taking a long time, that's almost certainly happening on the Salesforce server side. I haven't changed anything in Illuminated Cloud's retrieval implementation in quite a long time, but I do know that there have been numerous issues with bulk metadata operations taking a LONG time to complete recently, especially in certain pods (na35 in particular has been bad). From Illuminated Cloud's perspective, all of the time is spent polling the server asking whether the operation has completed or not. We could confirm that definitively with a full retrieval debug log. Assuming that's what's happening here, I can connect you to some folks at Salesforce who have been investigating these issues on their side.

  7. Julio Enrique reporter

    I tried it some more times and now it's taking just a few seconds to retrieve the metadata. I think that it was taking a lot of time because it was the first time of the retrieve, could that be the issue? I think we can close it for now, thank you very much for your feedback!

  8. Julio Enrique reporter

    Ok thanks. I'm currently working with a haevy org, so I assume that we can have lot of performance issues with the salesforce server. When working with the IDE we try to work only with the basics (apex, triggers, vf componentes & vf pages)

  9. Scott Wells repo owner

    Yeah, let's resolve this for now. It definitely looks like the underlying issue was transient slow server performance. If it becomes a more frequent issue, let's capture debug logs that we can use when talking to Salesforce.

  10. Log in to comment