@@ -620,6 +620,41 @@ func TestStoreGatewayNoCacheFile(t *testing.T) {
620
620
)
621
621
testutil .Ok (t , s1 .WaitSumMetrics (e2emon .Equals (7 + 2 ), "thanos_bucket_store_series_blocks_queried" ))
622
622
})
623
+ t .Run ("upload block id6 with utf8 labels" , func (t * testing.T ) {
624
+ series := []labels.Labels {labels .FromStrings ("a" , "1" , "🚀" , "🔥" )}
625
+ extLset := labels .FromStrings ("ext1" , "value1" , "replica" , "1" )
626
+ id6 , err := e2eutil .CreateBlockWithBlockDelay (ctx , dir , series , 10 , timestamp .FromTime (now ), timestamp .FromTime (now .Add (2 * time .Hour )), 30 * time .Minute , extLset , 0 , metadata .NoneFunc , nil )
627
+ testutil .Ok (t , err )
628
+ testutil .Ok (t , objstore .UploadDir (ctx , l , bkt , path .Join (dir , id6 .String ()), id6 .String ()))
629
+
630
+ // Wait for store to sync blocks.
631
+ // thanos_blocks_meta_synced: 2x loadedMeta 1x labelExcludedMeta 1x TooFreshMeta 1x noMeta.
632
+ testutil .Ok (t , s1 .WaitSumMetrics (e2emon .Equals (5 ), "thanos_blocks_meta_synced" ))
633
+ testutil .Ok (t , s1 .WaitSumMetrics (e2emon .Equals (0 ), "thanos_blocks_meta_sync_failures_total" ))
634
+
635
+ testutil .Ok (t , s1 .WaitSumMetrics (e2emon .Equals (2 ), "thanos_bucket_store_blocks_loaded" ))
636
+ testutil .Ok (t , s1 .WaitSumMetrics (e2emon .Equals (2 ), "thanos_bucket_store_block_drops_total" ))
637
+ testutil .Ok (t , s1 .WaitSumMetrics (e2emon .Equals (0 ), "thanos_bucket_store_block_load_failures_total" ))
638
+
639
+ queryAndAssertSeries (t , ctx , q .Endpoint ("http" ), func () string { return testQuery },
640
+ time .Now , promclient.QueryOptions {
641
+ Deduplicate : true ,
642
+ },
643
+ []model.Metric {
644
+ {
645
+ "a" : "1" ,
646
+ "b" : "2" ,
647
+ "ext1" : "value1" ,
648
+ },
649
+ {
650
+ "a" : "1" ,
651
+ "🚀" : "🔥" ,
652
+ "ext1" : "value1" ,
653
+ },
654
+ },
655
+ )
656
+ testutil .Ok (t , s1 .WaitSumMetrics (e2emon .Equals (9 + 2 ), "thanos_bucket_store_series_blocks_queried" ))
657
+ })
623
658
}
624
659
625
660
func TestStoreGatewayMemcachedCache (t * testing.T ) {
0 commit comments