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

Enqueue tasks that need the same resource #2321

Open
389-ds-bot opened this issue Sep 13, 2020 · 1 comment
Open

Enqueue tasks that need the same resource #2321

389-ds-bot opened this issue Sep 13, 2020 · 1 comment
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/49262

  • Created at 2017-05-18 11:37:40 by darix
  • Assigned to nobody

Issue Description

Given the following ldif

# addindex.ldif
dn: cn=someattribute,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
changetype: add
objectClass: top
objectClass: nsIndex
cn: someattribute
nsSystemIndex: false
nsIndexType: eq

dn: cn=someattribute_add_eq,cn=index,cn=tasks,cn=config
changetype: add
objectclass: top
objectclass: extensibleObject
cn: someattribute_add_eq
nsInstance: userRoot
nsIndexAttribute: someattribute:eq

dn: cn=someattribute2,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
changetype: add
objectClass: top
objectClass: nsIndex
cn: someattribute2
nsSystemIndex: false
nsIndexType: eq

dn: cn=someattribute2_add_eq,cn=index,cn=tasks,cn=config
changetype: add
objectclass: top
objectclass: extensibleObject
cn: someattribute2_add_eq
nsInstance: userRoot
nsIndexAttribute: someattribute2:eq
[18/May/2017:11:29:47.918461681 +0200] - INFO - ldbm_back_ldbm2index - userRoot: Indexing attribute: someattribute
[18/May/2017:11:29:48.063145088 +0200] - ERR - ldbm_back_ldbm2index - ldbm: 'userRoot' is already in the middle of another task and cannot be disturbed.
[18/May/2017:11:29:48.100365429 +0200] - ERR - task_index_thread - Index failed (error -1)
[18/May/2017:11:29:49.785342520 +0200] - INFO - ldbm_back_ldbm2index - userRoot: Indexed 1000 entries (27%).
[18/May/2017:11:29:51.591143180 +0200] - INFO - ldbm_back_ldbm2index - userRoot: Indexed 2000 entries (55%).
[18/May/2017:11:29:55.212496907 +0200] - INFO - ldbm_back_ldbm2index - userRoot: Indexed 3000 entries (82%).
[18/May/2017:11:29:57.302965953 +0200] - INFO - ldbm_back_ldbm2index - userRoot: Finished indexing.

The 2nd task should be enqueued and wait for the DB access to free up. in the current situation it is hard to script the process.

Package Version and Platform

389-ds-1.3.6.4-39.1.x86_64 on openSUSE Tumbleweed

Steps to reproduce

  1. load ldif
  2. observe error in log

Actual results

error

Expected results

tasks processed in a row

@389-ds-bot 389-ds-bot added this to the 1.4 backlog milestone Sep 13, 2020
@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2017-05-25 17:50:01

Metadata Update from @mreynolds389:

  • Custom field type adjusted to defect
  • Issue set to the milestone: 1.4 backlog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant