caiconghui has posted comments on this change.

Change subject: feat: add the wrapper for the Iterator by using 
InterruptibleIterator
......................................................................


Patch Set 2:

@Dan Burkert I cannot find the appropriate api for canceling task or killing 
task, to  simulate killing job for webui such as
test("kill task") {
    insertRows(100)
    val rdd = kuduContext.kuduRDD(sc, tableName, List("key"))
    try {
      rdd.foreachPartition(iterator =>
        while (iterator.hasNext) {
          //ToDo
          // task kill api
          iterator.next()
        }
      )
    } catch {
      case _: TaskKilledException => // good
      case NonFatal(_) =>
        fail("kill job should throw TaskKilledOperationException")
    }
  }

-- 
To view, visit http://gerrit.cloudera.org:8080/7753
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I0b4284f2c0a40cd7ba8cf2b76e0403592552c814
Gerrit-PatchSet: 2
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: caiconghui <caicong...@xiaomi.com>
Gerrit-Reviewer: Dan Burkert <danburk...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <t...@apache.org>
Gerrit-Reviewer: caiconghui <caicong...@xiaomi.com>
Gerrit-HasComments: No

Reply via email to