Hi Gary, Setting locale to US didn't help. The tests failed with same error.
Thanks, Atul ________________________________ From: Atul Pendse <apen...@tintri.com.INVALID> Sent: Wednesday, March 2, 2022 5:55 PM To: Apache Logging Developers List <dev@logging.apache.org> Subject: Re: MacOS: Unit tests failing on release-2.x branch This has been failing consistently. Thanks for the suggestion. I will try and get back with results. ________________________________ From: Gary Gregory <garydgreg...@gmail.com> Sent: Wednesday, March 2, 2022 5:54 PM To: Apache Logging Developers List <dev@logging.apache.org> Subject: Re: MacOS: Unit tests failing on release-2.x branch Hi Atul, Is this random or consistently repeatable? I wonder if this could be a locale issue. Could you try building with the default locale set to US, something like this: -Duser.language=en -Duser.region=US Gary On Wed, Mar 2, 2022, 03:30 Atul Pendse <apen...@tintri.com.invalid> wrote: > Hi, > > > > I have checked out latest code from log4j release-2.x branch. > > While trying to run ‘mvn clean install’, few unit tests in log4j-core are > failing with below error > > > > [INFO] Results: > > [INFO] > > [ERROR] Failures: > > [ERROR] SocketAppenderTest.testUdpAppender:211 No event retrieved > > [ERROR] > SyslogAppenderCustomLayoutTest>SyslogAppenderTest.testUDPAppender:79->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:72->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:110 > The number of received messages should be equal with the number of sent > messages expected:<1> but was:<0> > > [ERROR] > SyslogAppenderCustomLayoutTest>SyslogAppenderTest.testUDPStructuredAppender:88->SyslogAppenderTestBase.sendAndCheckStructuredMessage:91->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:110 > The number of received messages should be equal with the number of sent > messages expected:<1> but was:<0> > > [ERROR] > SyslogAppenderTest.testUDPAppender:79->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:72->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:110 > The number of received messages should be equal with the number of sent > messages expected:<1> but was:<0> > > [ERROR] > SyslogAppenderTest.testUDPStructuredAppender:88->SyslogAppenderTestBase.sendAndCheckStructuredMessage:91->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:110 > The number of received messages should be equal with the number of sent > messages expected:<1> but was:<0> > > [ERROR] > TlsSyslogAppenderTest>SyslogAppenderTest.testUDPAppender:79->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:72->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:110 > The number of received messages should be equal with the number of sent > messages expected:<1> but was:<0> > > [ERROR] > TlsSyslogAppenderTest>SyslogAppenderTest.testUDPStructuredAppender:88->SyslogAppenderTestBase.sendAndCheckStructuredMessage:91->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:110 > The number of received messages should be equal with the number of sent > messages expected:<1> but was:<0> > > [ERROR] > HtmlLayoutTest.testLayoutWithDatePatternFixedFormat:242->testLayoutWithDatePatternFixedFormat:273 > Incorrect date=<td>2012-11-02T14:34:02,123+05</td>, > format=ISO8601_OFFSET_DATE_TIME_HH, timezone=null ==> expected: > <<td>2012-11-02T14:34:02,123+0530</td>> but was: > <<td>2012-11-02T14:34:02,123+05</td>> > > [INFO] > > [ERROR] Tests run: 2352, Failures: 8, Errors: 0, Skipped: 14 > > > > > > Attached is complete build log. > > > > My build env is: > > > > atulpendse@Atuls-MacBook-Pro logging-log4j2 % mvn -v > > *Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)* > > Maven home: /Users/atulpendse/tools/apache-maven-3.8.4 > > Java version: 1.8.0_322, vendor: Amazon.com Inc., runtime: > /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre > > Default locale: en_GB, platform encoding: UTF-8 > > OS name: "mac os x", version: "12.0.1", arch: "x86_64", family: "mac" > > > > I have tried to run as sudo, thinking it might be issue with the UDP port > that unit test is using, but got the same error. > > The port 8199 (used by unit test) is not in use. > > > > atulpendse@Atuls-MacBook-Pro logging-log4j2 % sudo netstat -nlat | grep > 8199 > > atulpendse@Atuls-MacBook-Pro logging-log4j2 % > > > > Exactly same code builds without any issue on my CentOS 7 machine. > > > > Has anyone come across such an issue, or know how to work around it? > > Thanks for help. > > > > Thanks, > > Atul >