Skip to content
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

Merged

Conversation

labkey-tchad
Copy link
Member

Rationale

Making migration from standalone to embedded tomcat a little smoother

Related Pull Requests

Changes

  • Update default full-text search index location
  • Make heap and thread dump trigger files disappear when server shuts down

@labkey-tchad labkey-tchad marked this pull request as ready for review March 6, 2024 01:14
File indexParent = FileContentService.get() != null
? FileContentService.get().getSiteDefaultRoot()
: FileUtil.getTempDirectory();
return new File(indexParent, ".labkey_full_text_index").getPath();
Copy link
Contributor

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?

Copy link
Member Author

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)

Copy link
Contributor

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?

Copy link
Member Author

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.

  1. Use a folder name that is already reserved (e.g. @labkey_full_text_index)
  2. Add .labkey_full_text_index to the list of reserved project names (consider removing the .)
  3. Choose an entirely different location, maybe a sibling of files

Copy link
Contributor

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.

Copy link
Member Author

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

@labkey-tchad labkey-tchad merged commit 777b2ec into release24.3-SNAPSHOT Mar 12, 2024
3 of 5 checks passed
@labkey-tchad labkey-tchad deleted the 24.3_fb_embedded_upgradeImprovements branch March 12, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LabKey CI] Improve upgrade workflow for embedded Tomcat
2 participants