You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2021/11/30 16:14:59 UTC

[GitHub] [knox] zeroflag commented on a change in pull request #521: KNOX-2694 - StoreAndForwardAppenderTest.testAppender is intermittenty failing with NPE

zeroflag commented on a change in pull request #521:
URL: https://github.com/apache/knox/pull/521#discussion_r759439463



##########
File path: gateway-util-common/src/test/resources/log4j2-test.xml
##########
@@ -21,15 +21,11 @@
             <PatternLayout pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n"/>
         </Console>
         <CollectAppender name="audit-forward" />
-        <JdbmStoreAndForwardAppender name="audit-store" file="target/audit" />

Review comment:
       JdbmStoreAndForwardAppender is not used anywhere within the project, I was thinking about removing it altogether, but I can't be sure if someone uses it externally or not.
   
   My guess that it was added to test some behaviour indirectly which later on was removed and only the test for JdbmStoreAndForwardAppender was left.
   
   If anyone knows what was/is the purpose of this class let me know and I can put back a separate unit test for it. 
   
   The only thing it does is storing the serialized log events in a binary file before forwarding it to an other Logger.
   
   That's why I think maybe it was used for testing something (by recording the events and playing them back or inspecting later on). But the same log events are also stored in the log file in textual format. So I don't really understand the purpose.




-- 
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: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org