-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Description
Python 3.9.7
Fedora 34 (Workstation Edition)
azure-core 1.16.0
azure-storage-blob 12.8.1
azure-storage-queue 12.1.6
I was expecting the async code below to output the exact same result as the one below when executed against an empty storage queue.
The serial code executes just fine and emits, nothing, as expected on an empty queue.
The async code throws this at me:
Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7f7fe8b4f4f0>
transport: <_SelectorSocketTransport closing fd=6>
Traceback (most recent call last):
File "/usr/lib64/python3.9/asyncio/selector_events.py", line 918, in write
n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.9/asyncio/sslproto.py", line 684, in _process_write_backlog
self._transport.write(chunk)
File "/usr/lib64/python3.9/asyncio/selector_events.py", line 924, in write
self._fatal_error(exc, 'Fatal write error on socket transport')
File "/usr/lib64/python3.9/asyncio/selector_events.py", line 719, in _fatal_error
self._force_close(exc)
File "/usr/lib64/python3.9/asyncio/selector_events.py", line 731, in _force_close
self._loop.call_soon(self._call_connection_lost, exc)
File "/usr/lib64/python3.9/asyncio/base_events.py", line 746, in call_soon
self._check_closed()
File "/usr/lib64/python3.9/asyncio/base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f7fe7dda5e0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f7fe7dc8b80>, 19043.264955058)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f7fe7dda5b0>
import asyncio
import os, uuid
async def amain():
from azure.storage.queue.aio import QueueClient
connect_str = os.getenv("AZURE_STORAGE_CONNECTION_STRING")
queue_name = os.getenv("QUEUE_NAME", "events")
queue_client = QueueClient.from_connection_string(connect_str, queue_name)
messages = queue_client.receive_messages()
async for msg in messages:
print(msg.content)
await queue_client.delete_message(msg)
def main():
from azure.storage.queue import QueueClient
connect_str = os.getenv("AZURE_STORAGE_CONNECTION_STRING")
queue_name = os.getenv("QUEUE_NAME", "events")
queue_client = QueueClient.from_connection_string(connect_str, queue_name)
messages = queue_client.receive_messages()
for msg in messages:
print(msg.content)
queue_client.delete_message(msg)
#asyncio.run(amain())
main()
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team