Skip to content

Adding Presto Version Class and version checks for session properties#17760

Merged
tdcmeehan merged 1 commit intoprestodb:masterfrom
vaishnavibatni:version_control_session_properties
Jun 9, 2022
Merged

Adding Presto Version Class and version checks for session properties#17760
tdcmeehan merged 1 commit intoprestodb:masterfrom
vaishnavibatni:version_control_session_properties

Conversation

@vaishnavibatni
Copy link
Copy Markdown
Contributor

@vaishnavibatni vaishnavibatni commented May 12, 2022

Summary: We need to compare Presto Versions for Session property version checks to allow only the valid session properties based on the current running Presto version. To do that, I added the Presto Version class in presto-common repo so that it can be used by other classes if needed.

Test Plan:
- Updated vll1_verifier1
- Canaried configerator configs and tested the changes.

Tasks: T115110477

== RELEASE NOTES ==

General Changes

  • Add version check for Session Properties to allow enabling session properties based on Presto Version.
  • Add support to compare Presto Versions.

@vaishnavibatni vaishnavibatni requested a review from swapsmagic May 12, 2022 23:44
@vaishnavibatni vaishnavibatni requested a review from a team as a code owner May 12, 2022 23:44
@vaishnavibatni vaishnavibatni requested a review from presto-oss May 12, 2022 23:44
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented May 12, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: vaishnavibatni (a74af9b85697089661a7cfc9db79f35a2ae77822)

Copy link
Copy Markdown
Contributor

@ajaygeorge ajaygeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments.

@vaishnavibatni vaishnavibatni force-pushed the version_control_session_properties branch from e188c66 to 68b78af Compare May 17, 2022 19:56
@vaishnavibatni vaishnavibatni changed the title Adding Presto Version Class for comparing Presto Versions Adding Presto Version Class and adding version checks for session properties May 17, 2022
@vaishnavibatni vaishnavibatni requested a review from ajaygeorge May 17, 2022 20:24
@ajaygeorge
Copy link
Copy Markdown
Contributor

@vaishnavibatni can you please sign the CLA

Copy link
Copy Markdown
Contributor

@ajaygeorge ajaygeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments around equals and compareTo

@vaishnavibatni vaishnavibatni force-pushed the version_control_session_properties branch from 68b78af to 2fc8ef5 Compare May 18, 2022 18:05
Copy link
Copy Markdown
Contributor

@ajaygeorge ajaygeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more comments.

@vaishnavibatni vaishnavibatni requested a review from ajaygeorge May 19, 2022 04:41
@vaishnavibatni vaishnavibatni force-pushed the version_control_session_properties branch 2 times, most recently from 7005927 to 14ace02 Compare May 20, 2022 21:26
Copy link
Copy Markdown
Contributor

@ajaygeorge ajaygeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments on the Test case

@vaishnavibatni vaishnavibatni force-pushed the version_control_session_properties branch from 14ace02 to a74af9b Compare May 20, 2022 22:00
@vaishnavibatni vaishnavibatni force-pushed the version_control_session_properties branch from a74af9b to 081b2e5 Compare May 21, 2022 00:23
@vaishnavibatni vaishnavibatni requested a review from ajaygeorge May 24, 2022 07:01
@vaishnavibatni vaishnavibatni force-pushed the version_control_session_properties branch from 081b2e5 to 2c5043f Compare May 24, 2022 07:07
@vaishnavibatni vaishnavibatni force-pushed the version_control_session_properties branch from 2c5043f to 5b45520 Compare May 25, 2022 06:13
@vaishnavibatni vaishnavibatni requested a review from swapsmagic May 25, 2022 16:10
@vaishnavibatni vaishnavibatni force-pushed the version_control_session_properties branch from 5b45520 to 13a5551 Compare May 25, 2022 18:19
@vaishnavibatni vaishnavibatni requested a review from tdcmeehan May 25, 2022 18:20
Copy link
Copy Markdown
Contributor

@swapsmagic swapsmagic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments around new dependencies, rest looks good.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where do we need this dependency?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't see it being used anywhere.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get this maven error when I remove them:

[ERROR] Failed to execute goal com.facebook.presto:presto-maven-plugin:0.4:check-spi-dependencies (default-check-spi-dependencies) on project presto-session-property-managers: 
[ERROR] Presto plugin dependency org.openjdk.jol:jol-core must have scope 'provided'. It is part of the SPI and will be provided at runtime.

@vaishnavibatni vaishnavibatni requested a review from swapsmagic June 1, 2022 23:29
@tdcmeehan tdcmeehan dismissed stale reviews from swapsmagic and ajaygeorge June 2, 2022 12:53

Approved offline

@vaishnavibatni vaishnavibatni changed the title Adding Presto Version Class and adding version checks for session properties Adding Presto Version Class and version checks for session properties Jun 6, 2022
Summary: We need to compare Presto Versions for Session property version checks to allow only the valid session properties based on the current running Presto version. To do that, I added the Presto Version class in `presto-common` repo so that it can be used by other classes if needed.

Test Plan: - Updated vll1_verifier1
	   - Canaried configerator configs and tested the changes.

Reviewers:

Subscribers:

Tasks: T115110477

Tags:
@vaishnavibatni vaishnavibatni force-pushed the version_control_session_properties branch from 13a5551 to b5a99a7 Compare June 6, 2022 20:31
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.

5 participants