Skip to content

SNOW-1720855: clean up multithreading changes after rollout#2658

Merged
sfc-gh-aalam merged 21 commits intomainfrom
aalam-SNOW-1720855-clean-up-multithreading-changes-after-rollout
Jan 14, 2025
Merged

SNOW-1720855: clean up multithreading changes after rollout#2658
sfc-gh-aalam merged 21 commits intomainfrom
aalam-SNOW-1720855-clean-up-multithreading-changes-after-rollout

Conversation

@sfc-gh-aalam
Copy link
Contributor

  1. Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes SNOW-1720855

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
      • If this test skips Local Testing mode, I'm requesting review from @snowflakedb/local-testing
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am adding new credentials
    • I am adding a new dependency
    • If this is a new feature/behavior, I'm adding the Local Testing parity changes.
    • I acknowledge that I have ensured my changes to be thread-safe. Follow the link for more information: Thread-safe Developer Guidelines
  3. Please describe how your code solves the related issue.

    Clean-up code by removing param protection and remove tests that test the case when thread-safe session is disabled.

@sfc-gh-aalam sfc-gh-aalam added the NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md label Nov 20, 2024
@github-actions github-actions bot added the local testing Local Testing issues/PRs label Nov 20, 2024
@sfc-gh-aalam
Copy link
Contributor Author

sfc-gh-aalam commented Nov 20, 2024

@github-actions
Copy link

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

@github-actions
Copy link

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

@github-actions
Copy link

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

@github-actions
Copy link

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

Copy link
Contributor

@sfc-gh-jrose sfc-gh-jrose left a comment

Choose a reason for hiding this comment

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

so clean

@github-actions
Copy link

github-actions bot commented Jan 2, 2025

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

_PYTHON_SNOWPARK_LARGE_QUERY_BREAKDOWN_COMPLEXITY_LOWER_BOUND = (
"PYTHON_SNOWPARK_LARGE_QUERY_BREAKDOWN_COMPLEXITY_LOWER_BOUND"
)
_PYTHON_SNOWPARK_ENABLE_THREAD_SAFE_SESSION = (
Copy link
Contributor

@sfc-gh-aling sfc-gh-aling Jan 3, 2025

Choose a reason for hiding this comment

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

do we need to clean up this parameter in the backend?

@sfc-gh-aalam sfc-gh-aalam enabled auto-merge (squash) January 7, 2025 00:12
@github-actions
Copy link

github-actions bot commented Jan 7, 2025

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

Copy link
Contributor

@sfc-gh-helmeleegy sfc-gh-helmeleegy left a comment

Choose a reason for hiding this comment

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

This is increasing the number of query counts and join counts, etc in many tests. Do we know why?

@github-actions
Copy link

github-actions bot commented Jan 7, 2025

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

@sfc-gh-aalam
Copy link
Contributor Author

This is increasing the number of query counts and join counts, etc in many tests. Do we know why?

I looked into the failed tests and the ones that are have @multithreaded_run at the outermost decorator. This decorator runs the internal tests 5 times and it is interfering with sql_count. I have moved the decorator one level below @sql_count_checker and update the values now. Tests should pass now.

@sfc-gh-aalam sfc-gh-aalam disabled auto-merge January 7, 2025 02:03
@sfc-gh-aalam
Copy link
Contributor Author

This is increasing the number of query counts and join counts, etc in many tests. Do we know why?

I looked into the failed tests and the ones that are have @multithreaded_run at the outermost decorator. This decorator runs the internal tests 5 times and it is interfering with sql_count. I have moved the decorator one level below @sql_count_checker and update the values now. Tests should pass now.

The approach above was not as clean. I made the SqlCounter thread-safe now.

@sfc-gh-aalam sfc-gh-aalam enabled auto-merge (squash) January 7, 2025 22:02
Copy link
Contributor

@sfc-gh-helmeleegy sfc-gh-helmeleegy left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@sfc-gh-aalam sfc-gh-aalam merged commit 5b40dda into main Jan 14, 2025
44 of 47 checks passed
@sfc-gh-aalam sfc-gh-aalam deleted the aalam-SNOW-1720855-clean-up-multithreading-changes-after-rollout branch January 14, 2025 02:01
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

local testing Local Testing issues/PRs NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md snowpark-pandas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants