apache / apache/pulsar

Why Roles do not support concurrent authorization?

Open
#16,105 2 comments 0 reactions 0 assignees View on GitHub
type/feature
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

version:2.10
I used multiple admin clients to concurrently grant multiple topic permissions to a role, but threw concurrent modification exceptions;

I think this should add support for concurrent authorization;

Exception Info:
java.util.concurrent.CompletionException: com.sf.mw.exceptions.InternalException: 角色:[j4hcvds:testSubRole:SUB]授予主题[duxgTenant/duxgNameSpace/duxgTopicToPro22-j4hcvds:testSubRole:SUB-RETRY] [pub]权限失败...org.apache.pulsar.client.admin.PulsarAdminException$ConflictException: Concurrent modification

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by reproducing the version 2.10 scenario with multiple admin clients concurrently granting topic permissions to one role, then trace the role authorization update path from the admin API. Done means concurrent grants have defined behavior and no longer fail with a Concurrent modification ConflictException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authorization, backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.