Skip to content

Commit

Permalink
Removes obsolete comment.
Browse files Browse the repository at this point in the history
For temp files/folders call the deleteOnExit
  • Loading branch information
stheppi committed Apr 30, 2024
1 parent e0dcb60 commit ac30b97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ trait TempFileHelper {
val folder = new File(folderName)
try {
folder.mkdir()
folder.deleteOnExit()
val file = new File(folder, fileName)
file.deleteOnExit()
f(file)
} catch {
case e: Throwable => Left(e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ case class Writing(
) extends WriteState(commitState)
with LazyLogging {

//TODO: it's not clear why we are only keeping track of one schema (VALUE) and not key/and headers
def update(o: Offset, recordTimestamp: Long, schema: Option[Schema]): WriteState = {
logger.debug(
s"state update: Uncommitted offset update $uncommittedOffset => $o, earliest record timestamp $earliestRecordTimestamp => $recordTimestamp",
Expand Down

0 comments on commit ac30b97

Please sign in to comment.