Failed to add/update records when using MongoDB backend
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Bắt đầu trong ipyparallel/controller/mongodb.py, đặc biệt là _binary_buffers và update_record, sau đó theo dõi cách save_queue_result trong ipyparallel/controller/hub.py cung cấp rec['buffers']. Tái hiện một tác vụ map hoặc apply_sync với backend MongoDB và xác nhận rằng việc thêm hoặc cập nhật các bản ghi hoàn tất mà không gặp BSON bytes TypeError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When I submit tasks to either direct or load balanced view using either map or apply_sync I see debug logs below:
2018-09-18 23:27:05.936 [IPClusterStart] 2018-09-18 23:27:05.935 [IPControllerApp] ERROR | DB Error updating record u'e5925b97-b0906f91a3415ce89c3c2299'
2018-09-18 23:27:05.936 [IPClusterStart] Traceback (most recent call last):
2018-09-18 23:27:05.937 [IPClusterStart] File "/home/ifu/anaconda2/lib/python2.7/site-packages/ipyparallel/controller/hub.py", line 693, in save_queue_result
2018-09-18 23:27:05.937 [IPClusterStart] self.db.update_record(msg_id, result)
2018-09-18 23:27:05.937 [IPClusterStart] File "/home/ifu/anaconda2/lib/python2.7/site-packages/ipyparallel/controller/mongodb.py", line 87, in update_record
2018-09-18 23:27:05.937 [IPClusterStart] rec = self._binary_buffers(rec)
2018-09-18 23:27:05.937 [IPClusterStart] File "/home/ifu/anaconda2/lib/python2.7/site-packages/ipyparallel/controller/mongodb.py", line 68, in _binary_buffers
2018-09-18 23:27:05.937 [IPClusterStart] rec[key] = list(map(Binary, rec[key]))
2018-09-18 23:27:05.937 [IPClusterStart] File "/home/ifu/anaconda2/lib/python2.7/site-packages/bson/binary.py", line 147, in __new__
2018-09-18 23:27:05.937 [IPClusterStart] raise TypeError("data must be an instance of bytes")
2018-09-18 23:27:05.937 [IPClusterStart] TypeError: data must be an instance of bytes
Looks like rec['buffers'] cannot be binarized?
I am running on ubuntu 17.04 with anaconda python 2.7.15, ipyparallel 6.2.2 and pymongo 3.7.0.
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 2.6k
- Fork
- 1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ipython/ipyparallel
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ipython/ipyparallel#1029 · 9 bình luận ·
-
pidigits example website is gone Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
ipython/ipyparallel#984 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ipython/ipyparallel#937 · 4 bình luận ·
-
Packages and definitions loaded in the regular kernel are not known by engines and vice versa Đang mởquestion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ipython/ipyparallel#897 · 12 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ipython/ipyparallel#882 ·
Tất cả issue của ipython/ipyparallel
Issue tương tự
-
Area: Excel support
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
orbeon/orbeon-forms#7893 ·
-
essnmx good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yeti-platform/yeti#1380 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/python-sdk#3566 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
griptape-ai/griptape#2353 ·