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

Removing gunicorn 19.9.0 version #3312

Closed
wants to merge 3 commits into from
Closed

Removing gunicorn 19.9.0 version #3312

wants to merge 3 commits into from

Conversation

ranade1
Copy link
Contributor

@ranade1 ranade1 commented May 22, 2023

What changes were proposed in this pull request?

  • Removing gunicorn 19.9.0 version

How was this patch tested?

  • Testing with running Hue on MacBook and RHEL 8.4 unsecure version

Please review Hue Contributing Guide before opening a pull request.

- Removed fallback for `types.SimpleNamespace` in tests utils
- Use `SourceFileLoader` instead instead of `execfile_`
- Use `importlib` instead of `__import__` and eval`
- Fixed eventlet patching
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might need to upgrade eventlet also

@@ -130,7 +130,7 @@ def is_already_handled(self, respiter):
return super().is_already_handled(respiter)

def init_process(self):
self.patch()
#self.patch()
Copy link
Collaborator

@wing2fly wing2fly May 22, 2023

Choose a reason for hiding this comment

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

this calls
--> line 124 above eventlet.monkey_patch(), then calls
--> https://github.com/cloudera/hue/blob/master/desktop/core/ext-py3/eventlet-0.30.2/eventlet/__init__.py#L55, then calls
--> https://github.com/cloudera/hue/blob/master/desktop/core/ext-py3/eventlet-0.30.2/eventlet/patcher.py#L225-L364

There are lines of code handle multiple database modules and threading, so I don't feel safe to remove monkey patch in gunicorn.

Copy link
Collaborator

Choose a reason for hiding this comment

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

To upgrade eventlet and work with Gunicorn, a fix need to patch gunicorn. Not sure if this is the one you have tried
Issue: benoitc/gunicorn#2581
Fix: benoitc/gunicorn@1299ea9

Copy link
Collaborator

Choose a reason for hiding this comment

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

The fix eventlet/eventlet@7aa50ad5 in eventlet was the reason why I pulled in the whole of eventlet library. If the new gunicorn is pulling in eventlet v0.32.0+, then we can do away with our copy of eventlet.

@github-actions
Copy link

This PR is stale because it has been open 45 days with no activity and is not labeled "Prevent stale". Remove "stale" label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Jul 24, 2023
@github-actions github-actions bot closed this Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants