Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of truncated log files #47

Open
jesse-gallagher opened this issue Jun 10, 2020 · 0 comments
Open

Improve handling of truncated log files #47

jesse-gallagher opened this issue Jun 10, 2020 · 0 comments
Labels
bug Something isn't working domino

Comments

@jesse-gallagher
Copy link
Member

If, for example, a server is stopped and started externally to Domino, it can lead to an exception like this:

java.io.IOException: mark/reset not supported
 at java.io.InputStream.reset(InputStream.java:348)
 at org.openntf.openliberty.domino.runtime.OpenLibertyRuntime.lambda$watchLog$0(OpenLibertyRuntime.java:444)
 at org.openntf.openliberty.domino.runtime.OpenLibertyRuntime$$Lambda$18/0000000000000000.run(Unknown Source)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at lotus.domino.NotesThread.run(Unknown Source)

It would probably make more sense in this case to instead close and re-open the input stream explicitly.

@jesse-gallagher jesse-gallagher added bug Something isn't working domino labels Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working domino
Projects
None yet
Development

No branches or pull requests

1 participant