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] Async 'NoneType' object has no attribute 'result' #202

Closed
del-zhenwu opened this issue May 7, 2020 · 0 comments
Closed

[BUG] Async 'NoneType' object has no attribute 'result' #202

del-zhenwu opened this issue May 7, 2020 · 0 comments
Labels
kind/bug Something isn't working

Comments

@del-zhenwu
Copy link

Describe the bug

____________________________________________________________________________________________________ TestFlushAsync.test_flush_async _____________________________________________________________________________________________________

self = <test_flush.TestFlushAsync object at 0x7fc365a710f0>, connect = <milvus.client.stub.Milvus object at 0x7fc365a71ac8>, collection = 'test_flush_WFrtmIBT'

    def test_flush_async(self, connect, collection):
        nb = 100000
        vectors = gen_vectors(nb, dim)
        connect.add_vectors(collection, vectors)
        logging.getLogger().info("before")
        future = connect.flush([collection], _async=True, _callback=self.check_status)
        logging.getLogger().info("after")
        future.done()
>       status = future.result()

test_flush.py:270: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <milvus.client.asynch.FlushFuture object at 0x7fc3655e2da0>, kwargs = {}, to = None

    def result(self, **kwargs):
        self.exception()
        with self._condition:
            # future not finished. wait callback being called.
            to = kwargs.get("timeout", None)
>           self._response = self._future.result(timeout=to)
E           AttributeError: 'NoneType' object has no attribute 'result'

/usr/local/lib/python3.6/site-packages/milvus/client/asynch.py:94: AttributeError

Steps/Code to reproduce behavior
Follow this guide to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.

Expected behavior
A clear and concise description of what you expected to happen.

Environment details

  • Hardware/Softward conditions (OS, CPU, GPU, Memory)
  • Method of installation (Docker, or from source)
  • Milvus version (v0.3.1, or v0.4.0)
  • Milvus configuration (Settings you made in server_config.yaml)

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@del-zhenwu del-zhenwu added the kind/bug Something isn't working label May 7, 2020
@BossZou BossZou closed this as completed May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants