You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Chu Tong (JIRA)" <ji...@apache.org> on 2013/02/12 19:05:13 UTC
[jira] [Created] (HDFS-4492) NameNodeConnector should prevent other
balancers to run while the one is running
Chu Tong created HDFS-4492:
------------------------------
Summary: NameNodeConnector should prevent other balancers to run while the one is running
Key: HDFS-4492
URL: https://issues.apache.org/jira/browse/HDFS-4492
Project: Hadoop HDFS
Issue Type: Bug
Components: balancer
Affects Versions: 2.0.2-alpha
Reporter: Chu Tong
Priority: Minor
private OutputStream checkAndMarkRunningBalancer() throws IOException {
try {
final DataOutputStream out = fs.create(BALANCER_ID_PATH);
out.writeBytes(InetAddress.getLocalHost().getHostName());
out.flush();
return out;
} catch(RemoteException e) {
...
In the code, fs.create should set overwrite bit to false so that other balancer can't run while one is running.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira