When doing stream load, user can set partitions or temporary_partitions to specifies which partitions to import data into.
Sometimes, user don't known the partition names. FE will send all partitions info to BE for starting stream load. If some partitions(not the load partition) has bad tablet, FE will throw tablet xxx has few replicas: 1 and the load will fail.
proposal
Filter the partition names by where header.
As shown below:
Client send a stream load http request witch where header.
curl -XPUT -H 'where:dt=1' http://FE:port/api/db_name/table_name/_stream_load
If there are 3 partitions
p1 [0, 1)
p2 [1, 2)
p3 [2,3) bad partition
FE should only sends partition p2's info to BE.