Univention Bugzilla – Attachment 11066 Details for
Bug 54597
Appcenter [python3]: RuntimeError: dictionary changed size during iteration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Script to reproduce
file_54597.txt (text/plain), 689 bytes, created by
Iván.Delgado
on 2023-05-17 09:49:02 CEST
(
hide
)
Description:
Script to reproduce
Filename:
MIME Type:
Creator:
Iván.Delgado
Created:
2023-05-17 09:49:02 CEST
Size:
689 bytes
patch
obsolete
>import time >import random > >import univention.admin >from threading import Thread > >lo, pos = univention.admin.uldap.getAdminConnection() > > >def job(lo, pos, module): > # for _ in range(1000): > # time.sleep(random.uniform(0, 0.1)) > while True: > univention.admin.modules.init(lo, pos, module, force_reload=True) > >for module_name in ('users/user',): > print(module_name) > > univention.admin.modules.update() > module = univention.admin.modules.get(module_name) > threads = [] > for x in range(100): > t = Thread(target=job, args=(lo, pos, module)) > threads.append(t) > t.start() > > for t in threads: > t.join()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 54597
: 11066