[jira] [Updated] (HBASE-5281) Should a failure in creating an unassigned node abort the master?

2012-01-31 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5281:
---

Resolution: Not A Problem
Status: Resolved  (was: Patch Available)

Thank you for the analysis, stack and Jimmy! Marking as closed for now.

 Should a failure in creating an unassigned node abort the master?
 -

 Key: HBASE-5281
 URL: https://issues.apache.org/jira/browse/HBASE-5281
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.90.5
Reporter: Harsh J
Assignee: Harsh J
 Fix For: 0.94.0, 0.92.1

 Attachments: HBASE-5281.patch


 In {{AssignmentManager}}'s {{CreateUnassignedAsyncCallback}}, we have the 
 following condition:
 {code}
 if (rc != 0) {
 // Thisis resultcode.  If non-zero, need to resubmit.
 LOG.warn(rc != 0 for  + path +  -- retryable connectionloss --  +
   FIX see http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A2;);
 this.zkw.abort(Connectionloss writing unassigned at  + path +
   , rc= + rc, null);
 return;
 }
 {code}
 While a similar structure inside {{ExistsUnassignedAsyncCallback}} (which the 
 above is linked to), does not have such a force abort.
 Do we really require the abort statement here, or can we make do without?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-5281) Should a failure in creating an unassigned node abort the master?

2012-01-30 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5281:
---

Attachment: HBASE-5281.patch

Patch that removes the abort statement, like the other callback has.

 Should a failure in creating an unassigned node abort the master?
 -

 Key: HBASE-5281
 URL: https://issues.apache.org/jira/browse/HBASE-5281
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.90.5
Reporter: Harsh J
 Fix For: 0.94.0, 0.92.1

 Attachments: HBASE-5281.patch


 In {{AssignmentManager}}'s {{CreateUnassignedAsyncCallback}}, we have the 
 following condition:
 {code}
 if (rc != 0) {
 // Thisis resultcode.  If non-zero, need to resubmit.
 LOG.warn(rc != 0 for  + path +  -- retryable connectionloss --  +
   FIX see http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A2;);
 this.zkw.abort(Connectionloss writing unassigned at  + path +
   , rc= + rc, null);
 return;
 }
 {code}
 While a similar structure inside {{ExistsUnassignedAsyncCallback}} (which the 
 above is linked to), does not have such a force abort.
 Do we really require the abort statement here, or can we make do without?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-5281) Should a failure in creating an unassigned node abort the master?

2012-01-30 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5281:
---

Status: Patch Available  (was: Open)

Patch should apply both to 0.92 and trunk branches.

 Should a failure in creating an unassigned node abort the master?
 -

 Key: HBASE-5281
 URL: https://issues.apache.org/jira/browse/HBASE-5281
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.90.5
Reporter: Harsh J
 Fix For: 0.94.0, 0.92.1

 Attachments: HBASE-5281.patch


 In {{AssignmentManager}}'s {{CreateUnassignedAsyncCallback}}, we have the 
 following condition:
 {code}
 if (rc != 0) {
 // Thisis resultcode.  If non-zero, need to resubmit.
 LOG.warn(rc != 0 for  + path +  -- retryable connectionloss --  +
   FIX see http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A2;);
 this.zkw.abort(Connectionloss writing unassigned at  + path +
   , rc= + rc, null);
 return;
 }
 {code}
 While a similar structure inside {{ExistsUnassignedAsyncCallback}} (which the 
 above is linked to), does not have such a force abort.
 Do we really require the abort statement here, or can we make do without?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-5143) Fix config typo in pluggable load balancer factory

2012-01-13 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5143:
---

Fix Version/s: (was: 0.92.0)
   0.92.1

Please ensure this goes into 0.92.1, if its alright.

 Fix config typo in pluggable load balancer factory
 --

 Key: HBASE-5143
 URL: https://issues.apache.org/jira/browse/HBASE-5143
 Project: HBase
  Issue Type: Sub-task
  Components: master
Reporter: Harsh J
Priority: Blocker
 Fix For: 0.94.0, 0.92.1

 Attachments: HBASE-5143.patch


 HBASE-4240 made LoadBalancer pluggable.
 Configuration it loads seems to be wrongly named and carries a typo: 
 hbase.maser.loadBalancer.class
 Could rather be hbase.master.loadbalancer.class
 Luckily 0.92 is not out yet and we should fix it asap, before folks start 
 using it. Attaching patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-5167) We shouldn't be injecting 'Killing [daemon]' into logs, when we aren't doing that.

2012-01-10 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5167:
---

Fix Version/s: 0.94.0
   Status: Patch Available  (was: Open)

 We shouldn't be injecting 'Killing [daemon]' into logs, when we aren't doing 
 that.
 --

 Key: HBASE-5167
 URL: https://issues.apache.org/jira/browse/HBASE-5167
 Project: HBase
  Issue Type: Improvement
  Components: scripts
Affects Versions: 0.92.0
Reporter: Harsh J
Priority: Trivial
 Fix For: 0.94.0

 Attachments: HBASE-5167.patch


 HBASE-4209 changed the behavior of the scripts such that we do not kill the 
 daemons away anymore. We should have also changed the message shown in the 
 logs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-5167) We shouldn't be injecting 'Killing [daemon]' into logs, when we aren't doing that.

2012-01-10 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5167:
---

Attachment: HBASE-5167.patch

Lets make it {{s/Killing/Terminating/}}

 We shouldn't be injecting 'Killing [daemon]' into logs, when we aren't doing 
 that.
 --

 Key: HBASE-5167
 URL: https://issues.apache.org/jira/browse/HBASE-5167
 Project: HBase
  Issue Type: Improvement
  Components: scripts
Affects Versions: 0.92.0
Reporter: Harsh J
Priority: Trivial
 Fix For: 0.94.0

 Attachments: HBASE-5167.patch


 HBASE-4209 changed the behavior of the scripts such that we do not kill the 
 daemons away anymore. We should have also changed the message shown in the 
 logs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-5143) Fix config typo in pluggable load balancer factory

2012-01-08 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5143:
---

Priority: Blocker  (was: Critical)

 Fix config typo in pluggable load balancer factory
 --

 Key: HBASE-5143
 URL: https://issues.apache.org/jira/browse/HBASE-5143
 Project: HBase
  Issue Type: Sub-task
  Components: master
Reporter: Harsh J
Priority: Blocker
 Fix For: 0.92.0, 0.94.0

 Attachments: HBASE-5143.patch


 HBASE-4240 made LoadBalancer pluggable.
 Configuration it loads seems to be wrongly named and carries a typo: 
 hbase.maser.loadBalancer.class
 Could rather be hbase.master.loadbalancer.class
 Luckily 0.92 is not out yet and we should fix it asap, before folks start 
 using it. Attaching patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-5143) Fix config typo in pluggable load balancer factory

2012-01-07 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5143:
---

Attachment: HBASE-5143.patch

Patch fixes this typo and uses a better name (in sync with other names, no 
camel casing).

Please apply to 0.92 as well.

 Fix config typo in pluggable load balancer factory
 --

 Key: HBASE-5143
 URL: https://issues.apache.org/jira/browse/HBASE-5143
 Project: HBase
  Issue Type: Sub-task
  Components: master
Reporter: Harsh J
Priority: Critical
 Attachments: HBASE-5143.patch


 HBASE-4240 made LoadBalancer pluggable.
 Configuration it loads seems to be wrongly named and carries a typo: 
 hbase.maser.loadBalancer.class
 Could rather be hbase.master.loadbalancer.class
 Luckily 0.92 is not out yet and we should fix it asap, before folks start 
 using it. Attaching patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-5144) Add a test for LoadBalancerFactory

2012-01-07 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5144:
---

Fix Version/s: (was: 0.92.0)
   0.94.0

 Add a test for LoadBalancerFactory
 --

 Key: HBASE-5144
 URL: https://issues.apache.org/jira/browse/HBASE-5144
 Project: HBase
  Issue Type: Sub-task
  Components: master
Reporter: Harsh J
Priority: Minor
 Fix For: 0.94.0


 We should add a simple class loading test surrounding LoadBalancerFactory to 
 prevent regressions. Perhaps a simple test that loads and uses a custom load 
 balancer should suffice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-5143) Fix config typo in pluggable load balancer factory

2012-01-07 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-5143:
---


 Fix config typo in pluggable load balancer factory
 --

 Key: HBASE-5143
 URL: https://issues.apache.org/jira/browse/HBASE-5143
 Project: HBase
  Issue Type: Sub-task
  Components: master
Reporter: Harsh J
Priority: Critical
 Fix For: 0.92.0, 0.94.0

 Attachments: HBASE-5143.patch


 HBASE-4240 made LoadBalancer pluggable.
 Configuration it loads seems to be wrongly named and carries a typo: 
 hbase.maser.loadBalancer.class
 Could rather be hbase.master.loadbalancer.class
 Luckily 0.92 is not out yet and we should fix it asap, before folks start 
 using it. Attaching patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-3924) Improve Shell's CLI help

2011-12-27 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-3924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-3924:
---

Attachment: HBASE-3924.patch

Patch that addresses Lars' comments.

{code}
HBase Shell command-line options:
 script-file [script-options] Script to run, along with its arguments.

 --format=OPTIONFormatter for outputting results.
Valid options are: console, html.
(Default: console)

 -d | --debug   Set DEBUG log levels.
 -h | --helpThis help.
{code}

 Improve Shell's CLI help
 

 Key: HBASE-3924
 URL: https://issues.apache.org/jira/browse/HBASE-3924
 Project: HBase
  Issue Type: Improvement
  Components: shell
Affects Versions: 0.90.3
Reporter: Lars George
Assignee: Harsh J
Priority: Trivial
 Attachments: HBASE-3924.patch


 In the hirb.rb source we have
 {noformat}
 # so they don't go through to irb.  Output shell 'usage' if user types 
 '--help'
 cmdline_help = HERE # HERE document output as shell usage
 HBase Shell command-line options:
  formatFormatter for outputting results: console | html.
 Default: console
  -d | --debug  Set DEBUG log levels.
 HERE
 found = []
 format = 'console'
 script2run = nil
 log_level = org.apache.log4j.Level::ERROR
 for arg in ARGV
  if arg =~ /^--format=(.+)/i
format = $1
if format =~ /^html$/i
  raise NoMethodError.new(Not yet implemented)
elsif format =~ /^console$/i
  # This is default
else
  raise ArgumentError.new(Unsupported format  + arg)
end
found.push(arg)
  elsif arg == '-h' || arg == '--help'
puts cmdline_help
exit
  elsif arg == '-d' || arg == '--debug'
log_level = org.apache.log4j.Level::DEBUG
$fullBackTrace = true
puts Setting DEBUG log level...
  else
# Presume it a script. Save it off for running later below
# after we've set up some environment.
script2run = arg
found.push(arg)
# Presume that any other args are meant for the script.
break
  end
 end
 {noformat}
 We should enhance the help printed when using -h/--help to look like this?
 {noformat}
 cmdline_help = HERE # HERE document output as shell usage
 HBase Shell command-line options:
  --format={console|html}Formatter for outputting results.
 Default: console
  -d | --debug  Set DEBUG log levels.
  -h | --help   This help.
  script-filename [script-options]
 HERE
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-3924) Improve Shell's CLI help

2011-12-27 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-3924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-3924:
---

Fix Version/s: 0.94.0
   0.92.0
   Status: Patch Available  (was: Open)

Patch was against trunk, but should apply to both 0.92 and trunk. Would be good 
to have in a further 0.92 rev.

 Improve Shell's CLI help
 

 Key: HBASE-3924
 URL: https://issues.apache.org/jira/browse/HBASE-3924
 Project: HBase
  Issue Type: Improvement
  Components: shell
Affects Versions: 0.90.3
Reporter: Lars George
Assignee: Harsh J
Priority: Trivial
 Fix For: 0.92.0, 0.94.0

 Attachments: HBASE-3924.patch


 In the hirb.rb source we have
 {noformat}
 # so they don't go through to irb.  Output shell 'usage' if user types 
 '--help'
 cmdline_help = HERE # HERE document output as shell usage
 HBase Shell command-line options:
  formatFormatter for outputting results: console | html.
 Default: console
  -d | --debug  Set DEBUG log levels.
 HERE
 found = []
 format = 'console'
 script2run = nil
 log_level = org.apache.log4j.Level::ERROR
 for arg in ARGV
  if arg =~ /^--format=(.+)/i
format = $1
if format =~ /^html$/i
  raise NoMethodError.new(Not yet implemented)
elsif format =~ /^console$/i
  # This is default
else
  raise ArgumentError.new(Unsupported format  + arg)
end
found.push(arg)
  elsif arg == '-h' || arg == '--help'
puts cmdline_help
exit
  elsif arg == '-d' || arg == '--debug'
log_level = org.apache.log4j.Level::DEBUG
$fullBackTrace = true
puts Setting DEBUG log level...
  else
# Presume it a script. Save it off for running later below
# after we've set up some environment.
script2run = arg
found.push(arg)
# Presume that any other args are meant for the script.
break
  end
 end
 {noformat}
 We should enhance the help printed when using -h/--help to look like this?
 {noformat}
 cmdline_help = HERE # HERE document output as shell usage
 HBase Shell command-line options:
  --format={console|html}Formatter for outputting results.
 Default: console
  -d | --debug  Set DEBUG log levels.
  -h | --help   This help.
  script-filename [script-options]
 HERE
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-3274) Replace all config properties references in code with string constants

2011-12-27 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-3274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-3274:
---

Remaining Estimate: 168h
 Original Estimate: 168h

 Replace all config properties references in code with string constants
 --

 Key: HBASE-3274
 URL: https://issues.apache.org/jira/browse/HBASE-3274
 Project: HBase
  Issue Type: Improvement
Reporter: Lars George
Assignee: Harsh J
Priority: Trivial
   Original Estimate: 168h
  Remaining Estimate: 168h

 See HBASE-2721 for details. We have fixed the default values in HBASE-3272 
 but we should also follow Hadoop to remove all hardcoded strings that refer 
 to configuration properties and move them to HConstants. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-4708) Revert safemode related pieces of hbase-4510

2011-11-01 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-4708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-4708:
---

Attachment: HBASE-4708.patch

Hey Stack,

Attaching a simple revert. Could you please review?

 Revert safemode related pieces of hbase-4510
 

 Key: HBASE-4708
 URL: https://issues.apache.org/jira/browse/HBASE-4708
 Project: HBase
  Issue Type: Task
Reporter: stack
Assignee: Harsh J
Priority: Critical
 Fix For: 0.92.0

 Attachments: HBASE-4708.patch


 This thread in dev has us backing out the safemode related portions of 
 hbase-4510 commit: 
 http://search-hadoop.com/m/7WOjpVyG5F/Hmaster+can%2527t+start+for+the+latest+trunk+versionsubj=Hmaster+can+t+start+for+the+latest+trunk+version

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-4510) Check and workaround usage of internal HDFS APIs in HBase

2011-10-17 Thread Harsh J (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated HBASE-4510:
---

Attachment: HBASE-4510.patch

Attaching the +1'd patch.

 Check and workaround usage of internal HDFS APIs in HBase
 -

 Key: HBASE-4510
 URL: https://issues.apache.org/jira/browse/HBASE-4510
 Project: HBase
  Issue Type: Task
Affects Versions: 0.94.0
Reporter: Harsh J
Assignee: Harsh J
 Attachments: HBASE-4510.patch


 HBase isn't seemingly compiling anymore on 0.23 after the HDFS-1620 naming 
 refactorings were carried out.
 Two solutions:
 * We use new classnames. This breaks HBase's backward compatibility with 
 older Hadoop releases (is that a concern with future releases?)
 * HBase gets its own sets of constants as the upstream one is not marked for 
 public usage. This needs a little more maintenance on HBases' side.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira