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

ENG-3659 Disable tmp cleanup for P4Python connections #178

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

ca-johnson
Copy link
Contributor

Confirmed to resolve issue where we occasionally get segfaults when using many p4 connections.

From release notes

Added P4.disable_tmp_cleanup to prevent cleanup if temporary objects.
Invoke this before connecting if you are using multiple P4 connections
in parallel in a multi-threaded Python application.

We only need to call this once in the scripts lifetime, not for each connection.

@ca-johnson ca-johnson changed the title Disable tmp cleanup for P4Python connections ENG-3659 Disable tmp cleanup for P4Python connections Sep 2, 2020
Copy link
Contributor

@improbable-mattchurch improbable-mattchurch left a comment

Choose a reason for hiding this comment

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

nice find!

@improbable-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: improbable-mattchurch, petemounce
To complete the pull request process, please assign
You can assign the PR to them by writing /assign in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ca-johnson ca-johnson merged commit d509189 into master Sep 2, 2020
@ca-johnson ca-johnson deleted the thread-safety branch September 2, 2020 15:35
ca-johnson added a commit that referenced this pull request Sep 3, 2020
…-buildkite-plugin into upgrade-p4python

* 'upgrade-p4python' of github.com:improbable-eng/perforce-buildkite-plugin:
  ENG-3659 Disable tmp cleanup for P4Python connections (#178)
ca-johnson added a commit that referenced this pull request Sep 3, 2020
* master:
  Upgrade p4python to 2020.1 (#179)
  ENG-3659 Disable tmp cleanup for P4Python connections (#178)
ca-johnson added a commit that referenced this pull request Sep 3, 2020
* master:
  Upgrade p4python to 2020.1 (#179)
  ENG-3659 Disable tmp cleanup for P4Python connections (#178)
  Add example workspace cleanup script (#174)
  Revert "Force in case the client has files open (#176)" (#177)
  Force in case the client has files open (#176)
  ENG-3523 Create virtual env once for unique requirements.txt (#167)
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