[
https://issues.apache.org/jira/browse/NIFI-3538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16358823#comment-16358823
]
ASF GitHub Bot commented on NIFI-3538:
--------------------------------------
Github user MikeThomsen commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2294#discussion_r167319088
--- Diff:
nifi-nar-bundles/nifi-hbase-bundle/nifi-hbase-processors/src/test/java/org/apache/nifi/hbase/MockHBaseClientService.java
---
@@ -71,6 +73,43 @@ public void delete(String tableName, byte[] rowId)
throws IOException {
throw new UnsupportedOperationException();
}
+ @Override
+ public void delete(String tableName, List<byte[]> rowIds) throws
IOException {
+ if (throwException) {
+ throw new RuntimeException("Simulated connectivity error");
+ }
+
+ Random random = new Random();
+ int location = 0;
+ if (rowIds.size() > 1) {
+ while (location == 0) {
+ location = random.nextInt(rowIds.size());
--- End diff --
Done
> Add DeleteHBase processor(s)
> ----------------------------
>
> Key: NIFI-3538
> URL: https://issues.apache.org/jira/browse/NIFI-3538
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Extensions
> Reporter: Matt Burgess
> Assignee: Mike Thomsen
> Priority: Major
>
> NiFi currently has processors for storing and retrieving cells/rows in HBase,
> but there is no mechanism for deleting records and/or tables.
> I'm not sure if a single DeleteHBase processor could accomplish both, that
> can be discussed under this Jira (and can be split out if necessary).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)