Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] Change Log consumer with respect to PIT data

Subject: Grouper Developers Forum

List archive

[grouper-dev] Change Log consumer with respect to PIT data


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: "" <>
  • Subject: [grouper-dev] Change Log consumer with respect to PIT data
  • Date: Thu, 20 Dec 2018 15:53:48 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.163.15) smtp.mailfrom=osu.edu; internet2.edu; dkim=pass (signature was verified) header.d=osu.edu;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Authentication-results-original: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:uHaLZR09eU4z1zzFsmDT+DRfVm0co7zxezQtwd8ZseMUK/ad9pjvdHbS+e9qxAeQG9mDu7Qc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYAhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmiDkJOSMl8G/ZicJwjb5Urh2uqBFk347UeZ2ZOOZicq/BY98XQ3dKUMZLVyxGB4Oxd4UDAvcFPelCs4b9pEMCpgagCAa2HuPg1D9JjWLx06Eg3egqDAbL0xckH90UrHvUr8/5OLoMXe2716TIyi7Db+5M1Tjj9YfIbwksrPeRVrxzacrc0UYiGx/fglmNtYDoPSmZ2+YRv2SB8uZsSeOih3Y5pwxwvDSj2sIhhpXMi44I0F/I6Dl1zYM3KNC6Rk50fdupHZhUuiyYNIZ7R8EvTmVstSs6z7AJo5C7czUIxZkiyBPQcOCIf5aQ7hLtSumcIit0iXdgdb2lmxm/81Ovx+j4W8aqzllHoS9In93RuXwRyhPe78mKReVh8Uqv3zuEyhrd5fteIU8ukKrWM54hzaA0lpoUqUnNBjP7lkLqgKKZb0kq5/Cm5/n+brXhvZCTKZV4igbjMqQygcO/Bvk4Mg4TUGSB4eS8zrrj/VHnT7pWkv02k67ZsJbAKcQcu665HwtV0oEk6xa8FTupzNMYnXwfIFJEfhKIkZTpNknBLfzkF/uznkignTVxy/3EIrHtGIjBImTCnbv5eLZy8U9cyA49zdBF4JJUD6kML+n3WkDrqNPYDQU1PxGqz+vpE9h90ZgeWX+VDqCHLazSrEeE5vgzLOmUeI8VpDH9JuAq5/70in85hEcdcrez3ZcOdX+3AOpmLl6dYXrtmdcBDXwKshQkQOzrjl2CTSBcZ2y0X60i+jE3FpiqApneSYCw0/S923LxEYdRe3hLEBWAHGnAdoOYVu0KZT7IZMJtj3ZMAbe7TJI52AvruALk47thMufO/CAE79Tu2MUjtMPJkhRnvxZwBs+elymmRnt5jystAXV+iKp7qEd+jA7ZioB/mOEeGNBOsaAaGjwmPILRmrQpQ+v5XRjMK4/TEgSvX8mmDDctT9k4394JZQNnFs6/igzYhnvzUaQNmemTDYcvuuLH0n79Ktw16k6O1bJp1gN2BJITayv/2PU5rlWSYuyBiECFj+CvfKUY0jTK8TKE1nfIsU1FA0ZxV7nIR3YSehGQoNjktQvOTL6rXKwuKRAJidWDJa1DdsDzgB1ZTeyrJtnEYmywlmvxYHTAxr6FYIfwPWlI2z7ATkUIjlMS+2qLLw4zGn3nrm7DX3RiEFv1aBb0+PJl4HqwUk4zyVSMaEtsn7q48xIYn7qSUfQWi7UfpWEspygnEQ==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

All,

I have started trying to deal with a change log consumer and "[group/stem]
name changes". I have taken a stab at this in the past, but did not get very
far. This time I kind of have it working, but I don't like what I am seeing.
So I am guessing that either, or both, of these things are true at this point.
1) I am the only one doing this
2) I am doing something wrong

I will point out that:
I am working in the v2.3 universe.
I had to write some code ( AKA: isStemMarkedForSync(PITStem
parentFolder, PITAttributeDefName pitSyncAttribute) ) that uses
"GrouperDAOFactory.getFactory().getPITAttributeAssign()") to try to resolve
attribute assignments in the ancestors of a group/stem. Needing to dive that
deep into the Grouper API seems... wrong... but I found no other way to do
it. So clearly I could be doing things incorrectly here. :)



What I appear to be seeing is this.

Order of events:

1) UI user deletes a group.
2) Change Log Consumer (CLC) runs before "temp change log" daemon job runs
--> no events to process no problem.
3) "temp change log" daemon job runs ( now there are queued CLC events to be
processed )
4) Change Log Consumer (CLC) runs (again) after "temp change log" daemon job
runs --> events to process so processing starts.
Processing looks in PIT data for the "deleted group" and it finds it
but only "sometimes".
NOTE: If I throw an exception when the PIT group is not found then
the next time the CLC runs it likely finds the PIT group.

Problem/Question #1:
So it appears that I don't understand how the state of the PIT data
integrity ( with respect to the main repository integrity ) works from a
timeline perspective.



Also I think this sequence of events also leads to other issues (like the
intermediate states not making it into the PIT data at all.

1) UI user creates a group named "foo".
2) UI user renames group "foo" to "bar".
3) UI user renames group "bar" to "newFoo".

Problem/Question #2:
If those events happen "fast enough" then the CLC would see events
for all three, but the PIT data may never have the "foo" and/or "bar" group.
( At least I have not been able to find a way to find those objects. )
Even if the CLC throws several times the PIT data seems to never "get
all of the state changes".
Which can leave the CLC "throwing exceptions" and becoming
"stuck" on a given CLC event that it appears to never recover from.


So a few direct questions:
How is the PIT data constructed?
From the CLC or directly from the main repository? ( and at
what time/interval/process ? )
If it is from the main repository, that seems bad and
likely to have "gaps" if changes are made quickly.
If it is from the CLC then I don't understand how
what I am doing does not eventually find the data in the PIT. ( Maybe/likely
it is my code trying to deal with PIT data.)

I suspect the answer is that the PIT data is constructed on some "time
interval/batch" from the main repository and if enough changes happen in that
repository fast enough then the PIT become blind to the intermediate states.
Yet the CLC events have all of those intermediate states.

--
Carey Matthew




Archive powered by MHonArc 2.6.19.

Top of Page