)]}'
{
  "commit": "728952223afb498aadab784da92a6282fd783081",
  "tree": "96d0ad2218e6436f6ab38761a77d2e1b67d31c28",
  "parents": [
    "c3c12c416b00943d03929457c026a6fde8296e00"
  ],
  "author": {
    "name": "Yunze Xu",
    "email": "xyzinfernity@163.com",
    "time": "Thu Oct 31 18:27:09 2024 +0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Oct 31 18:27:09 2024 +0800"
  },
  "message": "Fix failed AsyncioTest.test_send_failure and clean up tests (#231)\n\nAfter https://github.com/apache/pulsar/pull/23291, which is included in Pulsar 4.0.0, when the tenant does not exist, the broker will respond with `BrokerMetadataError`, which is retryable.\r\n\r\nBefore that, the error code is `AuthorizationError`, which is not retryable so that `create_producer` will fail immediately.\r\n\r\nThis patch fixes the `test_send_failure` to assert the error is `Timeout`. Additional, separate some tests from `pulsar_test.py`:\r\n1. debug logger tests will affect other tests so that all tests will print debug logs\r\n2. running `schema_test` in `pulsar_test` might have unexpected failures like\r\n\r\n```\r\nFailed to create ConsumerImpl for persistent://public/default/my-python-pattern-consumer-3-partition-0: Failed to create steady_timer: kqueue: Too many open files [system:24]\r\nFailed when subscribed to topic persistent://public/default/my-python-pattern-consumer-3 in TopicsConsumer. Error - ConnectError\r\nUnable to create Consumer - [Muti Topics Consumer: TopicName - persistent://public/default/my-python-pattern-consumer.* - Subscription - my-pattern-consumer-sub] Error - ConnectError\r\nFailed to retry lookup for get-partition-metadata-persistent://public/default/my-v2-topic-producer-consumer: Failed to create steady_timer: kqueue: Too many open files [system:24]\r\nError Checking/Getting Partition Metadata while Subscribing on persistent://public/default/my-v2-topic-producer-consumer -- ConnectError\r\nFailed to retry lookup for get-partition-metadata-persistent://public/default/my-v2-topic-producer-consumer: Failed to create steady_timer: kqueue: Too many open files [system:24]\r\nError Checking/Getting Partition Metadata while Subscribing on persistent://public/default/my-v2-topic-producer-consumer -- ConnectError\r\nFailed to retry lookup for get-partition-metadata-persistent://public/default/test_has_message_available_after_seek-1730263910.78957: Failed to create steady_timer: kqueue: Too many open files [system:24]\r\nError Checking/Getting Partition Metadata while creating producer on persistent://public/default/test_has_message_available_after_seek-1730263910.78957 -- ConnectError\r\nFailed to retry lookup for get-partition-metadata-persistent://public/default/test_seek_latest_message_id-1730263910.789991: Failed to create steady_timer: kqueue: Too many open files [system:24]\r\n```",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c646f4002b372bd98e24a678b7610b89e1460da4",
      "old_mode": 33188,
      "old_path": "pkg/manylinux2014/Dockerfile",
      "new_id": "c5c4cf0c4544353717854a3f92a36d0f3bcbda15",
      "new_mode": 33188,
      "new_path": "pkg/manylinux2014/Dockerfile"
    },
    {
      "type": "modify",
      "old_id": "0a19799faad42ec087f6172484628b5a3e6cc655",
      "old_mode": 33188,
      "old_path": "pkg/manylinux_musl/Dockerfile",
      "new_id": "300219459f306d963a33a0fbd2804402a1618cd2",
      "new_mode": 33188,
      "new_path": "pkg/manylinux_musl/Dockerfile"
    },
    {
      "type": "modify",
      "old_id": "5478b6029675a516ca93a0833a02dc92eae68f8d",
      "old_mode": 33188,
      "old_path": "tests/asyncio_test.py",
      "new_id": "fe6877f9e9dfdf65819f8d1ae63f7ee74b0d35e2",
      "new_mode": 33188,
      "new_path": "tests/asyncio_test.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ebc8e599e1c93e1c41ad695dac850ff7b277af2a",
      "new_mode": 33188,
      "new_path": "tests/debug_logger_test.py"
    },
    {
      "type": "modify",
      "old_id": "bb62d9922f4ce630d08bb3d152f573dfa376b7f7",
      "old_mode": 33261,
      "old_path": "tests/pulsar_test.py",
      "new_id": "a062bc1b8749172d039807df20b3b2b4ef4fc817",
      "new_mode": 33261,
      "new_path": "tests/pulsar_test.py"
    },
    {
      "type": "modify",
      "old_id": "ea0b4505ba6864503e223f55ad510e98f8d66b9e",
      "old_mode": 33261,
      "old_path": "tests/run-unit-tests.sh",
      "new_id": "0d6fabf6c63b9e4e8f4f69f1db8c068fc78c8d19",
      "new_mode": 33261,
      "new_path": "tests/run-unit-tests.sh"
    },
    {
      "type": "modify",
      "old_id": "acba03e8dcc848dd36655d1b79ef8177491d08a8",
      "old_mode": 33261,
      "old_path": "tests/schema_test.py",
      "new_id": "9d031d153d797ee8fff18e9c4ccf0d0bdd2997ae",
      "new_mode": 33261,
      "new_path": "tests/schema_test.py"
    }
  ]
}
