The branch, master has been updated via 595d12ca7b1 selftest: Print dns_update_cache path into the logs from 51012692703 lib/tsocket: Free subreq as soon as possible
https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 595d12ca7b13b7ef7a00a77117841178422bc46f Author: Andrew Bartlett <abart...@samba.org> Date: Mon Nov 23 20:54:29 2020 +1300 selftest: Print dns_update_cache path into the logs This sometimes get stuck in a loop and this may help debug it. Signed-off-by: Andrew Bartlett <abart...@samba.org> Autobuild-User(master): Stefan Metzmacher <me...@samba.org> Autobuild-Date(master): Thu Jul 8 12:44:49 UTC 2021 on sn-devel-184 ----------------------------------------------------------------------- Summary of changes: selftest/target/Samba4.pm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) Changeset truncated at 500 lines: diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index f15daa54e59..cb462794df6 100755 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -204,28 +204,29 @@ sub wait_for_start($$) # Ensure we registered all our names if ($testenv_vars->{SERVER_ROLE} eq "domain controller") { my $max_wait = 120; - print "Waiting for dns_update_cache to be created.\n"; + my $dns_update_cache = "$testenv_vars->{PRIVATEDIR}/dns_update_cache"; + print "Waiting for $dns_update_cache to be created.\n"; $count = 0; - while (not -e "$testenv_vars->{PRIVATEDIR}/dns_update_cache") { + while (not -e $dns_update_cache) { $count++; if ($count > $max_wait) { teardown_env($self, $testenv_vars); - warn("Timed out ($max_wait sec) waiting for dns_update_cache PID $testenv_vars->{SAMBA_PID}"); + warn("Timed out ($max_wait sec) waiting for $dns_update_cache PID $testenv_vars->{SAMBA_PID}"); return -1; } - print "Waiting for dns_update_cache to be created...\n"; + print "Waiting for $dns_update_cache to be created...\n"; sleep(1); } - print "Waiting for dns_update_cache to be filled.\n"; + print "Waiting for $dns_update_cache to be filled.\n"; $count = 0; - while ((-s "$testenv_vars->{PRIVATEDIR}/dns_update_cache") == 0) { + while ((-s "$dns_update_cache") == 0) { $count++; if ($count > $max_wait) { teardown_env($self, $testenv_vars); - warn("Timed out ($max_wait sec) waiting for dns_update_cache PID $testenv_vars->{SAMBA_PID}"); + warn("Timed out ($max_wait sec) waiting for $dns_update_cache PID $testenv_vars->{SAMBA_PID}"); return -1; } - print "Waiting for dns_update_cache to be filled...\n"; + print "Waiting for $dns_update_cache to be filled...\n"; sleep(1); } } -- Samba Shared Repository