Environments are all WIndows 2008, some running 7.4.1 and some on 8.2.0.1.
I'm working on some established teamsite installations, and running into odd behavior with regards to creating an edition.
The first odd thing: it's not possible to manually create an edition. Navigating to any Editions folder and clicking "New Edition" results in the following error message:
Error: java.lang.NumberFormatException For input string: "1516370322361" <-- utc timestamp in milliseconds.
This happens regardless of the branch or environment - tested it in 7.4.1 and 8.2 on various installations (both dev and prod based) and ALL have the same error.
My first thought that someone had customized the create_edition functionality and it was now broken, but that doesn't seem to be the case. There's no indication of a customized create_edition.jsp or jar files related to teamsite, nor does any of their custom code contain any overwrites for CSBranch.publishEdition. I can't think of any explanation other than some kind of customization I'm not catching, though so I'm still chasing it. I spoke to the current dev team and they don't recall any customization to create_edition, but the installation was done a long time ago and this piece hasn't been touched since.
The second odd thing related to edition creation happens in workflow - the workflow stops dead at the create edition step. This happens occasionally and isn't reliably repeatable. It's not permissions based; the user who owns the task is a platform master, and it works 99% of the time.
Workflow proceeds as normal, up until the "Create edition" step. This step is a java class that's quite straight forward - it just grabs the UTC timestamp, and calls CSBranch.publishEdition passing an automatically generated name, description, and boolean true to force creation. At this point it just stops - no error messages are recorded anywhere. I've checked all the logs in ApplicationContainer and iw-home/local/logs for any possible messages around the timestamp of the last occurrence with no luck.
They do publish an edition with every deployment, which means branches have somewhere in the neighbourhood of 8000 editions. I know the excess editions impacting teamsite are a thing of the past, but part of me is thinking "well... maybe?"
The two things I think it could be are:
- A timeout because of how long it takes to create an edition. It’s possible that something is clogging up the works and when the system is under high usage the step is simply not returning a message quickly enough.
- Name collision. Occasionally, the name of an associated log file is already taken, and this causes the workflow to fail. I’ve seen this happen in the past. Though I think this is not likely since names are generated with UTC millisecond timestamp names.
Of the two possibilities, I’d say #1 is more likely.
I'll have a chance to do a fresh install on another environment next week. If the create edition link bug isn't there on install, but pops up on code deployment, at least I'll have another data point.
Not sure what my actual question is other than has anyone got any ideas? Because I'm out of them right now.