Skip to content

Re-use paramiko connection in SSHHook instead of recreating - #11316

Closed
rootcss wants to merge 1 commit into
apache:masterfrom
rootcss:fix/ssh_hook_reuse_conn2
Closed

rootcss wants to merge 1 commit into
apache:masterfrom
rootcss:fix/ssh_hook_reuse_conn2

Conversation

@rootcss

@rootcss rootcss commented Oct 6, 2020

Copy link
Copy Markdown
Contributor

SSHHook was creating the paramiko client every time execute() method was called. This PR makes change to re-use the previously established connection.

closes: #10874

@github-actions

github-actions Bot commented Oct 6, 2020

Copy link
Copy Markdown
Contributor

The Build Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*.

@github-actions

github-actions Bot commented Oct 6, 2020

Copy link
Copy Markdown
Contributor

The Build Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*.

@ashb

ashb commented Oct 19, 2020

Copy link
Copy Markdown
Member

Could you rebase please @rootcss - we had some CI failures.

@rootcss
rootcss force-pushed the fix/ssh_hook_reuse_conn2 branch from 57b930f to 9c37d43 Compare October 20, 2020 18:02
@rootcss
rootcss force-pushed the fix/ssh_hook_reuse_conn2 branch from 9c37d43 to 01b43c1 Compare October 20, 2020 19:06
@HaloKo4

HaloKo4 commented Oct 27, 2020

Copy link
Copy Markdown

@rootcss there are failures with test_pickle_file_transfer_get of tests/providers/sftp/operators/test_sftp.py which uses SSH.
there are other tests that also fails.

@rootcss

rootcss commented Oct 27, 2020

Copy link
Copy Markdown
Contributor Author

@HaloKo4 yes, I looked at the errors. I couldn't find the cause on the first look, will check and fix it soon.

@kaxil

kaxil commented Nov 4, 2020

Copy link
Copy Markdown
Member

Can you please rebase your PR on latest Master since we have applied Black and PyUpgrade on Master.

It will help if your squash your commits into single commit first so that there are less conflicts.

@stale

stale Bot commented Dec 25, 2020

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Dec 25, 2020
@potiuk

potiuk commented Dec 25, 2020

Copy link
Copy Markdown
Member

Hey @rootcss - can you please rebase it ? We now released 2.0 so it might make sense to merge this one.

@stale stale Bot removed the stale Stale PRs per the .github/workflows/stale.yml policy file label Dec 25, 2020
@HaloKo4

HaloKo4 commented Feb 10, 2021

Copy link
Copy Markdown

@rootcss did you manage to solve it?

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.

SSHHook get_conn() does not re-use client

5 participants