Commit 173f764
committed
Reduce number of indices created in ClusterSettingsIT
When the number indices created in this test was sufficiently high,
tests would frequently hit this failure at some point when creating a
file:
```
Caused by: java.nio.file.FileSystemException: /var/jenkins/workspace/gradle-check/search/server/build/testrun/internalClusterTest/temp/org.opensearch.cluster.settings.ClusterSettingsIT_129BF1D803EFDA59-001/tempDir-002/node_s0/nodes/0/_state/_a1_Asserting_0.doc: Too many open files
at org.apache.lucene.tests.mockfile.HandleLimitFS.onOpen(HandleLimitFS.java:67)
at org.apache.lucene.tests.mockfile.HandleTrackingFS.callOpenHook(HandleTrackingFS.java:82)
at org.apache.lucene.tests.mockfile.HandleTrackingFS.newOutputStream(HandleTrackingFS.java:163)
at java.****/java.nio.file.Files.newOutputStream(Files.java:215)
```
This commit changes the random range from [10, 50] to be a fixed value
of 3. This still gets the same coverage without unnecessarily increasing
test runtime and introducing flakiness around file handle limits.
Signed-off-by: Andrew Ross <andrross@amazon.com>1 parent 9c62834 commit 173f764
1 file changed
Lines changed: 1 addition & 2 deletions
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
574 | | - | |
| 573 | + | |
575 | 574 | | |
576 | 575 | | |
577 | 576 | | |
| |||
0 commit comments