-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-27567 Introduce ChaosMonkey Action to print HDFS Cluster status #4959
HBASE-27567 Introduce ChaosMonkey Action to print HDFS Cluster status #4959
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
if (activeNamenode == null) { | ||
throw new Exception("No active Name node found in zookeeper under " + hadoopHAZkNode); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why an else here? Seems not necessary,,,
} | ||
// TODO: add more on NN, JNs, and ZK. | ||
// TODO: Print how long process has been up. | ||
LOG.info(sb.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getLogger().info?
} | ||
} | ||
|
||
if (activeNamenode == null) { | ||
throw new Exception("No active Name node found in zookeeper under " + hadoopHAZkNode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could just return instead of throwing.
8452ef8
to
f8bbc92
Compare
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Do you have any further concerns @Apache9 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering what if we run ITs against S3AFileSystem, but since in ServerAndDependenciesKillingMonkeyFactory, we have already add RestartRandomDataNodeAction which is also HDFS specific, the PR here does not introduce new problems.
We could run Chaos tests against a cluster configured with S3A storage, but in that case we would not run the HDFS chaos components. I'd like to have a declarative configuration-driven chaos definition, instead of using these hard-coded factories, but I don't think that's been implemented. |
No description provided.