TheR1sing3un opened a new pull request, #7735:
URL: https://github.com/apache/paimon/pull/7735

   ## Purpose
   
   `AoReaderTest.test_concurrent_writes_with_retry` is flaky on the lint-python 
(3.11) GitHub Actions runner. The test fires 10 concurrent committers per 
iteration and relies on the snapshot retry path to serialize them. Recent 
failure (e.g. 
https://github.com/apache/paimon/actions/runs/25103106532/job/73557267671) 
shows:
   
   ```
   FAILED 
pypaimon/tests/reader_append_only_test.py::AoReaderTest::test_concurrent_writes_with_retry
   AssertionError: 10 != 8 : Iteration 4: Expected 10 successful writes, got 8.
   Errors: [{'thread_id': 4, 'error': 'Commit failed 8 after 11426 millis with 
10 retries, ...'},
            {'thread_id': 0, 'error': 'Commit failed 8 after 11604 millis with 
10 retries, ...'}]
   ```
   
   The default budget — `commit.max-retries=10`, `commit.max-retry-wait=1s` — 
is sufficient on a developer machine but tight on a busy Linux runner: ten 
threads back off and re-attempt against the same snapshot file, and a couple of 
them exhaust their retries inside the ~11s wall-clock window.
   
   The same flake pattern was already addressed in 
`DataBlobWriterTest.test_blob_data_with_ray` by raising the per-table retry 
budget. This PR applies the same fix to `test_concurrent_writes_with_retry`:
   
   ```python
   schema = Schema.from_pyarrow_schema(
       self.pa_schema,
       options={
           'commit.max-retries': '50',
           'commit.max-retry-wait': '30s',
       },
   )
   ```
   
   The test still validates exactly the same property (all 10 commits 
eventually succeed via the retry mechanism, the resulting snapshot id equals 
`num_threads`, etc.) — it just no longer assumes the runner can complete ten 
back-offs in a fixed wall-clock window.
   
   ## Linked issue
   
   N/A — surfaced repeatedly on lint-python (3.11) CI.
   
   ## Tests
   
   * `pytest 
pypaimon/tests/reader_append_only_test.py::AoReaderTest::test_concurrent_writes_with_retry`
 → passes locally.
   * `flake8 --config=dev/cfg.ini` → clean.
   
   ## API and format
   
   No public API change. Test-only change.
   
   ## Documentation
   
   N/A.
   
   ## Generative AI disclosure
   
   Drafted with assistance from an AI coding tool; root cause and fix verified 
by the author against the existing precedent in `blob_table_test.py`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to