Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
eb45031e
Commit
eb45031e
authored
11 years ago
by
Eugine Blikh
Browse files
Options
Downloads
Patches
Plain Diff
Fix for timeout while waiting for start of TarantoolServer
parent
54898808
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/lib/tarantool_server.py
+15
-8
15 additions, 8 deletions
test/lib/tarantool_server.py
with
15 additions
and
8 deletions
test/lib/tarantool_server.py
+
15
−
8
View file @
eb45031e
...
...
@@ -4,18 +4,20 @@ import sys
import
glob
import
time
import
yaml
import
errno
import
shlex
import
daemon
import
random
import
shutil
import
difflib
import
signal
import
socket
import
difflib
import
filecmp
import
traceback
import
subprocess
import
collections
try
:
from
cStringIO
import
StringIO
except
ImportError
:
...
...
@@ -639,14 +641,19 @@ class TarantoolServer(Server):
"""
self
.
logfile_pos
.
seek_from
(
'
entering the event loop
\n
'
,
self
.
process
if
not
self
.
gdb
else
None
)
while
True
:
temp
=
AdminConnection
(
'
localhost
'
,
self
.
conf
[
'
admin_port
'
])
ans
=
yaml
.
load
(
temp
.
execute
(
'
box.info.status
'
))[
0
]
if
ans
in
(
'
primary
'
,
'
hot_standby
'
,
'
orphan
'
)
or
ans
.
startswith
(
'
replica
'
):
return
True
else
:
raise
Exception
(
"
Strange output for `box.info.status`: %s
"
%
(
ans
))
try
:
temp
=
AdminConnection
(
'
localhost
'
,
self
.
conf
[
'
admin_port
'
])
ans
=
yaml
.
load
(
temp
.
execute
(
'
box.info.status
'
))[
0
]
if
ans
in
(
'
primary
'
,
'
hot_standby
'
,
'
orphan
'
)
or
ans
.
startswith
(
'
replica
'
):
return
True
else
:
raise
Exception
(
"
Strange output for `box.info.status`: %s
"
%
(
ans
))
except
socket
.
error
as
e
:
if
e
.
errno
==
errno
.
ECONNREFUSED
:
time
.
sleep
(
0.1
)
continue
raise
def
wait_until_stopped
(
self
,
pid
):
while
True
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment