[jira] [Commented] (CASSANDRA-14310) Don't allow nodetool refresh before cfs is opened

2018-04-10 Thread Jordan West (JIRA)

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

Jordan West commented on CASSANDRA-14310:
-

+1. Agreed on keeping the initialized check as well. None of the dtest failures 
look related and the new dtest looks good.

> Don't allow nodetool refresh before cfs is opened
> -
>
> Key: CASSANDRA-14310
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14310
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Marcus Eriksson
>Assignee: Marcus Eriksson
>Priority: Major
> Fix For: 3.0.x, 3.11.x, 4.x
>
>
> There is a potential deadlock in during startup if nodetool refresh is called 
> while sstables are being opened. We should not allow refresh to be called 
> before everything is initialized.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-14310) Don't allow nodetool refresh before cfs is opened

2018-04-10 Thread Marcus Eriksson (JIRA)

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

Marcus Eriksson commented on CASSANDRA-14310:
-

bq.  is it necessary for ColumnFamilyStore.loadNewSSTables to be synchronized 
on ColumnFamilyStore.class?
hmm, no, looks like it isn't, nice catch, pushed a commit that removes it

Keeping the initialized-check - don't think we should allow refresh before 
fully started

tests: https://circleci.com/gh/krummas/cassandra/tree/marcuse%2F14310
and a dtest: https://github.com/krummas/cassandra-dtest/commits/marcuse/14310

> Don't allow nodetool refresh before cfs is opened
> -
>
> Key: CASSANDRA-14310
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14310
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Marcus Eriksson
>Assignee: Marcus Eriksson
>Priority: Major
> Fix For: 3.0.x, 3.11.x, 4.x
>
>
> There is a potential deadlock in during startup if nodetool refresh is called 
> while sstables are being opened. We should not allow refresh to be called 
> before everything is initialized.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-14310) Don't allow nodetool refresh before cfs is opened

2018-04-09 Thread Jordan West (JIRA)

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

Jordan West commented on CASSANDRA-14310:
-

I'm +1 on this if this is the fix we want to go with it. It prevents the 
deadlock caused by startup.

I do think its worth considering how to prevent future incarnations of this 
deadlock from being introduced. To that end, is it necessary for 
{{ColumnFamilyStore.loadNewSSTables}} to be {{synchronized}} on 
{{ColumnFamilyStore.class}}? Clearly its instance method counterpart does but 
why the static class? I don't see why and if we remove it, or replace it with a 
dedicated lock if locking is indeed necessary, then the lock ordering problem 
it introduces is gone as well. 

> Don't allow nodetool refresh before cfs is opened
> -
>
> Key: CASSANDRA-14310
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14310
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Marcus Eriksson
>Assignee: Marcus Eriksson
>Priority: Major
> Fix For: 3.0.x, 3.11.x, 4.x
>
>
> There is a potential deadlock in during startup if nodetool refresh is called 
> while sstables are being opened. We should not allow refresh to be called 
> before everything is initialized.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-14310) Don't allow nodetool refresh before cfs is opened

2018-04-09 Thread Dinesh Joshi (JIRA)

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

Dinesh Joshi commented on CASSANDRA-14310:
--

[~krummas] Do you think it is worth replacing the {{synchronized}} on 
{{ColumnFamilyStore#loadNewSSTables}} with an explicit {{Lock}} with a timeout?

> Don't allow nodetool refresh before cfs is opened
> -
>
> Key: CASSANDRA-14310
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14310
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Marcus Eriksson
>Assignee: Marcus Eriksson
>Priority: Major
> Fix For: 3.0.x, 3.11.x, 4.x
>
>
> There is a potential deadlock in during startup if nodetool refresh is called 
> while sstables are being opened. We should not allow refresh to be called 
> before everything is initialized.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org