Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class AsyncOffsetSeqLog(
* to indicate some write error.
*/
def addAsync(batchId: Long, metadata: OffsetSeqBase): CompletableFuture[(Long, Boolean)] = {
require(metadata != null, "'null' metadata cannot written to a metadata log")
require(metadata != null, "'null' metadata cannot be written to a metadata log")

def issueAsyncWrite(batchId: Long): CompletableFuture[Long] = {
lastCommitIssuedTimestampMs.set(clock.getTimeMillis())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class HDFSMetadataLog[T <: AnyRef : ClassTag](
* metadata has already been stored, this method will return `false`.
*/
override def add(batchId: Long, metadata: T): Boolean = {
require(metadata != null, "'null' metadata cannot written to a metadata log")
require(metadata != null, "'null' metadata cannot be written to a metadata log")
val res = addNewBatchByStream(batchId) { output => serialize(metadata, output) }
if (metadataCacheEnabled && res) batchCache.put(batchId, metadata)
res
Expand Down