[
https://issues.apache.org/jira/browse/PHOENIX-5943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17234962#comment-17234962
]
Chinmay Kulkarni commented on PHOENIX-5943:
-------------------------------------------
[~RichardAntal] We are closing in on a 4.16 release and since this is a schema
change to a SYSTEM table, it needs to go in to a major or minor release. Since
we are close to releasing 4.16, we would ideally not want to introduce new
changes unless they are critical/blocker bug fixes. Since this is more of an
improvement rather than a bug fix, it would be better to commit once the
release is over (current timeline looks like 1 month or so). That way we will
get it in 4.17. Does that sound fine to you?
> Consider splitting up SYSTEM.TASK into 2 tables - one for queued jobs and one
> for task history
> ----------------------------------------------------------------------------------------------
>
> Key: PHOENIX-5943
> URL: https://issues.apache.org/jira/browse/PHOENIX-5943
> Project: Phoenix
> Issue Type: Improvement
> Affects Versions: 4.15.0
> Reporter: Chinmay Kulkarni
> Priority: Major
> Fix For: 5.1.0, 4.17.0
>
>
> We can split SYSTEM.TASK into 2 tables:
> # SYSTEM.TASK_QUEUE: used as an ephemeral task queue with potentially a
> smaller TTL which contains tasks that are new and yet to be picked up.
> # SYSTEM.TASK_HISTORY: used to store tasks that have already been picked up
> and may or may not have succeeded, along with more data about the task (stack
> trace, job IDs, etc.). This table can have a longer TTL and can be used for
> auditing/debugging purposes.
> The advantages of doing this are:
> * Makes SYSTEM.TASK_QUEUE more lightweight.
> * Less data scanned when picking up new tasks.
> * Combined with a PK change, we can introduce a natural priority queue using
> the TASK_PRIORITY field.
> * Different TTL value on the TASK_HISTORY table so we can maintain past
> tasks for a longer period of time.
> * Potentially makes this more in-line with other use-cases that want to
> maintain a similar kind of task and task history table (for ex: View TTL's
> async delete functionality).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)