iscsi_/extents.py blocks main event loop in many places
Description
Problem/Justification
None
Impact
None
Activity
Show:
Bug Clerk August 23, 2022 at 4:19 PM
22.02.4 PR: https://github.com/truenas/middleware/pull/9687
Bug Clerk August 22, 2022 at 9:37 PMEdited
[Bugclerk generated PR no bueno – had to intervene manually]
Complete
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Rick Mesta
Rick Mesta(Deactivated)Reporter
Caleb
CalebOriginal estimate
Time remaining
0m
Components
Fix versions
Affects versions
Priority
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Created July 27, 2022 at 6:16 PM
Updated February 27, 2025 at 10:21 PM
Resolved August 23, 2022 at 7:02 PM
In
iscsi_/extents.py
module, we’re blocking the main event loop in many places.There are 2
async
methods that runos.path.exists
andos.path.isfile
which is are blocking operations. We also have anasync
method that callsextent_naa
which callshashlib.sha256()
which blocks the event loop.We need to convert those functions to non
async
methods to prevent blocking the main event loop.