iscsi_/extents.py blocks main event loop in many places

Description

In iscsi_/extents.py module, we’re blocking the main event loop in many places.

There are 2 async methods that run os.path.exists and os.path.isfile which is are blocking operations. We also have an async method that calls extent_naa which calls hashlib.sha256() which blocks the event loop.

We need to convert those functions to non async methods to prevent blocking the main event loop.

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk August 23, 2022 at 4:19 PM

Bug Clerk August 22, 2022 at 9:37 PM
Edited

[Bugclerk generated PR no bueno – had to intervene manually]

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Original estimate

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created July 27, 2022 at 6:16 PM
Updated February 27, 2025 at 10:21 PM
Resolved August 23, 2022 at 7:02 PM