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

Lyuben Todorov commented on CASSANDRA-6572:
-------------------------------------------

I'm not too sure about the process of making the appends asynch for the 
workload recording so I'd like to get some feedback on my idea before i go any 
furher, it goes like this:

# Calculate how much space will be required from the query queue in a separate 
function
# move the queue pointer ahead by that value 
# submit the append in a separate thead where this is done using an executor 
that gets shut down when the query logging is disabled or C* is shutdown.

And ofc remove the "synchronized" from {{QueryRecorded#append}}

> Workload recording / playback
> -----------------------------
>
>                 Key: CASSANDRA-6572
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6572
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Core, Tools
>            Reporter: Jonathan Ellis
>            Assignee: Lyuben Todorov
>             Fix For: 2.1.1
>
>         Attachments: 6572-trunk.diff
>
>
> "Write sample mode" gets us part way to testing new versions against a real 
> world workload, but we need an easy way to test the query side as well.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to