Remove usage of CORBA exception in Accumulo connector
This is the wrong exception to use since the class is unrelated to CORBA.
It prevents running on Java 9, as the java.corba module is deprecated and
not available by default.
@@ -27,7 +27,6 @@ import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.RetryForever;
import org.apache.zookeeper.KeeperException;
-import javax.activity.InvalidActivityException;
import javax.inject.Inject;
import java.io.IOException;
@@ -208,7 +207,7 @@ public class ZooKeeperMetadataManager
String tablePath = getTablePath(tableName);
try {
if (curator.checkExists().forPath(tablePath) != null) {
- throw new InvalidActivityException(format("Metadata for table %s already exists", tableName));
+ throw new IOException(format("Metadata for table %s already exists", tableName));
}
}
catch (Exception e) {
@@ -239,7 +238,7 @@ public class ZooKeeperMetadataManager
String viewPath = getTablePath(tableName);
try {
if (curator.checkExists().forPath(viewPath) != null) {
- throw new InvalidActivityException(format("Metadata for view %s already exists", tableName));
+ throw new IOException(format("Metadata for view %s already exists", tableName));
}
}
catch (Exception e) {
