- Notifications
You must be signed in to change notification settings - Fork235
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
JOSDK v4.9.7 I have a resource whose status includes a list of conditions. This is serialised as an array. In my reconcile method I update the conditions list like so: In practice I find that I get duplicate entries appearing in the conditions list, usually differing only by When I look at logs, I see the two instances of the condition apparently added by two reconciliation cycles, ms apart. One follows the other (no overlap), but they can take place on different threads. They both seem to operate on the same resource version. The logs look something like: As I undertand it:
Can you suggest why this may be happening and how I might guard against it? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 9 replies
-
Hi@teabot , yeah, it's probably not a concurrency issue, I don't recall any tbh. I would suggest to log the requests and responses, and see if something buils up from that, there are somethimes funky issues with SSA. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I think for the primary, SSA is not used. The update of the CR after reconcile seems to follow this path: I am supposing that |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hi could you pls add stack trace with line numbers? So you are using v4.9.7 ? You don't have to use UpdateControl , you can just do SSA using the client. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Sure, here is the trace: |
BetaWas this translation helpful?Give feedback.
All reactions
-
I think my options are one of:
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 1❤️ 1🚀 1
-
yes, in you case option 2. would be trivial. |
BetaWas this translation helpful?Give feedback.