[jira] [Updated] (CASSANDRA-16191) Add tests for Repair metrics

2020-11-20 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16191:

Reviewers: Adam Holmberg
   Status: Review In Progress  (was: Patch Available)

> Add tests for Repair metrics
> 
>
> Key: CASSANDRA-16191
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16191
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/dtest/python
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-preview_failures_metric_test.patch
>
>
> We do not seems to have some tests for the {{RepairMetrics.previewFailures}} 
> counter.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Comment Edited] (CASSANDRA-16191) Add tests for Repair metrics

2020-11-20 Thread Yasar Arafath Baigh (Jira)


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

Yasar Arafath Baigh edited comment on CASSANDRA-16191 at 11/20/20, 3:52 PM:


In preview_repair_test.py,  test-case:  test_preview  is enhanced to perform 
assertion {{RepairMetrics.previewFailures}}  counter.


was (Author: yasar_baigh):
In preview_repair_test.py,  test-case : test_preview  is enhanced to perform 
assertion {{RepairMetrics.previewFailures}}  counter.

> Add tests for Repair metrics
> 
>
> Key: CASSANDRA-16191
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16191
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/dtest/python
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-preview_failures_metric_test.patch
>
>
> We do not seems to have some tests for the {{RepairMetrics.previewFailures}} 
> counter.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (CASSANDRA-16185) Add tests to cover CommitLog metrics

2020-11-20 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16185:

Status: Review In Progress  (was: Patch Available)

> Add tests to cover CommitLog metrics
> 
>
> Key: CASSANDRA-16185
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16185
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/unit
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-Unit-Test-cases-for-CommitLogMetrics.patch
>
>
> The only metrics that seems to be covered by unit test for the CommitLog 
> metrics is {{oversizedMutations}}. We should add testing the other ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (CASSANDRA-16191) Add tests for Repair metrics

2020-11-20 Thread Yasar Arafath Baigh (Jira)


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

Yasar Arafath Baigh commented on CASSANDRA-16191:
-

In preview_repair_test.py,  test-case : test_preview  is enhanced to perform 
assertion {{RepairMetrics.previewFailures}}  counter.

> Add tests for Repair metrics
> 
>
> Key: CASSANDRA-16191
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16191
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/dtest/python
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-preview_failures_metric_test.patch
>
>
> We do not seems to have some tests for the {{RepairMetrics.previewFailures}} 
> counter.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (CASSANDRA-16191) Add tests for Repair metrics

2020-11-20 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16191:

Test and Documentation Plan: 
In existing *preview_repair_test.py* , which 3 nodes are started.
After adding few records in node-3, its stopped, similarly few records
are added in node-1 & its stopped.

Later before performing sync operation, nodetool preview and validate operations
are performed. So this preview operation will tick the 
RepairMetrics::previewFailures metric, 
so its expected that RepairMetrics::previewFailures metric count is increased.

After performing sync operations in cluster, when same preview operation is 
performed,
then RepairMetrics::previewFailures metric value should remain same.
 Status: Patch Available  (was: In Progress)

> Add tests for Repair metrics
> 
>
> Key: CASSANDRA-16191
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16191
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/dtest/python
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-preview_failures_metric_test.patch
>
>
> We do not seems to have some tests for the {{RepairMetrics.previewFailures}} 
> counter.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (CASSANDRA-16191) Add tests for Repair metrics

2020-11-20 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16191:

Attachment: 0001-preview_failures_metric_test.patch

> Add tests for Repair metrics
> 
>
> Key: CASSANDRA-16191
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16191
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/dtest/python
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-preview_failures_metric_test.patch
>
>
> We do not seems to have some tests for the {{RepairMetrics.previewFailures}} 
> counter.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (CASSANDRA-16185) Add tests to cover CommitLog metrics

2020-11-13 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16185:

Reviewers: Adam Holmberg
   Status: Review In Progress  (was: Patch Available)

> Add tests to cover CommitLog metrics
> 
>
> Key: CASSANDRA-16185
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16185
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/unit
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-Unit-Test-cases-for-CommitLogMetrics.patch
>
>
> The only metrics that seems to be covered by unit test for the CommitLog 
> metrics is {{oversizedMutations}}. We should add testing the other ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (CASSANDRA-16185) Add tests to cover CommitLog metrics

2020-11-13 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16185:

Attachment: 0001-Unit-Test-cases-for-CommitLogMetrics.patch

> Add tests to cover CommitLog metrics
> 
>
> Key: CASSANDRA-16185
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16185
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/unit
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-Unit-Test-cases-for-CommitLogMetrics.patch
>
>
> The only metrics that seems to be covered by unit test for the CommitLog 
> metrics is {{oversizedMutations}}. We should add testing the other ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (CASSANDRA-16185) Add tests to cover CommitLog metrics

2020-11-13 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16185:

Attachment: (was: 0001-Unit-Test-cases-for-CommitLogMetrics.patch)

> Add tests to cover CommitLog metrics
> 
>
> Key: CASSANDRA-16185
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16185
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/unit
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-Unit-Test-cases-for-CommitLogMetrics.patch
>
>
> The only metrics that seems to be covered by unit test for the CommitLog 
> metrics is {{oversizedMutations}}. We should add testing the other ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (CASSANDRA-16185) Add tests to cover CommitLog metrics

2020-11-13 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16185:

Test and Documentation Plan: 
CommitLogMetrics Test-CasesCommitLogMetrics Test-Cases

 

1.  For below metrics, test-case are added in +*CommitLogTest.java*+ . In 
test-cases, mutations are added, which internally update metrics. 
 * *completedTasks*
 * *totalCommitLogSize*
 * *waitingOnCommit*

 

2. *pendingTasks* - In +*AbstractCommitLogService.java*+ , added 
testPendingTasks test-case,  since pendingTasks metric are incremented and 
decremented in single method of  *AbstractCommitLogService::maybeWaitForSync* .

So introduced a dummy method incrementPendingTaks in  
*FakeCommitLogService-class,* to manually update pendingTasks metric.

 

3. *waitingOnSegmentAllocation* - In +*CommitLogMetricsTest.java*+ test-case is 
added. In test *commitlog_segment_size_in_mb* is changed to *1mb*, and adding 
multiple  mutations so that waitingOnSegmentAllocation metric updated while 
creating new segments.

In normal case , waitingOnSegmentAllocation it will be zero, if during 
test-execution, waitingOnSegmentAllocation was not updated, then manually 
updating it.

  was:
CommitLogMetrics Test-CasesCommitLogMetrics Test-Cases

 

1.  For below metrics, test-case are added in +*CommitLogTest.java*+ . In 
test-cases, mutations are added, which internally update metrics. 
 * *completedTasks* 
 * *totalCommitLogSize* 
 * *waitingOnCommit*

 

2. *pendingTasks* - In +*AbstractCommitLogService.java*+ , added 
testPendingTasks test-case,  since pendingTasks metric are incremented and 
decremented in single method of  *AbstractCommitLogService::maybeWaitForSync* .

So introduced a dummy method incrementPendingTaks in  
*FakeCommitLogService-class,* to manually update pendingTasks metric.

 

3. *waitingOnSegmentAllocation* - In *CommitLogMetricsTest.java* test-case is 
added. In test *commitlog_segment_size_in_mb* is changed to *1mb*, and adding 
multiple  mutations so that waitingOnSegmentAllocation metric updated while 
creating new segments.

In normal case , waitingOnSegmentAllocation it will be zero, if during 
test-execution, waitingOnSegmentAllocation was not updated, then manually 
updating it.


> Add tests to cover CommitLog metrics
> 
>
> Key: CASSANDRA-16185
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16185
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/unit
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-Unit-Test-cases-for-CommitLogMetrics.patch
>
>
> The only metrics that seems to be covered by unit test for the CommitLog 
> metrics is {{oversizedMutations}}. We should add testing the other ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (CASSANDRA-16185) Add tests to cover CommitLog metrics

2020-11-13 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16185:

Test and Documentation Plan: 
CommitLogMetrics Test-CasesCommitLogMetrics Test-Cases

 

1.  For below metrics, test-case are added in +*CommitLogTest.java*+ . In 
test-cases, mutations are added, which internally update metrics. 
 * *completedTasks* 
 * *totalCommitLogSize* 
 * *waitingOnCommit*

 

2. *pendingTasks* - In +*AbstractCommitLogService.java*+ , added 
testPendingTasks test-case,  since pendingTasks metric are incremented and 
decremented in single method of  *AbstractCommitLogService::maybeWaitForSync* .

So introduced a dummy method incrementPendingTaks in  
*FakeCommitLogService-class,* to manually update pendingTasks metric.

 

3. *waitingOnSegmentAllocation* - In *CommitLogMetricsTest.java* test-case is 
added. In test *commitlog_segment_size_in_mb* is changed to *1mb*, and adding 
multiple  mutations so that waitingOnSegmentAllocation metric updated while 
creating new segments.

In normal case , waitingOnSegmentAllocation it will be zero, if during 
test-execution, waitingOnSegmentAllocation was not updated, then manually 
updating it.
 Status: Patch Available  (was: In Progress)

> Add tests to cover CommitLog metrics
> 
>
> Key: CASSANDRA-16185
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16185
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/unit
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-Unit-Test-cases-for-CommitLogMetrics.patch
>
>
> The only metrics that seems to be covered by unit test for the CommitLog 
> metrics is {{oversizedMutations}}. We should add testing the other ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (CASSANDRA-16185) Add tests to cover CommitLog metrics

2020-11-13 Thread Yasar Arafath Baigh (Jira)


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

Yasar Arafath Baigh commented on CASSANDRA-16185:
-

CommitLogMetrics Test-case patch is attached.

> Add tests to cover CommitLog metrics
> 
>
> Key: CASSANDRA-16185
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16185
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/unit
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-Unit-Test-cases-for-CommitLogMetrics.patch
>
>
> The only metrics that seems to be covered by unit test for the CommitLog 
> metrics is {{oversizedMutations}}. We should add testing the other ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (CASSANDRA-16185) Add tests to cover CommitLog metrics

2020-11-13 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh updated CASSANDRA-16185:

Attachment: 0001-Unit-Test-cases-for-CommitLogMetrics.patch

> Add tests to cover CommitLog metrics
> 
>
> Key: CASSANDRA-16185
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16185
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/unit
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: 0001-Unit-Test-cases-for-CommitLogMetrics.patch
>
>
> The only metrics that seems to be covered by unit test for the CommitLog 
> metrics is {{oversizedMutations}}. We should add testing the other ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Assigned] (CASSANDRA-16191) Add tests for Repair metrics

2020-11-11 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh reassigned CASSANDRA-16191:
---

Assignee: Yasar Arafath Baigh

> Add tests for Repair metrics
> 
>
> Key: CASSANDRA-16191
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16191
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/dtest/java
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
>
> We do not seems to have some tests for the {{RepairMetrics.previewFailures}} 
> counter.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Assigned] (CASSANDRA-16185) Add tests to cover CommitLog metrics

2020-10-21 Thread Yasar Arafath Baigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-16185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yasar Arafath Baigh reassigned CASSANDRA-16185:
---

Assignee: Yasar Arafath Baigh  (was: Uchenna)

> Add tests to cover CommitLog metrics
> 
>
> Key: CASSANDRA-16185
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16185
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Test/unit
>Reporter: Benjamin Lerer
>Assignee: Yasar Arafath Baigh
>Priority: Normal
> Fix For: 4.0-beta
>
>
> The only metrics that seems to be covered by unit test for the CommitLog 
> metrics is {{oversizedMutations}}. We should add testing the other ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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