Github user tdas commented on a diff in the pull request:
    --- Diff: 
    @@ -437,4 +441,48 @@ object HDFSMetadataLog {
    +  /**
    +   * Verify if batchIds are continuous and between `startId` and `endId`.
    +   *
    +   * @param batchIds the sorted ids to verify.
    +   * @param startId the start id. If it's set, batchIds should start with 
this id.
    +   * @param endId the start id. If it's set, batchIds should end with this 
    +   */
    +  def verifyBatchIds(batchIds: Seq[Long], startId: Option[Long], endId: 
Option[Long]): Unit = {
    +    // Verify that we can get all batches between `startId` and `endId`.
    +    if (startId.isDefined || endId.isDefined) {
    +      if (batchIds.isEmpty) {
    +        throw new IllegalStateException(s"batch 
${startId.orElse(endId).get} doesn't exist")
    --- End diff --
    would be good to print the range that was asked for. otherwise its hard to 
see what was expected while debugging.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to