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

UNDERTOW-1794 DefaultAccessLogReceiver violates Closeable contract #1041

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions core/src/main/java/io/undertow/UndertowLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -488,4 +488,20 @@ void nodeConfigCreated(URI connectionURI, String balancer, String domain, String
@LogMessage(level = WARN)
@Message(id = 5107, value = "Failed to set web socket timeout.")
void failedToSetWSTimeout(@Cause Exception e);

@LogMessage(level = DEBUG)
@Message(id = 5108, value = "Access Log Worker failed to transition gracefuly.")
void accessLogWorkerFailureOnTransition();

@LogMessage(level = DEBUG)
@Message(id = 5109, value = "Access Log Worker failed to reschedule.")
void accessLogWorkerFailureOnReschedule();

@LogMessage(level = DEBUG)
@Message(id = 5110, value = "Access Log Worker did not terminate cleanly.")
void accessLogWorkerNoTermination();

@LogMessage(level = DEBUG)
@Message(id = 5111, value = "Interruption in close()")
void closeInterrupted(@Cause InterruptedException ie);
}
2 changes: 2 additions & 0 deletions core/src/main/java/io/undertow/UndertowMessages.java
Original file line number Diff line number Diff line change
Expand Up @@ -650,4 +650,6 @@ public interface UndertowMessages {
@Message(id = 209, value = "Protocol string was too large for the buffer. Either provide a smaller message or a bigger buffer. Protocol: %s")
IllegalStateException protocolTooLargeForBuffer(String protocolString);

@Message(id = 210, value = "Failed to schedule access message. Access logger is closing.")
IllegalStateException failedToLogAccessOnClose();
}
Loading
Loading