Author Topic: I just found an AG with no Segment Field...  (Read 2069 times)

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
I just found an AG with no Segment Field...
« on: August 07, 2019, 10:42:31 AM »
So at a customer site, I found an Application Group that was defined without a Segment Field.  Despite the warning about not defining an App Group without a Segment field, this definition made it all the way to production...  three years ago!

The Storage is set to 'Cache Only' and the expiration type is "Load", and the Load ID is coming back with zeros in the mix/max date fields...  But somehow, data is still expiring on an appropriate schedule.

I'm baffled as to how this is actually working.  Has anyone dealt with this before?

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

rjrussel

  • Full Member
  • ***
  • Posts: 139
    • View Profile
Re: I just found an AG with no Segment Field...
« Reply #1 on: August 07, 2019, 12:57:03 PM »
So what fields are in the application group? My guess is its being based on load date.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: I just found an AG with no Segment Field...
« Reply #2 on: August 07, 2019, 05:35:51 PM »
That's the thing...  There is a "DocumentDate" field, but it's not selected as segment.  There's no other date field defined. 

I've been thinking about it on and off for hours, and the only thing I can think of is, at load time, it's placed in the cache with an expiry date of today+90 days...  Then the cache expiration runs weekly, and the eligible files expire.  Either that, or maybe it's using a field from the arsload table.  I'll have to dig into it some more when I'm back on site.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

rjrussel

  • Full Member
  • ***
  • Posts: 139
    • View Profile
Re: I just found an AG with no Segment Field...
« Reply #3 on: August 08, 2019, 09:23:18 AM »
If you don't specify a segment field, expiration is simply based off the date the data was loaded. There is nothing else to it.

When you get back and look at the arsload table you will see a value set for EXP_DATE. That date is the date the data was loaded.

Thanks,
Rob


Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: I just found an AG with no Segment Field...
« Reply #4 on: August 10, 2019, 10:03:23 AM »
Cool.  Thanks for the insight Rob. 

I had a quick meeting with the customer on Friday, and I think we're just going to copy, correct, and reload the data by having the line of business resend everything.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Lars Bencze

  • Full Member
  • ***
  • Posts: 116
  • CMOD Expert at Skandia
    • View Profile
    • INACTIVE - Bezland Consulting
Re: I just found an AG with no Segment Field...
« Reply #5 on: September 11, 2019, 05:33:54 AM »
I've had several cases of upgrading customers to 9.5 (was it?) and beyond. When the date format is changed from small_int to TIMESTAMP, the ARSSEG table gets zeroes or minus 1 as min/max values. This causes searches against affected Application Groups to return zero results (spooking the canola out of the customer  :o :) ), even though the data is safely stored in their systems.
There is a PMR about this, PMR 39507,140,846, where the activities to solve this is documented. But I guess many/some of you have already done this.
OnDemand for MP expert. #Multiplatforms #Admin #Scripts #Performance #Support #Architecture #PDFIndexing #TSM/SP #DB2 #CustomSolutions #Integration #UserExits #Migrations #Workflow #ECM #Cloud #ODApi