-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Concurrency error when updating a settings part for content type #7449
Comments
Yes there is a new This may happen when we update the same document (same Did you see the same when updating another type part settings? |
No , other part settings do not cause the issue.
Is there any workaround? |
Sorry i was not able to repro Can you share a testing app so that i could repro About the MARS issue most of the time it is due to a non awaited async call in a driver / handler / index provider You are storing content type definitions in the database, not in the It is uncommon that a type part settings hold fake content items ;) Creating them use the content type definitions that you are updating in your type part definition driver, hmm, but it doesn't explain the issue. |
Found out the culprit with the MARS issue. It was a non awaited call in one of my modules, as you said. |
@jtkech reopening this as am getting similar MARS related issues. Here's a repro
MARS error. Here's a sample migration I can get to fail 3/4 times
socialmetasettings.recipe.json.zip if it doesn't fail this helps make it fail
Sometimes it seems like it needs to be delayed (I saw this first on a remote server connection to azure, which is always slower) Adapting the migration to use Buried underneath the open data reader exception (was only visible in the logs), is the Ping me if I can help with anymore details P.S. doesn't happen with sqlite at all... |
I ran into this as well this morning. Repro steps:
This also happens with feature dependencies.
Exception shown:
If this line is moved at the top of the method, enabling the module fails. Enabling this feature directly fails as well because it is dependent on the hackathon feature. Enabling them one at a time, in order works. (Hackathon, then Judging) |
Yes, maybe different issues here but not so easy to repro, may be good to have a testing app to be able to repro each individual issue, and / or don't hesitate to ping me on skipe. But "Good" new, I just could reproduce the Note: Update: So yes if i remove the following
I don't get the
So okay, i'm now able to repro both issues, i'm working on ;) For now, about the Can be also overriden by code easily per document type Update: the 2 exceptions maybe interrelated, but setting only
But would be better to keep this option to true for these 2 documents, so i need to find exactly what happens. |
Just did a PR #7516, not sure at 100% so if you can give it a try to see if it fixes your issues |
Tried the pr with my case , using in part type settings editor :
but did not resolve issue. |
Yes, i think it is another use case as |
@jtkech tried with my scenario. Without your branch fails. |
@deanmarcussen good to know! @jptissot can you try it to confirm when you will have time @giannik i tried the same kind of loop using So it seems that something else happens, maybe in a custom handler, I could help if you have a testing app to repro, in the meantime you could try this workaround
|
thanks @jtkech Ill try to make a testing app in the weekend and send it here. |
@giannik cool, thanks @jptissot can you try #7516 if you have time, it works for @deanmarcussen, would be good to confirm it also fixes your issue ;) |
@jtkech The error occurs from the workflows module here :
and specifically from this line when return is called : |
@jptissot can you try #7516 if you have time, it works for @deanmarcussen, would be good to confirm it also fixes your issue ;) @giannik yes the Do you have any workflow using a |
No i dont have workflow defintion using *ContentUpdatedEvent. *
As seen in the return call which gets called when no workflow matches
the event.
…On Fri, Nov 6, 2020 at 8:47 PM Jean-Thierry Kéchichian < ***@***.***> wrote:
@jptissot <https://github.com/jptissot> can you try #7516
<#7516> if you have time,
it works for @deanmarcussen <https://github.com/deanmarcussen>, would be
good to confirm it also fixes your issue ;)
@giannik <https://github.com/giannik> yes the NewAsync() and
UpdateEditorAsync() in your loop in your
ContentTypePartDefinitionDisplayDriver will trigger workflow events, i
will think about this use case this night.
*Do you have any workflow using a ContentUpdatedEvent*?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7449 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALSLNK4JA5YM26BF32WXLTSORAD3ANCNFSM4TFGMREQ>
.
|
@giannik okay thanks, i assume this is why i was not able to repro as i didn't enable the |
@giannik "Good" new, just tried, now i can repro ;) What i can see right now, is that on each loop |
@giannik okay i think i found a little issue on YesSql side There is a case where the document version is incremented but the related Meanwhile, for your use case you can use the following workaround in the
If you don't use the full source code, i can show you how to do it through the appsettings.json, let me know Update: sebastienros/yessql#287 Update: I built YesSql locally and made packages in a local feed, so i could try my YesSql updates, I can confirm that it fixes your issue but you have to wait that it get merged on YesSql and then the new version referenced by OC. Note: For infos, to be able to build OC in this context i needed to do some adaptations as currently we don't reference the last dev of YesSql. |
@jtkech thank you very very much. |
It doesn't find So better to open another issue. Sorry I can't repro. Which setup recipe? Does it happen every time you create a tenant or only once? So, maybe i will merge #7516 as it fixes the issue of @deanmarcussen For your original issue it will be fixed through sebastienros/yessql#287 Merging #7516 will close this issue but feel free to open any new issue e.g. related to your last problem |
sure , will open it as a new issue. |
@jtkech I just tested this today and it fixes the issue I was having. |
@jptissot cool, thanks for testing ;) it was important to confirm it, thanks again |
From the admin a try to update/save the settings for a custom part In my content type.
When hitting Save button in the admin I get the following error :
Seems that it has to do with the recent Distributed cache pr (#5249) that was merged
This is the code in my settingsdisplay driver :
The updateAsync calls some contentItemDisplayManager.UpdateEditorAsync()
which i beleive is the culprit.
If i comment out this call then the error disappears.
Any ideas @jtkech ?
The text was updated successfully, but these errors were encountered: