Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2594

Improve TabletLocator.getInstance() to check tableId points to a table which exists

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 1.5.0
    • None
    • client
    • None

    Description

      If you pass an invalid tableId (or in my case tableName instead of tableId) TabletLocator won't complain.

      TabletLocator tabletLocator = TabletLocator.getInstance(instance, new Text(tableId));

      Next if you use the returned tabletLocator to locate a tablet it just returns an empty list, never complaining that the tableId was invalid:

      TabletLocator.TabletLocation tabletLocation = tabletLocator.locateTablet(rowKey.getText(), false, false, credentials.toThrift());

      Ideally TabletLocator.getInstance() should guard against invalid/non-existing tableIds.

      Attachments

        Activity

          People

            Unassigned Unassigned
            arae Ara Ebrahimi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: