shuke987 opened a new pull request, #64509:
URL: https://github.com/apache/doris/pull/64509
## Problem
On a multi-replica test cluster (e.g. `force_olap_table_replication_num=3`),
`SHOW TABLETS` returns one row per (tablet, replica). A table created with
`BUCKETS 1` therefore yields 3 rows, so `assertEquals(1, tablets.size())` fails
(expected 1, got 3). The assertion implicitly assumes a single replica.
## Fix
Assert on the distinct tablet count: `tablets.collect { it.TabletId
}.unique().size()`. The subsequent code already picks one replica via
`tablets[0]`.
## Verification
Ran the suite on a branch-4.1 local cluster (3 FE + 4 BE, force-3 replicas)
— passes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]