apache / apache/druid

Fail to deserialize a JSON for SegmentLockReleaseAction

Open
#9,657 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Java
Stars
14.1k
Forks
3.8k
Avg merge
2d 58m
Merged PRs (30d)
233

Description

### Affected Version

0.16, 0.17, 0.18

### Description

`SegmentLockReleaseAction` is not registered as a subtype of `TaskAction`.

```
Could not resolve type id 'SegmentLockReleaseAction' as a subtype of `org.apache.druid.indexing.common.actions.TaskAction`: known type ids = [checkPointDataSourceMetadata, lockAcquire, lockList, lockRelease, lockTryAcquire, resetDataSourceMetadata, segmentAllocate, segmentInsertion, segmentListUnused, segmentListUsed, segmentLockAcquire, segmentLockTryAcquire, segmentMetadataUpdate, segmentNuke, segmentTransactionalInsert, surrogateAction]
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing the JSON deserialization path for TaskAction and the subtype registration for SegmentLockReleaseAction. Reproduce the reported error if possible, then verify that a SegmentLockReleaseAction payload deserializes successfully as a TaskAction without removing existing subtype handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.