[ 
https://issues.apache.org/jira/browse/CASSANDRA-21471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18091462#comment-18091462
 ] 

Dmitry Konstantinov edited comment on CASSANDRA-21471 at 6/25/26 9:11 AM:
--------------------------------------------------------------------------

I see 2 main ways to support the queries logic for immediately executed tasks:
* DebuggableTaskRunner to return a collection of Runnable
* Create a separate instance of DebuggableTaskRunner for immediately executed 
tasks, exposed by SEPWorker

I've selected the second way in the PR due to 2 reasons: 
* the current virtual table schema assumes that DebuggableTaskRunner is only 
the key in the table, so we cannot show several tasks at the same time with the 
same id without changing the table schema
* changing of DebuggableTaskRunner API affects more classes

Nesting of immediate tasks is not supported intentionally, to avoid overheads


was (Author: dnk):
I see 2 main ways to support the queries logic for immediately executed tasks:
* DebuggableTaskRunner to return a collection of Runnable
* Create a separate instance of DebuggableTaskRunner for immediately executed 
tasks, exposed by SEPWorker

I've selected the second way in the PR due to 2 reasons: 
* the current virtual table schema assumes that DebuggableTaskRunner is only 
the key in the table, so we cannot show several tasks at the same time with the 
same id without changing the table schema
* changing of DebuggableTaskRunner API affects more classes

> Test failure: org.apache.cassandra.distributed.test.QueriesTableTest
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-21471
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21471
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Local/Other
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>             Fix For: 6.x, 7.x
>
>         Attachments: image-2026-06-18-17-41-01-479.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> https://pre-ci.cassandra.apache.org/job/cassandra/609/ 
>  !image-2026-06-18-17-41-01-479.png|width=600! 
> Tests / jvm-dtest jdk11 3/16 / 
> org.apache.cassandra.distributed.test.QueriesTableTest.shouldExposeCAS-_jdk11_x86_64
> Tests / jvm-dtest jdk17 3/16 / 
> org.apache.cassandra.distributed.test.QueriesTableTest.shouldExposeCAS-_jdk17_x86_64
> Tests / jvm-dtest jdk21 3/16 / 
> org.apache.cassandra.distributed.test.QueriesTableTest.shouldExposeCAS-_jdk21_x86_64
> Tests / jvm-dtest jdk11 3/16 / 
> org.apache.cassandra.distributed.test.QueriesTableTest.shouldExposeReadsAndWrites-_jdk11_x86_64
> Tests / jvm-dtest jdk17 3/16 / 
> org.apache.cassandra.distributed.test.QueriesTableTest.shouldExposeReadsAndWrites-_jdk17_x86_64
> Tests / jvm-dtest jdk21 3/16 / 
> org.apache.cassandra.distributed.test.QueriesTableTest.shouldExposeReadsAndWrites-_jdk21_x86_64



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to