sunxue299 opened a new pull request, #12254:
URL: https://github.com/apache/kafka/pull/12254
Version 3.2 runs on Windows, run kafka-server-start.bat Error will be
reported(I suggest that since it supports running on windows, this problem
should be solved):
[2022-06-06 09:28:34,124] ERROR Exiting Kafka due to fatal exception
(kafka.Kafka$)
java.io.UncheckedIOException: Error while writing the Quorum status from the
file .\tmp\kraft-combined-logs\__cluster_metadata-0\quorum-state
at
org.apache.kafka.raft.FileBasedStateStore.writeElectionStateToFile(FileBasedStateStore.java:155)
at
org.apache.kafka.raft.FileBasedStateStore.writeElectionState(FileBasedStateStore.java:128)
at
org.apache.kafka.raft.QuorumState.transitionTo(QuorumState.java:477)
at org.apache.kafka.raft.QuorumState.initialize(QuorumState.java:212)
at
org.apache.kafka.raft.KafkaRaftClient.initialize(KafkaRaftClient.java:364)
at kafka.raft.KafkaRaftManager.buildRaftClient(RaftManager.scala:203)
at kafka.raft.KafkaRaftManager.<init>(RaftManager.scala:125)
at kafka.server.KafkaRaftServer.<init>(KafkaRaftServer.scala:76)
at kafka.Kafka$.buildServer(Kafka.scala:79)
at kafka.Kafka$.main(Kafka.scala:87)
at kafka.Kafka.main(Kafka.scala)
Caused by: java.nio.file.FileSystemException:
.\tmp\kraft-combined-logs\__cluster_metadata-0\quorum-state.tmp ->
.\tmp\kraft-combined-logs\__cluster_metadata-0\quorum-state: This file is in
use by another program and cannot be accessed by the process
at
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387)
at
sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
at java.nio.file.Files.move(Files.java:1395)
at
org.apache.kafka.common.utils.Utils.atomicMoveWithFallback(Utils.java:935)
at
org.apache.kafka.common.utils.Utils.atomicMoveWithFallback(Utils.java:918)
at
org.apache.kafka.raft.FileBasedStateStore.writeElectionStateToFile(FileBasedStateStore.java:152)
... 10 more
Suppressed: java.nio.file.FileSystemException:
.\tmp\kraft-combined-logs\__cluster_metadata-0\quorum-state.tmp ->
.\tmp\kraft-combined-logs\__cluster_metadata-0\quorum-state: This file is in
use by another program and cannot be accessed by the process
at
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:301)
at
sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
at java.nio.file.Files.move(Files.java:1395)
at
org.apache.kafka.common.utils.Utils.atomicMoveWithFallback(Utils.java:932)
... 12 more
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]