You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "sarutak (via GitHub)" <gi...@apache.org> on 2026/03/06 17:06:24 UTC

[PR] [SPARK-55864][CORE][TESTS] Add more tests for SHS multiple log directories feature [spark]

sarutak opened a new pull request, #54660:
URL: https://github.com/apache/spark/pull/54660

   ### What changes were proposed in this pull request?
   This PR proposes to add more tests for SHS multiple log directories feature added in SPARK-55793 (#54575).
   New tests include:
   
   - **directory removed while SHS is running** — verifies that removing a log directory at runtime does not crash the scan and apps from remaining directories are still listed
   - **directory does not exist at startup but created later** — verifies that a directory that doesn't exist at startup is picked up on subsequent scans (monthly directory scenario)
   - **directory temporarily inaccessible then recovers** — verifies that apps reappear after a temporarily inaccessible directory is restored
   - **all directories inaccessible does not crash** — verifies graceful handling when all configured directories become unavailable
   - **config with empty entries between commas** — verifies that empty entries in `spark.history.fs.logDirectory` (e.g., `dir1,,dir2`) are handled correctly
   - **logDirectory.names count mismatch falls back to full paths** — verifies that when the number of names doesn't match the number of directories, display names fall back to full paths
   
   ### Why are the changes needed?
   For better test coverage.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Confirmed that all new tests passed.
   ```
   $ build/sbt 'testOnly org.apache.spark.deploy.history.RocksDBBackendFsHistoryProviderSuite'
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   Kiro CLI / Opus 4.6
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-55864][CORE][TESTS] Add more tests for SHS multiple log directories feature [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #54660: [SPARK-55864][CORE][TESTS] Add more tests for SHS multiple log directories feature
URL: https://github.com/apache/spark/pull/54660


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-55864][CORE][TESTS] Add more tests for SHS multiple log directories feature [spark]

Posted by "sarutak (via GitHub)" <gi...@apache.org>.
sarutak commented on PR #54660:
URL: https://github.com/apache/spark/pull/54660#issuecomment-4022153917

   Thank you @dongjoon-hyun !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org