fix: видимость записи при отказе Redis, пароль из пробелов

- версия истории чата хранится в PostgreSQL (chats.version, миграция 0003)
  и растёт в одной транзакции с сообщением; ключ кэша включает её, поэтому
  ошибка любой команды Redis не может вернуть устаревшую историю
- членство и версия читаются одним запросом; INCR/GET версии в Redis удалены
- пароль из одних пробельных символов -> 400 (unit-тест validatePassword)
- student-tests/regressions.py: сценарий проверки с Redis ACL -incr и пароль
- CI: тот же тест против кода до исправления; все серии трека 1 заново
This commit is contained in:
2026-10-24 02:24:22 +03:00
parent 7cd55064d6
commit bab82c7bc0
22 changed files with 247 additions and 61 deletions
-44
View File
@@ -1,44 +0,0 @@
series,config,c,repeats,ok_rps,rps_min,rps_max,write_rps,read_rps,p50_ms,p95_ms,p99_ms,err,util_api,util_pg,util_redis,util_lb,host_cores,pool_empty,pool_wait_ms,pg_active
A_fixed_total,1x1.00,4,3,224.4,223.3,225.8,111.8,112.9,19.10,44.84,57.88,0.0000,0.70,0.19,1.03,0.09,1.44/2,0.000,0.00,1
A_fixed_total,1x1.00,16,3,258.1,255.0,264.0,128.2,129.9,40.23,142.01,190.66,0.0000,0.67,0.19,1.01,0.10,1.42/2,0.000,0.00,1
A_fixed_total,1x1.00,64,3,246.9,236.8,251.0,120.3,122.7,77.49,579.19,635.98,0.0000,0.69,0.19,1.00,0.10,1.43/2,0.003,0.02,0
A_fixed_total,2x0.50,4,3,198.2,190.8,205.5,97.1,101.1,17.03,48.94,63.16,0.0000,0.81,0.16,1.05,0.09,1.53/2,0.000,0.00,1
A_fixed_total,2x0.50,16,3,233.7,231.1,242.9,119.3,116.4,36.61,165.70,208.17,0.0000,0.79,0.20,0.99,0.09,1.55/2,0.000,0.01,0
A_fixed_total,2x0.50,64,3,251.5,242.0,254.7,122.5,128.0,89.25,677.59,857.04,0.0000,0.81,0.20,1.00,0.09,1.58/2,0.013,0.19,1
A_fixed_total,4x0.25,4,3,181.8,181.5,193.0,88.7,93.2,15.74,55.21,79.76,0.0000,0.84,0.17,0.94,0.07,1.53/2,0.000,0.01,1
A_fixed_total,4x0.25,16,3,215.2,214.5,221.0,106.3,108.9,41.80,182.87,326.25,0.0000,0.86,0.18,0.88,0.08,1.54/2,0.000,0.01,1
A_fixed_total,4x0.25,64,3,230.9,227.9,240.9,115.7,115.2,311.46,681.08,819.55,0.0000,0.42,0.05,0.19,0.02,0.57/2,0.000,0.09,0
B_scale_out,1x0.50,4,3,258.6,227.4,261.2,129.9,128.2,13.65,52.79,61.48,0.0000,0.99,0.14,0.78,0.07,1.06/2,0.000,0.00,1
B_scale_out,1x0.50,16,3,295.3,293.3,300.3,148.1,148.0,48.74,118.69,151.75,0.0000,1.00,0.14,0.79,0.08,1.08/2,0.000,0.00,5
B_scale_out,1x0.50,64,3,285.4,281.2,285.7,143.7,142.1,341.54,473.85,509.37,0.0000,1.00,0.13,0.78,0.07,1.06/2,0.011,0.03,0
B_scale_out,2x0.50,4,3,312.7,304.5,316.1,153.5,159.1,12.58,33.81,41.91,0.0000,0.77,0.15,1.01,0.08,1.48/2,0.000,0.00,1
B_scale_out,2x0.50,16,3,356.2,352.9,360.5,174.9,183.3,24.92,109.31,138.03,0.0000,0.74,0.18,1.00,0.09,1.47/2,0.000,0.00,1
B_scale_out,2x0.50,64,3,372.1,368.7,373.7,182.1,190.5,56.62,460.00,511.75,0.0000,0.77,0.19,1.00,0.09,1.50/2,0.009,0.12,0
B_scale_out,4x0.50,4,3,291.5,289.5,292.3,144.7,147.5,12.11,32.35,43.74,0.0000,0.44,0.17,1.00,0.08,1.60/2,0.000,0.00,1
B_scale_out,4x0.50,16,3,329.9,325.7,329.9,164.9,164.9,34.25,114.19,140.18,0.0000,0.44,0.18,0.99,0.09,1.61/2,0.000,0.01,1
B_scale_out,4x0.50,64,3,356.7,346.3,359.6,177.0,179.7,62.23,399.52,461.76,0.0000,0.43,0.20,0.97,0.10,1.59/2,0.000,0.00,4
D_improvement,baseline_scan,32,3,214.0,212.9,216.0,105.5,108.8,50.05,346.31,399.77,0.0000,0.38,0.19,1.00,0.09,1.49/2,0.000,0.02,1
D_improvement,baseline_scan,64,3,221.9,214.7,230.9,110.8,111.1,401.92,620.88,740.32,0.0000,0.39,0.18,0.99,0.10,1.50/2,0.000,0.12,1
D_improvement,cache_version,32,3,543.7,540.1,566.4,267.5,276.7,48.60,129.57,174.33,0.0000,0.38,0.58,0.24,0.20,1.55/2,0.001,0.11,24
D_improvement,cache_version,64,3,549.1,547.6,573.7,275.5,273.8,91.17,264.48,351.21,0.0000,0.39,0.57,0.23,0.19,1.56/2,0.024,0.11,43
D_improvement,pool_8,32,3,208.2,187.3,227.5,104.7,103.5,197.00,346.58,407.86,0.0000,0.37,0.18,1.00,0.09,1.48/2,0.001,0.01,1
D_improvement,pool_8,64,3,233.7,229.1,237.3,116.5,116.4,387.35,617.68,699.87,0.0000,0.40,0.20,0.98,0.10,1.53/2,0.016,0.17,2
D_improvement,leastconn,32,3,231.6,222.3,232.7,115.0,114.7,189.50,321.39,412.19,0.0000,0.39,0.19,0.99,0.09,1.53/2,0.000,0.00,1
D_improvement,leastconn,64,3,223.5,211.8,253.1,114.6,108.9,418.69,616.12,745.16,0.0000,0.38,0.20,0.99,0.09,1.51/2,0.000,0.02,2
C_shared_resources,pg1_lb0.5_redis0.5,16,3,455.1,446.8,470.5,228.5,226.6,32.17,80.56,106.30,0.0000,0.36,0.23,0.99,0.11,1.51/2,0.000,0.00,1
C_shared_resources,pg1_lb0.5_redis0.5,64,3,493.5,490.0,503.8,247.1,249.3,61.64,286.88,318.98,0.0000,0.35,0.24,1.00,0.12,1.51/2,0.000,0.07,1
C_shared_resources,pg2,16,3,462.7,453.3,471.7,236.4,225.8,29.69,78.70,97.97,0.0000,0.35,0.11,1.00,0.10,1.46/2,0.000,0.00,2
C_shared_resources,pg2,64,3,500.5,489.1,515.0,251.0,249.5,170.53,276.21,306.59,0.0000,0.35,0.12,0.99,0.11,1.49/2,0.001,0.04,1
C_shared_resources,lb1,16,3,452.9,450.9,467.4,225.9,228.3,22.14,83.95,103.89,0.0000,0.36,0.23,1.00,0.06,1.52/2,0.000,0.01,2
C_shared_resources,lb1,64,3,486.4,483.1,489.7,241.6,244.8,47.63,293.16,333.18,0.0000,0.35,0.24,0.99,0.06,1.50/2,0.002,0.00,1
C_shared_resources,redis1,16,3,492.1,487.1,505.8,249.3,242.9,28.82,76.35,99.39,0.0000,0.40,0.25,0.54,0.12,1.65/2,0.000,0.00,1
C_shared_resources,redis1,64,3,537.9,522.0,543.3,268.1,269.9,131.86,272.16,304.75,0.0000,0.39,0.27,0.55,0.12,1.66/2,0.000,0.00,2
E_scale_out_after_fix,1x0.50,4,3,475.3,465.2,482.1,240.3,234.9,5.72,31.90,39.57,0.0000,1.00,0.37,0.23,0.17,1.06/2,0.000,0.00,1
E_scale_out_after_fix,1x0.50,16,3,512.0,510.8,524.3,252.7,259.3,24.45,66.03,81.17,0.0000,1.00,0.36,0.22,0.17,1.06/2,0.000,0.00,1
E_scale_out_after_fix,1x0.50,64,3,560.0,555.3,563.4,280.1,279.7,109.09,175.97,204.49,0.0000,1.00,0.40,0.23,0.19,1.09/2,0.893,13.65,2
E_scale_out_after_fix,2x0.50,4,3,609.7,582.4,611.3,302.3,305.7,5.71,12.00,20.64,0.0000,0.79,0.45,0.33,0.21,1.50/2,0.000,0.00,3
E_scale_out_after_fix,2x0.50,16,3,617.7,603.4,625.4,310.1,303.3,23.05,52.36,73.64,0.0000,0.78,0.50,0.35,0.20,1.58/2,0.000,0.00,9
E_scale_out_after_fix,2x0.50,64,3,603.9,598.0,606.0,303.1,298.9,99.56,206.53,260.69,0.0000,0.78,0.55,0.24,0.20,1.55/2,0.799,10.55,29
E_scale_out_after_fix,4x0.50,4,3,599.3,584.2,599.7,300.3,298.9,5.80,13.02,20.18,0.0000,0.43,0.44,0.29,0.20,1.54/2,0.000,0.00,3
E_scale_out_after_fix,4x0.50,16,3,591.3,586.7,605.5,291.8,299.5,23.53,56.00,76.31,0.0000,0.41,0.46,0.29,0.19,1.56/2,0.000,0.00,9
E_scale_out_after_fix,4x0.50,64,3,595.5,588.2,597.7,297.5,298.0,87.94,244.09,351.81,0.0000,0.42,0.51,0.27,0.19,1.56/2,0.022,0.08,45
1 series config c repeats ok_rps rps_min rps_max write_rps read_rps p50_ms p95_ms p99_ms err util_api util_pg util_redis util_lb host_cores pool_empty pool_wait_ms pg_active
2 A_fixed_total 1x1.00 4 3 224.4 223.3 225.8 111.8 112.9 19.10 44.84 57.88 0.0000 0.70 0.19 1.03 0.09 1.44/2 0.000 0.00 1
3 A_fixed_total 1x1.00 16 3 258.1 255.0 264.0 128.2 129.9 40.23 142.01 190.66 0.0000 0.67 0.19 1.01 0.10 1.42/2 0.000 0.00 1
4 A_fixed_total 1x1.00 64 3 246.9 236.8 251.0 120.3 122.7 77.49 579.19 635.98 0.0000 0.69 0.19 1.00 0.10 1.43/2 0.003 0.02 0
5 A_fixed_total 2x0.50 4 3 198.2 190.8 205.5 97.1 101.1 17.03 48.94 63.16 0.0000 0.81 0.16 1.05 0.09 1.53/2 0.000 0.00 1
6 A_fixed_total 2x0.50 16 3 233.7 231.1 242.9 119.3 116.4 36.61 165.70 208.17 0.0000 0.79 0.20 0.99 0.09 1.55/2 0.000 0.01 0
7 A_fixed_total 2x0.50 64 3 251.5 242.0 254.7 122.5 128.0 89.25 677.59 857.04 0.0000 0.81 0.20 1.00 0.09 1.58/2 0.013 0.19 1
8 A_fixed_total 4x0.25 4 3 181.8 181.5 193.0 88.7 93.2 15.74 55.21 79.76 0.0000 0.84 0.17 0.94 0.07 1.53/2 0.000 0.01 1
9 A_fixed_total 4x0.25 16 3 215.2 214.5 221.0 106.3 108.9 41.80 182.87 326.25 0.0000 0.86 0.18 0.88 0.08 1.54/2 0.000 0.01 1
10 A_fixed_total 4x0.25 64 3 230.9 227.9 240.9 115.7 115.2 311.46 681.08 819.55 0.0000 0.42 0.05 0.19 0.02 0.57/2 0.000 0.09 0
11 B_scale_out 1x0.50 4 3 258.6 227.4 261.2 129.9 128.2 13.65 52.79 61.48 0.0000 0.99 0.14 0.78 0.07 1.06/2 0.000 0.00 1
12 B_scale_out 1x0.50 16 3 295.3 293.3 300.3 148.1 148.0 48.74 118.69 151.75 0.0000 1.00 0.14 0.79 0.08 1.08/2 0.000 0.00 5
13 B_scale_out 1x0.50 64 3 285.4 281.2 285.7 143.7 142.1 341.54 473.85 509.37 0.0000 1.00 0.13 0.78 0.07 1.06/2 0.011 0.03 0
14 B_scale_out 2x0.50 4 3 312.7 304.5 316.1 153.5 159.1 12.58 33.81 41.91 0.0000 0.77 0.15 1.01 0.08 1.48/2 0.000 0.00 1
15 B_scale_out 2x0.50 16 3 356.2 352.9 360.5 174.9 183.3 24.92 109.31 138.03 0.0000 0.74 0.18 1.00 0.09 1.47/2 0.000 0.00 1
16 B_scale_out 2x0.50 64 3 372.1 368.7 373.7 182.1 190.5 56.62 460.00 511.75 0.0000 0.77 0.19 1.00 0.09 1.50/2 0.009 0.12 0
17 B_scale_out 4x0.50 4 3 291.5 289.5 292.3 144.7 147.5 12.11 32.35 43.74 0.0000 0.44 0.17 1.00 0.08 1.60/2 0.000 0.00 1
18 B_scale_out 4x0.50 16 3 329.9 325.7 329.9 164.9 164.9 34.25 114.19 140.18 0.0000 0.44 0.18 0.99 0.09 1.61/2 0.000 0.01 1
19 B_scale_out 4x0.50 64 3 356.7 346.3 359.6 177.0 179.7 62.23 399.52 461.76 0.0000 0.43 0.20 0.97 0.10 1.59/2 0.000 0.00 4
20 D_improvement baseline_scan 32 3 214.0 212.9 216.0 105.5 108.8 50.05 346.31 399.77 0.0000 0.38 0.19 1.00 0.09 1.49/2 0.000 0.02 1
21 D_improvement baseline_scan 64 3 221.9 214.7 230.9 110.8 111.1 401.92 620.88 740.32 0.0000 0.39 0.18 0.99 0.10 1.50/2 0.000 0.12 1
22 D_improvement cache_version 32 3 543.7 540.1 566.4 267.5 276.7 48.60 129.57 174.33 0.0000 0.38 0.58 0.24 0.20 1.55/2 0.001 0.11 24
23 D_improvement cache_version 64 3 549.1 547.6 573.7 275.5 273.8 91.17 264.48 351.21 0.0000 0.39 0.57 0.23 0.19 1.56/2 0.024 0.11 43
24 D_improvement pool_8 32 3 208.2 187.3 227.5 104.7 103.5 197.00 346.58 407.86 0.0000 0.37 0.18 1.00 0.09 1.48/2 0.001 0.01 1
25 D_improvement pool_8 64 3 233.7 229.1 237.3 116.5 116.4 387.35 617.68 699.87 0.0000 0.40 0.20 0.98 0.10 1.53/2 0.016 0.17 2
26 D_improvement leastconn 32 3 231.6 222.3 232.7 115.0 114.7 189.50 321.39 412.19 0.0000 0.39 0.19 0.99 0.09 1.53/2 0.000 0.00 1
27 D_improvement leastconn 64 3 223.5 211.8 253.1 114.6 108.9 418.69 616.12 745.16 0.0000 0.38 0.20 0.99 0.09 1.51/2 0.000 0.02 2
28 C_shared_resources pg1_lb0.5_redis0.5 16 3 455.1 446.8 470.5 228.5 226.6 32.17 80.56 106.30 0.0000 0.36 0.23 0.99 0.11 1.51/2 0.000 0.00 1
29 C_shared_resources pg1_lb0.5_redis0.5 64 3 493.5 490.0 503.8 247.1 249.3 61.64 286.88 318.98 0.0000 0.35 0.24 1.00 0.12 1.51/2 0.000 0.07 1
30 C_shared_resources pg2 16 3 462.7 453.3 471.7 236.4 225.8 29.69 78.70 97.97 0.0000 0.35 0.11 1.00 0.10 1.46/2 0.000 0.00 2
31 C_shared_resources pg2 64 3 500.5 489.1 515.0 251.0 249.5 170.53 276.21 306.59 0.0000 0.35 0.12 0.99 0.11 1.49/2 0.001 0.04 1
32 C_shared_resources lb1 16 3 452.9 450.9 467.4 225.9 228.3 22.14 83.95 103.89 0.0000 0.36 0.23 1.00 0.06 1.52/2 0.000 0.01 2
33 C_shared_resources lb1 64 3 486.4 483.1 489.7 241.6 244.8 47.63 293.16 333.18 0.0000 0.35 0.24 0.99 0.06 1.50/2 0.002 0.00 1
34 C_shared_resources redis1 16 3 492.1 487.1 505.8 249.3 242.9 28.82 76.35 99.39 0.0000 0.40 0.25 0.54 0.12 1.65/2 0.000 0.00 1
35 C_shared_resources redis1 64 3 537.9 522.0 543.3 268.1 269.9 131.86 272.16 304.75 0.0000 0.39 0.27 0.55 0.12 1.66/2 0.000 0.00 2
36 E_scale_out_after_fix 1x0.50 4 3 475.3 465.2 482.1 240.3 234.9 5.72 31.90 39.57 0.0000 1.00 0.37 0.23 0.17 1.06/2 0.000 0.00 1
37 E_scale_out_after_fix 1x0.50 16 3 512.0 510.8 524.3 252.7 259.3 24.45 66.03 81.17 0.0000 1.00 0.36 0.22 0.17 1.06/2 0.000 0.00 1
38 E_scale_out_after_fix 1x0.50 64 3 560.0 555.3 563.4 280.1 279.7 109.09 175.97 204.49 0.0000 1.00 0.40 0.23 0.19 1.09/2 0.893 13.65 2
39 E_scale_out_after_fix 2x0.50 4 3 609.7 582.4 611.3 302.3 305.7 5.71 12.00 20.64 0.0000 0.79 0.45 0.33 0.21 1.50/2 0.000 0.00 3
40 E_scale_out_after_fix 2x0.50 16 3 617.7 603.4 625.4 310.1 303.3 23.05 52.36 73.64 0.0000 0.78 0.50 0.35 0.20 1.58/2 0.000 0.00 9
41 E_scale_out_after_fix 2x0.50 64 3 603.9 598.0 606.0 303.1 298.9 99.56 206.53 260.69 0.0000 0.78 0.55 0.24 0.20 1.55/2 0.799 10.55 29
42 E_scale_out_after_fix 4x0.50 4 3 599.3 584.2 599.7 300.3 298.9 5.80 13.02 20.18 0.0000 0.43 0.44 0.29 0.20 1.54/2 0.000 0.00 3
43 E_scale_out_after_fix 4x0.50 16 3 591.3 586.7 605.5 291.8 299.5 23.53 56.00 76.31 0.0000 0.41 0.46 0.29 0.19 1.56/2 0.000 0.00 9
44 E_scale_out_after_fix 4x0.50 64 3 595.5 588.2 597.7 297.5 298.0 87.94 244.09 351.81 0.0000 0.42 0.51 0.27 0.19 1.56/2 0.022 0.08 45