Skip to content

Commit

Permalink
Removing unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
iit2009060 committed Sep 27, 2023
1 parent 4bc507b commit e18d6fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,10 @@ class RemoteIndexCacheTest {
}

private def createCorruptRemoteIndexCacheOffsetFile(): Unit = {
val pw = new PrintWriter((remoteOffsetIndexFile(new File(tpDir, RemoteIndexCache.DIR_NAME), rlsMetadata)))
// The size of the string is (ENTRY_SIZE + 1) bytes but it should be multiple of EntrySIZE which is equal to 8.
// OffsetIndex File Sanity Check fails
val pw = new PrintWriter((remoteOffsetIndexFile(new File(tpDir, RemoteIndexCache.DIR_NAME),rlsMetadata)))
pw.write("Hello, world")
// The size of the string written in the file is 12 bytes,
// but it should be multiple of Offset Index EntrySIZE which is equal to 8.
pw.close()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.github.benmanes.caffeine.cache.RemovalCause;
import org.apache.kafka.common.KafkaException;
import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.errors.CorruptRecordException;
import org.apache.kafka.common.utils.Time;
import org.apache.kafka.common.utils.Utils;
import org.apache.kafka.server.log.remote.storage.RemoteLogSegmentMetadata;
Expand Down

0 comments on commit e18d6fd

Please sign in to comment.