-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve upgrade workflow for embedded Tomcat #5295
Improve upgrade workflow for embedded Tomcat #5295
Conversation
…fb_embedded_upgradeImprovements
…fb_embedded_upgradeImprovements
…fb_embedded_upgradeImprovements
File indexParent = FileContentService.get() != null | ||
? FileContentService.get().getSiteDefaultRoot() | ||
: FileUtil.getTempDirectory(); | ||
return new File(indexParent, ".labkey_full_text_index").getPath(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@labkey-stuartm @labkey-jony any preferences on how to name this file? With or without the .
prefix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mostly added that so that it wouldn't show up in the webdav
browser. (I think it excludes dot files)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think you're right - those are hidden in the webdav UI.
However, I hope these files won't be exposed anyway. They're not in an @files
subdirectory, are they?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're correct, they are not exposed. I was just confused by seeing the @files
directories in the webdav UI and assumed it was directly showing the file system. Further investigation does make me realize that there is a possibility of colliding with a project folder.
In order to avoid that, I see a few obvious solutions.
- Use a folder name that is already reserved (e.g.
@labkey_full_text_index
) - Add
.labkey_full_text_index
to the list of reserved project names (consider removing the.
) - Choose an entirely different location, maybe a sibling of
files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote for @labkey_full_text_index
. On some deployments, the file root is a mount point on the file system. I think by default having the full text search land on the same file system is a good default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was my thought as well. Thank you
…fb_embedded_upgradeImprovements
Rationale
Making migration from standalone to embedded tomcat a little smoother
Related Pull Requests
Changes