Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] ChangeLogConsumer ... resubmit event to back of the queue?

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] ChangeLogConsumer ... resubmit event to back of the queue?


Chronological Thread 
  • From: "Bee-Lindgren, Bert" <>
  • To: "Gettes, Michael" <>, "Black, Carey M." <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] ChangeLogConsumer ... resubmit event to back of the queue?
  • Date: Mon, 10 Sep 2018 20:56:03 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:KCL+jh3vVVXyqmKhsmDT+DRfVm0co7zxezQtwd8ZsesWLPrxwZ3uMQTl6Ol3ixeRBMOHs60C07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwdFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QKsqUjq+8ahkVB7oiD8GNzEn9mHXltdwh79frB64uhBz35LYbISTOfFjfK3SYMkaSHJBUMhPSiJBHo2yYYgBD+UDPOZXs4byqkAUoheiGQWhHv/jxiNIi3LwwKY00/4hEQbD3AE4Ed4DrWrbo8vsOKkUUOC1yrTHzTrZb/xI3zfx8JXDfw0/rvGWQbJ8f9faxE40GAzblFWQtZbpMCiL2esTqmSb6+tgVeSyhG4osQF+vD6vy9wrionImoIZ0F/E+j9lwIkrOdK4SFR3bsC5H5tNriyXMZZ9TMA6Q2xwpio10KEKtYO+cSQX1Zgr2hvSa/KIfoSU/h7uUeiRLil3iX14fb+yghS//Vaix+HkS8W531hHojBbntXRtn0BzQHf58ydRvdg40utxS6D1w7N5exHPUw5kK/WJp49zbM/kpcetEvOETXqlErqiaKbckop9fSs5unieLrrpYKQOJJyhwrjKKohgNa/Dv49MgUWX2iU5+C81Lr78EPhXLhEieE6n6bAvJ3EPMoXu7e1AwhO3Yk98Rq/CCqm0MgDknkAMVJFfg+Ig5LxO1HUJ/D4EemwjEiwkDdqwPDGOKftApLQLnjflLfherF9601GxAUvytBf4opYCrAHIP3tRk/8rMLUAQUlPwCpxuvrFchx2p4bVGKBDaKVLL/evFqG5u0xLOSDeYoYtTP/JvQ75fPilXo5lkUcfamt05sXcne4HvF+LkqCf3XsmMsBHX0RsQUgUuPmkVmCUT9VZ3mvUKI8/C80CIS9AIfER4CtnKaN3CihEZ1KeG9JFlCMHW32eIqZRvcAcDiSLdN5kjwYSbihTJcs1R60tA/91rpnNvTb+jcBuZL+z9h6+ffTlQop+DxwDsSdyH2NT3pqkm8SRj822rx/rlJnyleFz6d4n+JUGcZN6PxUTwdpfaLbmqZVBszuVxmFNvKIQ1avT9HsSWU+Q84tzsQmfkh5Xdiuk0aHl2CAB7YelPjDL5Uu/7OU+j67b5J3z3/N1+941QIORdBSc2Cqm/gs2RLUAtuDuUiU0oKrc6gTxiPLsC+pwHCS9gkMWgNqTePPUH1aYkrQodvj60XqSL6yT7suLgZKyYiPJrYcOY6htklPWPq2YIeWWGm2gWrlQE/QnunWPoP3Z2UQ2jncA0EYkgcVuGyLLhU6Gjz+/jDFFDI7E1Xpbgus6uR4pH6hBm4MhwCRJwwEtfKu/wINw/mVSvcdxLUB7S0ssSkyFluwmtbXDdaPvQdnVKJdfZUy6UtK3mKfugBgbdSt
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

(This response is at least slightly related to the "Renaming a folder trigger.")



I generally have concerns with incremental-event processing and re-queuing/reordering because a membership-add failure might get re-queued and override a successful,subsequent membership-delete. (for example)


I think re-queuing should only be done to a different queue with different semantics: The re-queued message no longer means "Add Subject to a Group" but instead means "make a group right" or, perhaps, "make the user right in a group."


This is why PSPNG has a low-priority full-sync queue where these retries can go when incremental provisioning doesn't work.


Perhaps the Changelog feed should track how many failures a Changelog event experiences and move it to a full-sync (or user-sync-in-a-group) queue?


Also, (related to the "Renaming a folder trigger" thread), keep the system simple... there are lots of specialized situations that can occur. However, writing specialized handling of each one means that consumers get more specialized, probably faster, and more complicated. IMNSHO, if errors are infrequent, then it might be okay to use the (slow) Full-Sync hammer to fix all of them. At least, the dual-hammer (fast/incremental & slow/full) approach should be tried, instrumented and evaluated.


Getting back to the point of view of a changelog stream, I think this means to supply three streams:

a) The incremental events

b) The Refresh-Subject-In-Group events (for error'ed membership-changes)

c) The Refresh-Group events (for error'ed non-membership-changes)


A given consumer should be able to then combine (b&c) if they don't think (b) is worth maintaining.




From: <> on behalf of Gettes, Michael <>
Sent: Monday, September 10, 2018 2:01 PM
To: Black, Carey M.
Cc:
Subject: Re: [grouper-users] ChangeLogConsumer ... resubmit event to back of the queue?
 
I think a lot of what you want to do could be achieved with messaging… all dependent on the message broker you choose, of course.

/mrg

> On Sep 10, 2018, at 1:59 PM, Black, Carey M. <> wrote:
>
> All,
>
> I expect the answer is "yes", but I have yet to identify the "sample code that I am looking for". :)
>
> In some cases, I can see a desire to defer the processing of a specific event ( in the sequence of events) for a ChangeLogConsumer.
>        Is there a designed way to do that in the Grouper API?
>        Maybe a way to track the "number of times" the event was "deferrd"? ( To avoid "stuck events" that "retry forever". )
>
> In my case I can see some asyncronous dependeances that the ChangeLogConsumer would need to "just wait" till the other thing is "done" before it could continue with the event.
> If I could "come back to the event" then I would not have to "block and wait" on the event and hold up other events that could be processed that are in the queue behind the "async depenedent" event.
>
>
> Part of me would even like to "force these events into a different stream" so that they can be picked up by a different listner. ( Then that listner would need to "send the event back" to the first listner too. )
> I may just be asking for to much from the built in ChangeLog/Messaging stuff. ( But I hope not. )
>
>
> Anyone have a clue brick for me?
>
> --
> Carey Matthew
>
>




Archive powered by MHonArc 2.6.19.

Top of Page