Search before asking
Description
Several Rust integration tests use a fixed tokio::time::sleep(1-2s) after create_table / create_partitions to wait for bucket leadership (see list_offsets, test_poll_batches, partitioned_table_append_scan) - brittle on slow CI and adds dead time when the cluster is ready sooner. Add wait_for_table_ready(admin, table_path) (and partitione dvariant) to tests/integration/utils.rs that polls list_offsets /list_partition_offsets until success, mirroring the existing wait_for_cluster_ready_with_sasl shape, and replace the sleeps at all call sites.
Willingness to contribute
Search before asking
Description
Several Rust integration tests use a fixed
tokio::time::sleep(1-2s)aftercreate_table/create_partitionsto wait for bucket leadership (seelist_offsets,test_poll_batches,partitioned_table_append_scan) - brittle on slow CI and adds dead time when the cluster is ready sooner. Addwait_for_table_ready(admin, table_path)(and partitione dvariant) totests/integration/utils.rsthat pollslist_offsets/list_partition_offsetsuntil success, mirroring the existingwait_for_cluster_ready_with_saslshape, and replace the sleeps at all call sites.Willingness to contribute