apache / apache/accumulo

Add new scan states for scan sessions that are no longer accessible by client

Open
#4,843 1 comment 0 reactions 1 assignee Claimed by @ArbaazKhan1 View on GitHub
enhancement
Dominant language
Java
Stars
1.2k
Forks
487
Avg merge
4d 5h
Merged PRs (30d)
13

Description

**Is your feature request related to a problem? Please describe.**

Scan session that are no longer accessible by a client may still show in list scans. These scan session could be in the process of cleaning up resources or have a threads running. There is currently no direct indication of this in list scans output. There is an indirect indication that was not intentional , currently inaccessible scan session will lose their scan id. When this happens they will show up in listscans output with an id of zero or one. If #4842 were implemented this would no longer be the case.

**Describe the solution you'd like**

Update [ScanState](https://github.com/apache/accumulo/blob/85418b8f5e681c5a7091150f24975e8630be9804/core/src/main/java/org/apache/accumulo/core/client/admin/ScanState.java#L21) enum to include one or two new states. These new states could be `CLEANING` and `ZOMBIE` possibly. The cleaning state would indicate the session is no longer accessible and is in the process of cleaning up resources. The zombie state would indicate the client session is no longer accessible and still has a thread running on the server side.

After the changes in #4840, the information is available server side to populate new scan states.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.