mojira.dev

John Palmer

Assigned

No issues.

Reported

MC-53994 latest.log file does not write until opened or right-clicked Invalid

Comments

Snarf, you are wrong.  Trust me, I know what I'm talking about and can reproduce it. System.io.filesystemwatcher and Linux ported tools such as 'tail' report no changes until something else tries to read it.  There other bugs concerning the implementation of log caching in log4j, this is clearly another.

Logging is working again in 14w28a (Ubuntu Linux)

But, another issue I previously reported still exists on Windows. The latest.log file will not update until you 'touch' the file. You do not need to open it, but rather just selecting it in File Explorer will cause the logging engine to flush the log entries to the file. This is reproducible on any Windows server but was dismissed as a bug because the behavior was different within Linux.

Mark Loh, what type of system are you on? Can you see if your issue is the log flushing issue? To reproduce: Note the size of the latest.log file before starting the game. Make sure to select a different file or folder, then do some log generating events in the game (chat, etc). Then, just select the file in File Explorer. You will see the size update. (This is actually helpful when debugging log reader scripts, but a deal-breaker for production use.)

Same issue. The file latest.log does not update after starting with 14w27b snapshot jar.

Ubuntu Server 14.04 LTS
java version 1.8.0_05

I confirmed that 'tail' works. That is not a solution to this issue.

It is a bug. It is reproducible on multiple systems with different versions of MC server. Programs that do exact what tail do show no change in the contents of the file until the file is touched. Whatever you are using to write the log file is not working correctly.

Saying it works on one platform is not testing that the bug exists. Marking it resolved is not accurate.