From 78a837f00a41c85bfc5516edbdce793139d261e6 Mon Sep 17 00:00:00 2001 From: Jonathan Hsieh Date: Wed, 13 Feb 2013 19:02:44 +0000 Subject: [PATCH] HBASE-7627 UnsupportedOperationException in CatalogJanitor thread git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/hbase-7290@1445857 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/hadoop/hbase/catalog/MetaEditor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/catalog/MetaEditor.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/catalog/MetaEditor.java index 76a58cffa56..5400c7ae3b3 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/catalog/MetaEditor.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/catalog/MetaEditor.java @@ -143,13 +143,15 @@ public class MetaEditor { */ static void deleteFromMetaTable(final CatalogTracker ct, final Delete d) throws IOException { - deleteFromMetaTable(ct, Arrays.asList(d)); + List dels = new ArrayList(1); + dels.add(d); + deleteFromMetaTable(ct, dels); } /** * Delete the passed deletes from the .META. table. * @param ct CatalogTracker on whose back we will ride the edit. - * @param deletes Deletes to add to .META. + * @param deletes Deletes to add to .META. This list should support #remove. * @throws IOException */ static void deleteFromMetaTable(final CatalogTracker ct, final List deletes)