HH-47815 fix bug in write_error and add tests
HH-47815 fix logging levels
Merge remote-tracking branch 'origin/HH-47815' into EXP-12789
release 2.21.17 [an.sumin@hh.ru]