Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LIVY-977][SERVER][CONF] Livy can not be started if HDFS is still in safe mode #440

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

RajshekharMuchandi
Copy link
Contributor

Added safe mode check to implement safe mode

What changes were proposed in this pull request?

HDFS safe mode is checked when livy session is created. If safe mode is ON, then IllegalStateException is thrown after max retry attempts (configurable) with safe mode interval (configurable) checks are done. If safe mode is OFF, then livy will be able to create session.

https://issues.apache.org/jira/browse/LIVY-977

How was this patch tested?

Added unit test cases to validate code changes. Also, done manual testing in CDP cluster by creating livy sessions with HDFS safe mode check ON/OFF.

…safe mode

Added safe mode check to implement safe mode
@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2024

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (86fc823) 65.45% compared to head (10ee39f) 28.79%.

Files Patch % Lines
...he/livy/server/recovery/FileSystemStateStore.scala 53.33% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             master     #440       +/-   ##
=============================================
- Coverage     65.45%   28.79%   -36.66%     
+ Complexity      954      385      -569     
=============================================
  Files           103      103               
  Lines          6084     6102       +18     
  Branches        922      925        +3     
=============================================
- Hits           3982     1757     -2225     
- Misses         1546     3985     +2439     
+ Partials        556      360      -196     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gyogal
Copy link
Contributor

gyogal commented Jan 31, 2024

LGTM, thank you for your contribution @RajshekharMuchandi !

@gyogal gyogal merged commit f615f27 into apache:master Mar 12, 2024
3 checks passed
jimenefe pushed a commit to onedot-data/incubator-livy that referenced this pull request Oct 15, 2024
…safe mode (apache#440)

## What changes were proposed in this pull request?

HDFS safe mode is checked when livy session is created. If safe mode is ON, then IllegalStateException is thrown after max retry attempts (configurable) with safe mode interval (configurable) checks are done. If safe mode is OFF, then livy will be able to create session.

https://issues.apache.org/jira/browse/LIVY-977

## How was this patch tested?

Added unit test cases to validate code changes. Also, done manual testing in CDP cluster by creating livy sessions with HDFS safe mode check ON/OFF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants