Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10186

region_mover.rb broken because ServerName constructor is changed to private

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.96.1
    • 0.98.0, 0.96.2, 0.99.0
    • scripts
    • None
    • x86_64 GNU/Linux

    • Reviewed

    Description

      After upgrading to 0.96.1 (from 0.96.0) i have tried rolling restart with ./rolling-restart.sh --graceful but region_mover.rb throws error:

      TypeError: no public constructors for Java::OrgApacheHadoopHbase::ServerName
           getRegions at ./region_mover.rb:257
        unloadRegions at ./region_mover.rb:318
               (root) at ./region_mover.rb:461
      

      After checking region_mover.rb i believe this line:

      return ProtobufUtil::getOnlineRegions(connection.getAdmin(ServerName.new(servername)));
      

      should be changed to

      return ProtobufUtil::getOnlineRegions(connection.getAdmin(ServerName.valueOf(servername)));
      

      After making this change region_mover.rb is working again. I will attach patch shortly.

      Attachments

        1. HBASE-10186.patch
          0.5 kB
          Samir Ahmic

        Issue Links

          Activity

            People

              asamir Samir Ahmic
              asamir Samir Ahmic
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: