Skip to content
New issue

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

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

Already on GitHub? # to your account

UNDERTOW-1794 DefaultAccessLogReceiver violates Closeable contract #1593

Open
wants to merge 2 commits into
base: 2.2.x
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
18 changes: 17 additions & 1 deletion core/src/main/java/io/undertow/UndertowLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -474,4 +474,20 @@ void nodeConfigCreated(URI connectionURI, String balancer, String domain, String
@LogMessage(level = WARN)
@Message(id = 5106, value = "Content mismatch for '%s'. Expected length '%s', but was '%s'.")
void contentEntryMismatch(Object key, long indicatedSize, long written);
}

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

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

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

@LogMessage(level = DEBUG)
@Message(id = 5110, value = "Interruption in close()")
void closeInterrupted(@Cause InterruptedException ie);
}
4 changes: 4 additions & 0 deletions core/src/main/java/io/undertow/UndertowMessages.java
Original file line number Diff line number Diff line change
Expand Up @@ -643,4 +643,8 @@ public interface UndertowMessages {

@Message(id = 207, value = "Invalid SNI hostname '%s'")
IllegalArgumentException invalidSniHostname(String hostNameValue, @Cause Throwable t);

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

}
Loading
Loading