Skip to content
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

ACCUMULO-3389 Fix name in tsBatchDeleter #406

Merged
merged 1 commit into from Mar 20, 2018

Conversation

milleruntime
Copy link
Contributor

This was discovered by the failure in TabletStateChangeIteratorIT

  • Also improved error message in IteratorSetting to include bad name

* Also improved error message in IteratorSetting to include bad name
@milleruntime milleruntime self-assigned this Mar 20, 2018
@@ -89,7 +89,7 @@ public String getName() {
*/
public void setName(String name) {
checkArgument(name != null, "name is null");
checkArgument(!name.contains("."), "Iterator name cannot contain a dot/period");
checkArgument(!name.contains("."), "Iterator name cannot contain a dot/period: " + name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@@ -44,7 +44,7 @@ public TabletServerBatchDeleter(ClientContext context, String tableId, Authoriza
this.context = context;
this.tableId = tableId;
this.bwConfig = bwConfig;
super.addScanIterator(new IteratorSetting(Integer.MAX_VALUE, BatchDeleter.class.getName() + ".NOVALUE", SortedKeyIterator.class));
super.addScanIterator(new IteratorSetting(Integer.MAX_VALUE, BatchDeleter.class.getName().replaceAll("[.]", "_") + "_NOVALUE", SortedKeyIterator.class));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably don't need 2 underscores between class name and NOVALUE.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake. There's only 1.

@milleruntime milleruntime merged commit d0921d1 into apache:1.8 Mar 20, 2018
@milleruntime milleruntime deleted the IteratorSetting-fix branch March 20, 2018 20:32
@ctubbsii ctubbsii added v1.9.0 bug This issue has been verified to be a bug. labels Apr 18, 2018
@ctubbsii ctubbsii added this to Done in 1.9.1 Jun 14, 2019
@ctubbsii ctubbsii added this to Done in 1.9.0 Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue has been verified to be a bug.
Projects
No open projects
1.9.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants