Skip to content

ATLAS-4071: Use remove() instead of rename loop when deleting property keys#557

Open
uran0sH wants to merge 1 commit intoapache:masterfrom
uran0sH:ATLAS-4071
Open

ATLAS-4071: Use remove() instead of rename loop when deleting property keys#557
uran0sH wants to merge 1 commit intoapache:masterfrom
uran0sH:ATLAS-4071

Conversation

@uran0sH
Copy link

@uran0sH uran0sH commented Feb 27, 2026

What changes were proposed in this pull request?

Fixes the issue where after deleting a type, new insertions fail when using Elasticsearch as the index backend.

Previously, the code attempted to delete property keys by renaming them with a "_deleted_N" suffix in a loop. This approach left the property keys in the graph, causing schema conflicts with ES and preventing subsequent insertions. This change uses the remove() method to properly delete the property key, resolving the conflict.

How was this patch tested?

Create a type and delete it. You can recreate it again successfully.

…y keys

Fixes the issue where after deleting a type, new insertions fail when using
Elasticsearch as the index backend.

Previously, the code attempted to delete property keys by renaming them
with a "_deleted_N" suffix in a loop. This approach left the property keys
in the graph, causing schema conflicts with ES and preventing subsequent
insertions. This change uses the remove() method to properly delete the
property key, resolving the conflict.

Signed-off-by: Wenyu Huang <huangwenyuu@outlook.com>
@uran0sH
Copy link
Author

uran0sH commented Feb 27, 2026

ref: JanusGraph/janusgraph#2653

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

Successfully merging this pull request may close these issues.

1 participant