Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Syntax error when connection failure in "wait_service_ready" #826

Closed
sighingnow opened this issue Sep 18, 2021 · 0 comments · Fixed by #827
Closed

[BUG] Syntax error when connection failure in "wait_service_ready" #826

sighingnow opened this issue Sep 18, 2021 · 0 comments · Fixed by #827
Assignees
Labels
bug Something isn't working component:python

Comments

@sighingnow
Copy link
Collaborator

Describe the bug

The main branch CI ( https://github.com/alibaba/GraphScope/runs/3629239835#step:10:2177 ) has catched the following unexpected exception,

    def waiting_service_ready(self, timeout_seconds=60):
        begin_time = time.time()
        request = message_pb2.HeartBeatRequest()
        while True:
            code = self._launcher.poll()
            if code is not None and code != 0:
                raise RuntimeError(f"Start coordinator failed with exit code {code}")
            try:
                self._stub.HeartBeat(request)
                logger.info("GraphScope coordinator service connected.")
                break
            except grpc.RpcError as e:
                # Cannot connect to coordinator for a short time is expected
                # as the coordinator takes some time to launch
                msg = f"code: {e.code().name}, details: {e.details()}"
                if e.code() == grpc.StatusCode.DEADLINE_EXCEEDED:
                    logger.warning("Heart beat analytical engine failed, %s", msg)
                else:
                    logger.warning("Heart beat coordinator failed, %s", msg)
                if time.time() - begin_time >= timeout_seconds:
                    raise ConnectionError(
                        "Connect coordinator timeout, coordinator code: %s, details: %s",
                        e.code().name,
>                       e.details(),
                    )
E                   TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given

]

Additional context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:python
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants