dask / dask/distributed

Clicking a red transfer bar on task stream causes error

Open
#5,880 0 comments 0 reactions 0 assignees View on GitHub
bug diagnostics p3
Dominant language
Python
Stars
1.7k
Forks
778
Avg merge
2h 50m
Merged PRs (30d)
3

Description

Just noting this: if you click one of the red transfer bars on the task stream, it throws an error, and opens an invalid profile page like `/profile?key=transfer-_chunk_sum-partial`

![Screen Shot 2022-02-28 at 6 18 23 PM](https://user-images.githubusercontent.com/3309802/156086488-d8bfc846-c34c-4f1d-ad88-9d3d46f3cffb.png)

```python-traceback
distributed.utils - ERROR - 'transfer-_chunk_sum-partial'
Traceback (most recent call last):
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/distributed/utils.py", line 695, in log_errors
yield
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/distributed/dashboard/components/shared.py", line 285, in update
ts = metadata["keys"][self.key]
KeyError: 'transfer-_chunk_sum-partial'
tornado.application - ERROR - Exception in callback functools.partial(>, ._needs_document_lock_wrapper() done, defined at /Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/server/session.py:77> exception=KeyError('transfer-_chunk_sum-partial')>)
Traceback (most recent call last):
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/tornado/ioloop.py", line 741, in _run_callback
ret = callback()
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/tornado/ioloop.py", line 765, in _discard_future_result
future.result()
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/server/session.py", line 93, in _needs_document_lock_wrapper
result = func(self, *args, **kwargs)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/server/session.py", line 227, in with_document_locked
return func(*args, **kwargs)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/document/callbacks.py", line 450, in wrapper
return invoke_with_curdoc(doc, invoke)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/document/callbacks.py", line 408, in invoke_with_curdoc
return f()
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/document/callbacks.py", line 449, in invoke
return f(*args, **kwargs)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/document/callbacks.py", line 179, in remove_then_invoke
return callback()
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/distributed/dashboard/components/shared.py", line 306, in
self.doc().add_next_tick_callback(lambda: self.update(prof, metadata))
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/bokeh/core/property/validation.py", line 95, in func
return input_function(*args, **kwargs)
File "/Users/gabe/Library/Caches/pypoetry/virtualenvs/workshop-one-3dbJnD_1-py3.9/lib/python3.9/site-packages/distributed/dashboard/components/shared.py", line 285, in update
ts = metadata["keys"][self.key]
KeyError: 'transfer-_chunk_sum-partial'
```

These red transfer boxes (and the yellow splil-to-disk ones) should ideally just not be clickable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.