Skip to content

Replace non-public IterationInterruptedException in next/ package #3393

@SethSmucker

Description

@SethSmucker

Summary

Replace non-public org.apache.accumulo.core.iteratorsImpl.system.IterationInterruptedException with class name checks in the datawave.next package.

Non-Public Class

  • org.apache.accumulo.core.iteratorsImpl.system.IterationInterruptedException

Solution

Use class name check pattern (same as TabletClosedException in PR #3318):

  • Add isIterationInterruptedException(Throwable t) helper method
  • Replace instanceof checks with helper method calls
  • Change catch blocks to catch RuntimeException and check class name

Files Affected

  • warehouse/query-core/src/main/java/datawave/next/DocIdQueryIterator.java
  • warehouse/query-core/src/main/java/datawave/next/retrieval/DocumentIterator.java
  • warehouse/query-core/src/main/java/datawave/next/scanner/DocumentIdProducer.java
  • warehouse/query-core/src/main/java/datawave/next/scanner/DocumentRangeScan.java

Part of #2443

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions