macOS (arm64): 并发 POST /collections + GET /collections 永久性堵塞写入路径 ("Stuck req_key", 待处理写入永远不被清空)
作者: Vasiliy-Bondarenko创建于 2026年9月24日更新于 2026年9月29日
标签bug
#!/usr/bin/env python3 """Reproduce a Typesense write-path hang: concurrent collection creates + collection listing. Each worker thread loops: POST /collections (create a new, uniquely named collection) GET /collections (list all collections) If any request stays unanswered for longer than --stuck-after seconds, the script prints HANG with the in-flight requests and exits with code 2. Otherwise it prints OK. Only the Python standard library is used. Usage: python3 repro_macos_hang.py --port 8109 --api-key xyz --workers 20 --seconds 90 """ import argparse import http.client import json import os import sys import threading import time import uuid
内容来源: typesense/typesense