Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Hang after map_sync is called in loop for a number of iterations

オープン
#373 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
jupyter, python

調査の方向性

まず、Windows 上で ipcluster start -n 4 を使って issue の Python 再現プログラムを実行し、負荷分散の場合と直接ビューの場合を比較します。繰り返しの反復後に map_sync が応答しなくなる箇所を追跡します。完了の条件は、ループがハングせずに完了し、報告されている両方の Python バージョンで修正を検証できることです。

索引モデルが issue の本文から書いたものです。

説明

The following script hangs after about ~180 iterations on my machine
Number of iterations it gets through seems to be dependent on the time elapsed (hence the sleep)

import numpy as np
import ipyparallel as ipp

c = ipp.Client()
dv = c[:]
dv.execute("import time")
dv.execute("import numpy as np")

v = c.load_balanced_view()

def fun(state):
    time.sleep(0.5)
    return np.random.normal()

# Generation loop
for it in range(1000):
    inputs = range(12)
    #v = c.load_balanced_view()
    outputs = np.array(v.map_sync(fun, inputs))
    print "Iteration", it

Windows 10, Anaconda installation
ipyparallel 6.2.4 py27_0

Cluster is started via ipcluster start -n 4 on powershell
Tried and same problem observed with both python 2.7 and python 3.7
Tried both load balanced and direct views
No error messages and the powershell window for ipcluster becomes unresponsive

主要言語
Jupyter Notebook
スター
2.6k
フォーク
1k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ipython/ipyparallel のほかの issue

ipython/ipyparallel の issue をすべて見る

似ている issue

Distributed Systems の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。