<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Davy,</p>
    <p>thank you for the clarification. Yes, this looks like a bug in
      midPoint (to me).</p>
    <p>Best regards,<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Pavol Mederly
Software developer
evolveum.com</pre>
    <div class="moz-cite-prefix">On 03/08/2022 15:22, Davy Priem via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:96BD0D01-E982-41C1-A757-2E60F7DC6C13@vives.be">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hi,
      <div class=""><br class="">
      </div>
      <div class="">Thx for the response. It kept trying to create an AD
        account which had initially failed due to an attribute error. So
        there was no communication exception. Although I corrected the
        attribute error in the connector object and the account was
        afterwards correctly provisioned, it would keep trying to create
        the account again which obviously failed. I fixed it by manually
        deleting the pendingoperation from the shadow objects. It’s
        strange midpoint (4.4.2) postponed this operation and it would
        keep retrying for infinite.</div>
      <div class=""><br class="">
        <div class="">
          <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
            rgb(0, 0, 0); letter-spacing: normal; text-align: start;
            text-indent: 0px; text-transform: none; white-space: normal;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;
            text-decoration: none; word-wrap: break-word;
            -webkit-nbsp-mode: space; line-break: after-white-space;"
            class="">
            <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
              rgb(0, 0, 0); letter-spacing: normal; text-align: start;
              text-indent: 0px; text-transform: none; white-space:
              normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none; word-wrap: break-word;
              -webkit-nbsp-mode: space; line-break: after-white-space;"
              class="">
              <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
                rgb(0, 0, 0); letter-spacing: normal; text-align: start;
                text-indent: 0px; text-transform: none; white-space:
                normal; word-spacing: 0px; -webkit-text-stroke-width:
                0px; text-decoration: none; word-wrap: break-word;
                -webkit-nbsp-mode: space; line-break:
                after-white-space;" class="">
                <div><br class="">
                  Davy Priem<br class="">
                  <br class="">
                </div>
              </div>
            </div>
          </div>
          <br class="Apple-interchange-newline">
        </div>
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">Op 3 aug. 2022, om 13:17 heeft Pavol Mederly
              via midPoint <<a
                href="mailto:midpoint@lists.evolveum.com"
                class="moz-txt-link-freetext" moz-do-not-send="true">midpoint@lists.evolveum.com</a>>
              het volgende geschreven:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div class="">
                <p class="">Hello Davy,</p>
                <p class="">I am not an expert in this area, but the
                  source code says that - for example - # of attempts is
                  checked only when CommunicationException is handled.</p>
                <p class=""><a moz-do-not-send="true"
href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FEvolveum%2Fmidpoint%2Fblob%2F293f8ab6c23c976a8a4d6765d5c9d9a11325b3d1%2Fprovisioning%2Fprovisioning-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fevolveum%2Fmidpoint%2Fprovisioning%2Fimpl%2Fshadows%2Ferrors%2FCommunicationExceptionHandler.java%23L157-L171&data=05%7C01%7Cdavy.priem%40vives.be%7Ce8f4e880690f46133e4608da7541cf1c%7Cbb238cf566c946069852a9f3e1782d63%7C1%7C0%7C637951222757026953%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rA6qMDv3bjSbMerXVcNf2q4RQLNO8ZcABh%2F5dE%2FJVkM%3D&reserved=0"
originalsrc="https://github.com/Evolveum/midpoint/blob/293f8ab6c23c976a8a4d6765d5c9d9a11325b3d1/provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/errors/CommunicationExceptionHandler.java#L157-L171"
shash="aRwZe6qqbH+pW4x067jrEtKhxBOkjyYMqcZ+ptszQNq72QtCy07anQt1yC+HRb8cJEt6fh485iB2lx51REwWIsk8FOFkwR+O7e3put0nNbOABOl0rbRBgh9GBainqzpmlvuA6JGk+JdDKR+UmgrfGzgvoGutlmtVcYKNZIIEHJg="
                    class="moz-txt-link-freetext">https://github.com/Evolveum/midpoint/blob/293f8ab6c23c976a8a4d6765d5c9d9a11325b3d1/provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/errors/CommunicationExceptionHandler.java#L157-L171</a></p>
                <p class="">What was the reason of retrying in your
                  case?</p>
                <p class="">Best regards,<br class="">
                </p>
                <pre class="moz-signature" cols="72">-- 
Pavol Mederly
Software developer
<a href="http://evolveum.com" class="" moz-do-not-send="true">evolveum.com</a></pre>
                <div class="moz-cite-prefix">On 29/07/2022 14:35, Davy
                  Priem via midPoint wrote:<br class="">
                </div>
                <blockquote type="cite"
                  cite="mid:31912F10-D697-4AD6-A032-AD19DD02E6F6@vives.be"
                  class="">
                  Hi,
                  <div class=""><br class="">
                  </div>
                  <div class="">I have an issue with pending operations.
                    In my resource I’ve configured this according to
                    <a
href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.evolveum.com%2Fmidpoint%2Freference%2Fsynchronization%2Fconsistency%2F&data=05%7C01%7Cdavy.priem%40vives.be%7Ce8f4e880690f46133e4608da7541cf1c%7Cbb238cf566c946069852a9f3e1782d63%7C1%7C0%7C637951222757026953%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YWTOl%2FkiCpg9xtYmR9OKI5dhUsuuk%2BlAyD%2FtCjgABxo%3D&reserved=0"
originalsrc="https://docs.evolveum.com/midpoint/reference/synchronization/consistency/"
shash="pA6bziXtKDQOnNkCpsXo7dDSj9uQioFOZffiFKtiuHbMGfryoDZSMGfI5wOBOT2gOpQGnDlJp6ZpnGbwA5dF/QFXQ3PCGBPpcXzag4bMI919pUjPAtlVTCEph7kWqSqjQ5ERFkTr58aGEqZ9UXt+sQPY/YY79YrAOrUmmsaiLF8="
                      class="moz-txt-link-freetext"
                      moz-do-not-send="true">
https://docs.evolveum.com/midpoint/reference/synchronization/consistency/</a>.
                    I thought pending operations would be auto removed
                    when the shadow refresh task runs, but they keep on
                    retrying. Am I missing something?</div>
                  <div class=""><br class="">
                  </div>
                  <div class=""><br class="">
                  </div>
                  <div class=""><br class="">
                  </div>
                  <div class="">My consistency configuration in the
                    resource</div>
                  <div class="">
                    <pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:'JetBrains Mono',monospace;font-size:9,8pt;" class=""><span style="color:#e8bf6a;" class=""><consistency>
</span><span style="color:#e8bf6a;" class="">    <pendingOperationRetentionPeriod></span>P3D<span style="color:#e8bf6a;" class=""></pendingOperationRetentionPeriod>
</span><span style="color:#e8bf6a;" class="">    <operationRetryPeriod></span>PT15M<span style="color:#e8bf6a;" class=""></operationRetryPeriod>
</span><span style="color:#e8bf6a;" class=""></consistency></span></pre>
                    <div class=""><br class="">
                    </div>
                  </div>
                  <div class="">Although I still see some operations
                    keep on being retried. Eg snippet from shadow object
                    in that resource:</div>
                  <div class=""><br class="">
                  </div>
                  <div class=""><br class="">
                  </div>
                  <div class="">
                    <div class="">    <pendingOperation id="15"></div>
                    <div class="">        <type>retry</type></div>
                    <div class="">        <delta></div>
                    <div class="">           
                      <t:changeType>add</t:changeType></div>
                    <div class="">           
                      <t:objectType>c:ShadowType</t:objectType></div>
                    <div class="">            <t:objectToAdd
                      xsi:type="c:ShadowType"></div>
                    <div class="">               ….</div>
                    <div class="">            </t:objectToAdd></div>
                    <div class="">        </delta></div>
                    <div class="">       
<requestTimestamp>2022-05-06T14:54:35.161+02:00</requestTimestamp></div>
                    <div class="">       
<operationStartTimestamp>2022-05-06T14:54:35.161+02:00</operationStartTimestamp></div>
                    <div class="">       
<lastAttemptTimestamp>2022-07-29T14:23:36.839+02:00</lastAttemptTimestamp></div>
                    <div class="">       
                      <executionStatus>executing</executionStatus></div>
                    <div class="">       
                      <resultStatus>in_progress</resultStatus></div>
                    <div class="">       
                      <attemptNumber>7947</attemptNumber></div>
                    <div class="">    </pendingOperation></div>
                    <div class="">
                      <div dir="auto" style="caret-color: rgb(0, 0, 0);
                        letter-spacing: normal; text-align: start;
                        text-indent: 0px; text-transform: none;
                        white-space: normal; word-spacing: 0px;
                        -webkit-text-stroke-width: 0px; text-decoration:
                        none; word-wrap: break-word; -webkit-nbsp-mode:
                        space; line-break: after-white-space;" class="">
                        <div dir="auto" style="caret-color: rgb(0, 0,
                          0); letter-spacing: normal; text-align: start;
                          text-indent: 0px; text-transform: none;
                          white-space: normal; word-spacing: 0px;
                          -webkit-text-stroke-width: 0px;
                          text-decoration: none; word-wrap: break-word;
                          -webkit-nbsp-mode: space; line-break:
                          after-white-space;" class="">
                          <div dir="auto" style="caret-color: rgb(0, 0,
                            0); letter-spacing: normal; text-align:
                            start; text-indent: 0px; text-transform:
                            none; white-space: normal; word-spacing:
                            0px; -webkit-text-stroke-width: 0px;
                            text-decoration: none; word-wrap:
                            break-word; -webkit-nbsp-mode: space;
                            line-break: after-white-space;" class="">
                            <div class=""><br class="">
                              Davy Priem<br class="">
                              Hogeschool VIVES | Dienst studentenzaken,
                              informatie en technologie<br class="">
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br class="">
                  </div>
                  <br class="">
                  <fieldset class="moz-mime-attachment-header"></fieldset>
                  <pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:midPoint@lists.evolveum.com" moz-do-not-send="true">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.evolveum.com%2Fmailman%2Flistinfo%2Fmidpoint&data=05%7C01%7Cdavy.priem%40vives.be%7Ce8f4e880690f46133e4608da7541cf1c%7Cbb238cf566c946069852a9f3e1782d63%7C1%7C0%7C637951222757026953%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Au%2F0cv%2FiVamkIWi2HE6CT4r019C3Pw4jvO8cDG8RD0c%3D&reserved=0" originalsrc="https://lists.evolveum.com/mailman/listinfo/midpoint" shash="cZQyGYgvZw8V7EiH7dcQPZnqlig9Mx7tqG1CxlMhBGPYhRADZxXhe/ArQcFPEsQnIYO65HIHzDpoWbPvCXkPcQla9VU0SXh1RRWVhMwXpCYdW1UVaXuSQY/qzCQJ/wk2LEn1xpxXCyzaCjl8O5rgqnyU79ShdtQQADBp/om91hs=" moz-do-not-send="true">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                </blockquote>
              </div>
              _______________________________________________<br
                class="">
              midPoint mailing list<br class="">
              <a href="mailto:midPoint@lists.evolveum.com"
                class="moz-txt-link-freetext" moz-do-not-send="true">midPoint@lists.evolveum.com</a><br
                class="">
              <a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br
                class="">
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
  </body>
</html>