Project

General

Profile

Bug #44790

Run getpwnam/getgrnam in a thread

Added by William Grzybowski about 2 years ago. Updated about 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

[2018/09/05 15:17:20] (WARNING) middlewared._loop_monitor_thread():1010 - Task seems blocked:  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 1418, in _run_once
    handle._run()
  File "/usr/local/lib/python3.6/asyncio/events.py", line 127, in _run
    self._callback(*self._args)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 125, in send
    return self.gen.send(value)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 150, in call_method
    result = await self.middleware.call_method(self, message)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 921, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 884, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/etc.py", line 159, in generate
    pw = pwd.getpwnam(entry['owner'])

Associated revisions

Revision 77bcb344 (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/etc): run getpwnam/getgrnam in a thread Ticket: #44790

Revision f53c59d8 (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/etc): run getpwnam/getgrnam in a thread Ticket: #44790

History

#1 Updated by Bug Clerk about 2 years ago

  • Status changed from Unscreened to In Progress

#2 Updated by Bug Clerk about 2 years ago

  • Status changed from In Progress to Ready for Testing

#3 Updated by William Grzybowski about 2 years ago

  • Status changed from Ready for Testing to Done

QA not necessary here.

#4 Updated by Dru Lavigne about 2 years ago

  • Subject changed from getpwnam may block middlewared to Run getpwnam/getgrnam in a thread
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

Also available in: Atom PDF