[MGNLCACHE-181] Update from 5.5.4 to 5.5.5 fails at ehcache3 migration Created: 10/Jul/17  Updated: 22/Sep/17  Resolved: 02/Aug/17

Status: Closed
Project: Cache Modules
Component/s: ehcache3
Affects Version/s: 5.5.5
Fix Version/s: 5.5.6

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Antonín Juran
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLCACHE-178 Incorrect location of the ehcache3 di... Closed
Relates
relation
is related to MGNLCACHE-177 On Windows cache folder is not used a... Open
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Kromeriz 107
Story Points: 2

 Description   

We missed a string parameter in this statement

installContext.error(String.format("Can't move cache store {%s} to correct location {%s} due to {%s}. Please stop the webapp and move the directory manually.", oldDirectory, newDirectory), e);

At info.magnolia.module.cache.ehcache3.setup.MoveDiskStoreDirectoryTask.execute(MoveDiskStoreDirectoryTask.java:81)
Then in case of minor issue , it block the installation process instead of just showing cache moving issue.



 Comments   
Comment by Ronald Ten Berge [ 11/Jul/17 ]

Will this be fixed using a hotfix? Because this has broken our environment (public instance) and the only way to resolve this for now is a revert back to 5.5.4, but this could leave the JCR repository in a half-upgraded state.

Comment by Roman Kovařík [ 11/Jul/17 ]

Hello rtenberge,

can you move that directory manually before the upgrade (or just delete it if you don't care about the persisted cached items)?

Regards
Roman

Comment by Ronald Ten Berge [ 11/Jul/17 ]

Hi Roman Kovařík,

Can you point me to the correct directory to move/delete, because this information is missing from the warning message due to the MissingFormatArgumentException.

Regards,
Ronald

Comment by Roman Kovařík [ 11/Jul/17 ]

It should be mentioned in the task description (which you can see on the installation screen before the installation starts).

Generated at Sun Feb 11 23:53:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.