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

Add \log.path\ Configuration Property to Presto #22271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Akanksha-kedia
Copy link
Contributor

Description

This PR adds a new configuration property log.path to Presto. This property specifies the path to the log file used by Presto. The path is relative to the data directory. This addition comes after the changes introduced in Pull Request 71.

Motivation and Context

The motivation behind this change is to give users the ability to specify their own path for the server log file. This can be useful in scenarios where the default log file location needs to be changed due to system constraints or personal preference.

Impact

no impact.

Test Plan

Add the log.path property to the Presto configuration.
2. Start Presto and check the specified log file path to ensure that logging is happening at the correct location.
3. Change the log.path property value and restart Presto to ensure the new value is taken into effect.

Other Details:

This PR needs to be merged along with a related PR in the airlift repository. The airlift PR adjusts the launcher.py script to honor the log.path property. At present, even if we set this property, the default values from launcher.py override it, as shown in the attached screenshots. This is incorrect behavior - if a user sets the log.path property, that value should be used instead of the default.
image1
image2
image3

Contributor checklist

  • Please make sure your submission complies with our development, formatting, commit message, and attribution guidelines.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.

Release Notes

Please follow release notes guidelines and fill in the release notes below.

== RELEASE NOTES ==

General Changes
* ...
* ...

Hive Changes
* ...
* ...

If release note is NOT required, use:

== NO RELEASE NOTE ==

@Akanksha-kedia
Copy link
Contributor Author

@tdcmeehan please review @steveburnett
Screenshot 2024-03-21 at 5 35 12 PM

Copy link

Codenotify: Notifying subscribers in CODENOTIFY files for diff 2216cc6...db0b26f.

Notify File(s)
@steveburnett presto-docs/src/main/sphinx/admin/properties.rst

@github-actions github-actions bot added the docs label Mar 21, 2024
@steveburnett
Copy link
Contributor

Please update the release note entry to

== NO RELEASE NOTE ==

@steveburnett
Copy link
Contributor

@tdcmeehan, the doc here looks good in a local build. Asking you to review to check the technical accuracy of the words, given your involvement with prestodb/airlift#71.

@tdcmeehan
Copy link
Contributor

It's accurate, but it shoulnd't be merged until a new airlift release with prestodb/airlift#71 is cut.

@Akanksha-kedia
Copy link
Contributor Author

https://github.com/prestodb/airlift/pull/73/files -we need this also for proper. @steveburnett @tdcmeehan

@steveburnett
Copy link
Contributor

https://github.com/prestodb/airlift/pull/73/files -we need this also for proper. @steveburnett @tdcmeehan

Do you mean that this PR should not be merged until a new airlift release that includes both prestodb/airlift#71 and prestodb/airlift#73 is cut?

@Akanksha-kedia
Copy link
Contributor Author

Akanksha-kedia commented Mar 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 👀 Review
Development

Successfully merging this pull request may close these issues.

3 participants