Skip to content

Commit c5e62b6

Browse files
authored
Merge pull request #23 from 4paradigm/bugfix/del-pmem-channel
fix: not delete id file after migration crash
2 parents 0e58501 + 5cb5208 commit c5e62b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/src/main/java/org/apache/kafka/common/record/pmem/MixChannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public MixChannel(Path file, int initFileSize, boolean preallocate, boolean muta
240240
if (PMemChannel.exists(file)) {
241241
log.error(file + " exist, but no info from metaStore.");
242242
PMemChannel ch = (PMemChannel) PMemChannel.open(file, initFileSize, preallocate, mutable);
243-
ch.delete();
243+
ch.delete(false);
244244
}
245245
break;
246246
default:

0 commit comments

Comments
 (0)