Skip to content

Fix Resource Group State Info#23178

Merged
swapsmagic merged 1 commit intoprestodb:masterfrom
swapsmagic:fix_resource_group_state_info_memoization
Jul 11, 2024
Merged

Fix Resource Group State Info#23178
swapsmagic merged 1 commit intoprestodb:masterfrom
swapsmagic:fix_resource_group_state_info_memoization

Conversation

@swapsmagic
Copy link
Contributor

@swapsmagic swapsmagic commented Jul 11, 2024

Description

As part of the memoization introduction, previous PR #22764 introduced an issue where the endpoint returns the same value all the time when caching is disabled.

Motivation and Context

Fixing the issue with this change and introducing unit tests to cover both caching enabled and not enabled scenario to verify the result.

Impact

/v1/resourceGroupStateInfo to return correct value when caching is disabled.

Test Plan

unit test

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
* Fix resource group state info endpoint to return correct value when caching is disabled. :pr:`23178`


@swapsmagic swapsmagic requested review from a team, feilong-liu and jaystarshot as code owners July 11, 2024 00:54
@swapsmagic swapsmagic requested a review from presto-oss July 11, 2024 00:55
jainxrohit
jainxrohit previously approved these changes Jul 11, 2024
@swapsmagic swapsmagic force-pushed the fix_resource_group_state_info_memoization branch from 33333bc to e31728b Compare July 11, 2024 01:02
@swapsmagic swapsmagic force-pushed the fix_resource_group_state_info_memoization branch from e31728b to 1066006 Compare July 11, 2024 06:59
@steveburnett
Copy link
Contributor

Nit: suggest adding PR number to the release note entry.

== RELEASE NOTES ==

General Changes
* Fix resource group state info endpoint to return correct value when caching is disabled. :pr:`23178`

As part of the memoization introduction, previous PR prestodb#22764 introduced
an issue where the endpoint returns the same value all the time when caching is disabled. Fixing it with this change
and introducing unit tests to cover both caching enabled and not enabled scenario to verify the result.
@swapsmagic swapsmagic force-pushed the fix_resource_group_state_info_memoization branch from 1066006 to b9e2f83 Compare July 11, 2024 17:56
@swapsmagic swapsmagic merged commit 852432d into prestodb:master Jul 11, 2024
@swapsmagic swapsmagic deleted the fix_resource_group_state_info_memoization branch July 11, 2024 18:49
@tdcmeehan tdcmeehan mentioned this pull request Aug 23, 2024
34 tasks
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.

4 participants