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

Andres de la Peña commented on CASSANDRA-17576:
-----------------------------------------------

The problem happens when 
[{{GuardrailsOptions.validateDataDiskUsageMaxDiskSize}}|https://github.com/apache/cassandra/blob/b3842de5cf1fa1b81872effb4585fbc7e1873d59/src/java/org/apache/cassandra/config/GuardrailsOptions.java#L696-L714]
 validates the new {{data_disk_usage_max_disk_size}} property to see if there 
is enough physical size.

I have moved the calculation of the physical disk space to a separate method on 
{{DiskUsageMonitor}} and added a Byteman rule to the test intercepting calls to 
that method. That way the test should always operate with a fixed disk size, 
independently of the testing machine.
||PR||CircleCI||Jenkins||
|[trunk|https://github.com/apache/cassandra/pull/1585]|[j8|https://app.circleci.com/pipelines/github/adelapena/cassandra/1500/workflows/ce3a2a25-7099-4f25-9c8d-207998425193]
 
[j11|https://app.circleci.com/pipelines/github/adelapena/cassandra/1500/workflows/42d37dc4-389a-4277-81e7-0d9a5173350a]|[1628|https://ci-cassandra.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/1628/pipeline]|

> Make GuardrailDiskUsageTest deterministic
> -----------------------------------------
>
>                 Key: CASSANDRA-17576
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17576
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Feature/Guardrails
>            Reporter: Ekaterina Dimitrova
>            Assignee: Andres de la Peña
>            Priority: Normal
>             Fix For: 4.1
>
>
> Jenkins is low on space so we should mock the amount of available disk space 
> when testing the disk usage guardrails as otherwise the tests fail.
> The issue was not seen before commit as CircleCI doesn't have storage 
> problems.
> [https://ci-cassandra.apache.org/job/Cassandra-trunk/1095/]
> Cc [~adelapena] 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to