Skip to content

lmdb - Cannot create entries with long rdn  #6105

Closed
@progier389

Description

@progier389

Issue Description
Full description in https://pagure.io/freeipa/issue/9529
Problem root cause:
An entry may have several children, so Cid key containing the reference of childrens of entry with entrid "id" has several records `. To allow that, entryrdn.db is open with MDB_DUPSORT flag. But this means that len(key) + len(data) is limited
with some hardcoded limit (i.e: 511 bytes with the current version of liblmdb)
And as the entryrdn.db data record contains both the rd and the normalized rdn the limit is reached with rdn lenght greater than about 250 bytes

Package Version and Platform:

  • Platform: Fedora
  • Package and version: 3.0.1

Steps to Reproduce
Steps to reproduce the behavior:

  1. Through freeipa tests (See https://pagure.io/freeipa/issue/9529)
  2. You can also reproduce by adding an entry with and rdn using a naming attribute with a value having 250 bytes (or more)

Expected results
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Jira ticket is: IDMDS-4148

Metadata

Metadata

Assignees

No one assigned

    Labels

    In JIRAticket is in JIRAlmdbLMDB related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions