Flush client before putting it on inactive

    WARNING: ThreadSanitizer: data race
    Write of size 4 at 0x000000000001 by thread T1:
    #0 get_client bin/named/client.c:3928:16
    #1 ns_client_replace bin/named/client.c:3725:12
    #2 query_recurse bin/named/query.c:4366:13
    #3 query_find bin/named/query.c
    #4 ns_query_start bin/named/query.c:9716:8
    #5 client_request bin/named/client.c:3127:3
    #6 dispatch lib/isc/task.c:1157:7
    #7 run lib/isc/task.c:1331:2

    Previous write of size 4 at 0x000000000001 by thread T2:
    #0 exit_check bin/named/client.c:706:17
    #1 ns_client_detach bin/named/client.c:3702:8
    #2 query_resume bin/named/query.c:4186:3
    #3 dispatch lib/isc/task.c:1157:7
    #4 run lib/isc/task.c:1331:2
89 jobs for !4267 with marka-noatomic-v9_11 in 21 minutes and 23 seconds (queued for 18 seconds)
detached
Status Job ID Name Coverage
  Precheck
passed #1261497
amd64 linux
autoreconf

00:00:15

passed #1261499
amd64 linux
clang-format

00:00:08

passed #1261500
amd64 linux
coccinelle

00:01:05

passed #1261501
amd64 linux
danger

00:00:16

passed #1261498
amd64 linux
misc

00:00:14

 
  Build
passed #1261516
amd64 linux
clang:asan

00:04:34

passed #1261523
amd64 linux
clang:buster:amd64

00:01:50

passed #1261525
amd64 libvirt
clang:freebsd11:amd64

00:02:04

passed #1261526
amd64 libvirt
clang:freebsd12:amd64

00:01:48

passed #1261527
amd64 libvirt
clang:openbsd:amd64

00:04:06

passed #1261518
amd64 linux
clang:tsan

00:02:24

passed #1261520
amd64 linux
clang:tsan:noatomics

00:02:17

passed #1261502
amd64 linux
gcc:alpine3.12:amd64

00:01:42

passed #1261515
amd64 linux
gcc:asan

00:03:28

passed #1261507
amd64 linux
gcc:buster:amd64

00:01:20

passed #1261503
amd64 linux
gcc:centos6:amd64

00:01:22

passed #1261504
amd64 linux
gcc:centos7:amd64

00:01:25

passed #1261505
amd64 linux
gcc:centos8:amd64

00:01:31

passed #1261512
amd64 linux
gcc:fedora33:amd64

00:01:34

passed #1261514
amd64 linux
gcc:focal:amd64

00:01:40

passed #1261521
amd64 linux
gcc:mutexatomics

00:01:44

passed #1261522
amd64 linux
gcc:noatomics

00:01:56

passed #1261509
amd64 linux
gcc:out-of-tree

00:01:38

passed #1261524
amd64 linux
gcc:pkcs11

00:01:37

passed #1261508
amd64 linux
gcc:sid:amd64

00:02:19

passed #1261510
i386 linux
gcc:sid:i386

00:01:46

passed #1261506
amd64 linux
gcc:stretch:amd64

00:01:52

passed #1261517
amd64 linux
gcc:tsan

00:01:52

passed #1261519
amd64 linux
gcc:tsan:noatomics

00:02:07

passed #1261511
amd64 linux
gcc:tumbleweed:amd64

00:01:34

passed #1261513
amd64 linux
gcc:xenial:amd64

00:01:45

passed #1261529
amd64 windows
msvc:windows:amd64

00:02:24

passed #1261528
amd64 linux
nolibtool:sid:amd64

00:02:05

 
  Unit
passed #1261543
amd64 linux
unit:clang:asan

00:01:18

passed #1261550
amd64 linux
unit:clang:buster:amd64

00:00:31

passed #1261552
amd64 libvirt
unit:clang:freebsd11:amd64

00:01:11

passed #1261553
amd64 libvirt
unit:clang:freebsd12:amd64

00:00:54

passed #1261545
amd64 linux
unit:clang:tsan

00:04:13

passed #1261547
amd64 linux
unit:clang:tsan:noatomics

00:04:10

passed #1261530
amd64 linux
unit:gcc:alpine3.12:amd64

00:00:32

passed #1261542
amd64 linux
unit:gcc:asan

00:01:18

passed #1261535
amd64 linux
unit:gcc:buster:amd64

00:01:02

passed #1261531
amd64 linux
unit:gcc:centos6:amd64

00:00:38

passed #1261532
amd64 linux
unit:gcc:centos7:amd64

00:00:34

passed #1261533
amd64 linux
unit:gcc:centos8:amd64

00:00:36

passed #1261539
amd64 linux
unit:gcc:fedora33:amd64

00:00:32

passed #1261541
amd64 linux
unit:gcc:focal:amd64

00:00:30

passed #1261548
amd64 linux
unit:gcc:mutexatomics

00:00:33

passed #1261549
amd64 linux
unit:gcc:noatomics

00:00:35

passed #1261551
amd64 linux
unit:gcc:pkcs11

00:00:37

passed #1261536
amd64 linux
unit:gcc:sid:amd64

00:00:31

passed #1261537
i386 linux
unit:gcc:sid:i386

00:00:31

passed #1261534
amd64 linux
unit:gcc:stretch:amd64

00:00:34

passed #1261544
amd64 linux
unit:gcc:tsan

00:04:58

passed #1261546
amd64 linux
unit:gcc:tsan:noatomics

00:04:55

passed #1261538
amd64 linux
unit:gcc:tumbleweed:amd64

00:00:31

passed #1261540
amd64 linux
unit:gcc:xenial:amd64

00:00:33

passed #1261554
amd64 linux
unit:nolibtool:sid:amd64

00:00:51

 
  System
passed #1261568
amd64 linux
system:clang:asan

00:08:53

passed #1261575
amd64 linux
system:clang:buster:amd64

00:07:12

passed #1261577
amd64 libvirt
system:clang:freebsd11:amd64

00:08:19

passed #1261578
amd64 libvirt
system:clang:freebsd12:amd64

00:08:09

passed #1261570
amd64 linux
system:clang:tsan

00:11:44

passed #1261572
amd64 linux
system:clang:tsan:noatomics

00:11:24

passed #1261555
amd64 linux
system:gcc:alpine3.12:amd64

00:07:28

passed #1261567
amd64 linux
system:gcc:asan

00:09:36

passed #1261560
amd64 linux
system:gcc:buster:amd64

00:08:26

passed #1261556
amd64 linux
system:gcc:centos6:amd64

00:07:20

passed #1261557
amd64 linux
system:gcc:centos7:amd64

00:07:19

passed #1261558
amd64 linux
system:gcc:centos8:amd64

00:07:13

passed #1261564
amd64 linux
system:gcc:fedora33:amd64

00:07:09

passed #1261566
amd64 linux
system:gcc:focal:amd64

00:07:09

passed #1261573
amd64 linux
system:gcc:mutexatomics

00:07:20

failed #1261574
amd64 linux
system:gcc:noatomics

00:07:22

passed #1261576
amd64 linux
system:gcc:pkcs11

00:08:15

passed #1261561
amd64 linux
system:gcc:sid:amd64

00:07:15

passed #1261562
i386 linux
system:gcc:sid:i386

00:06:43

passed #1261559
amd64 linux
system:gcc:stretch:amd64

00:07:14

failed #1261569
amd64 linux allowed to fail
system:gcc:tsan

00:12:58

passed #1261571
amd64 linux
system:gcc:tsan:noatomics

00:13:04

passed #1261563
amd64 linux
system:gcc:tumbleweed:amd64

00:07:08

passed #1261565
amd64 linux
system:gcc:xenial:amd64

00:06:58

passed #1261579
amd64 linux
system:nolibtool:sid:amd64

00:07:24

 
  Docs
passed #1261580
amd64 linux
docs

00:00:27

 
  Postcheck
passed #1261584
amd64 linux
cppcheck

00:00:27

passed #1261581
amd64 linux
flake8

00:00:20

passed #1261585
amd64 linux
gcov

00:00:44

74.0%
passed #1261582
amd64 linux
pylint

00:00:21

passed #1261583
amd64 linux
scan-build

00:09:42

 
Name Stage Failure
failed
system:gcc:tsan System
Running after_script
Running after script...
$ find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1429 files

Uploading artifacts as "archive" to coordinator... ok
id=1261569 responseStatus=201 Created token=ksX5Wbpd
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:noatomics System
I:The following system tests failed:
I: statistics
make: *** [Makefile:474: test] Error 1
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1410 files

Uploading artifacts as "archive" to coordinator... ok
id=1261574 responseStatus=201 Created token=mpzNVTV6
Cleaning up file based variables
ERROR: Job failed: exit code 1