> On May 20, 2016, 5:07 p.m., Kirk Lund wrote:
> > I'd like to see the diff for DistributedSystemLogFileJUnitTest.java. Looks
> > like it the diffs didn't upload properly.
>
> Bruce Schuchardt wrote:
> I had a failure in that test that I needed to investigate and fix, so I
> added a pointer to the log file it created in one of the assertions.
>
> ----
> a/geode-core/src/test/java/com/gemstone/gemfire/internal/logging/DistributedSystemLogFileJUnitTest.java
> +++
> b/geode-core/src/test/java/com/gemstone/gemfire/internal/logging/DistributedSystemLogFileJUnitTest.java
> @@ -127,7 +127,7 @@ public class DistributedSystemLogFileJUnitTest {
> // assert not empty
> FileInputStream fis = new FileInputStream(logFile);
> try {
> - assertTrue(fis.available() > 0);
> + assertTrue("log file is empty: " + logFile.getAbsoluteFile(),
> fis.available() > 0);
> } finally {
> fis.close();
> }
I would go ahead and commit that change. I like adding detailed string
descriptions to help diagnose a failing assertion.
- Kirk
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/47650/#review134163
-----------------------------------------------------------
On May 20, 2016, 6:48 p.m., Bruce Schuchardt wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47650/
> -----------------------------------------------------------
>
> (Updated May 20, 2016, 6:48 p.m.)
>
>
> Review request for geode, Darrel Schneider, Hitesh Khamesra, Jianxia Chen,
> and Udo Kohlmeyer.
>
>
> Bugs: GEODE-1415
> https://issues.apache.org/jira/browse/GEODE-1415
>
>
> Repository: geode
>
>
> Description
> -------
>
> Banners are normally logged during creation of an InternalDistributedSystem.
> In DUnit tests the output is filled with these banners and they all have the
> same information, so they are just clutter.
>
> This change-set disables banners in non-locator VMs launched by
> DUnitLauncher/ProcessManager. Precheckin testing shows that the amount of
> output for geode-core/distributedTests alone used to be over 1gb and is now
> less than 500mb.
>
> Probably the only change here that requires much scrutiny is in
> LogWriterFactory. Darrel, I couldn't figure out what the isLoner check is
> there for.
>
> There are a lot of diffs in Banner.java that you can ignore - I found that it
> was using tabs for indentation and changed these to spaces. There are no
> other changes to that class.
>
>
> Diffs
> -----
>
>
> geode-core/src/main/java/com/gemstone/gemfire/admin/internal/AdminDistributedSystemImpl.java
> 21a9ae3c14b697a94787f3236f441046ca639d55
>
> geode-core/src/main/java/com/gemstone/gemfire/distributed/internal/InternalLocator.java
> cf8d91ee9dc12224b8074d6c4dc8c738c00a3b0f
> geode-core/src/main/java/com/gemstone/gemfire/internal/Banner.java
> 4b01e54dff6f11b06f85165ca843e5a5f7b606ad
>
> geode-core/src/main/java/com/gemstone/gemfire/internal/cache/properties.html
> 1cd1b72aa8d2e312c44b435bc215885b2a312489
>
> geode-core/src/main/java/com/gemstone/gemfire/internal/logging/LogWriterFactory.java
> d9352c0c90873750402ef66ad07bec2f12935198
>
> geode-core/src/test/java/com/gemstone/gemfire/internal/logging/DistributedSystemLogFileJUnitTest.java
> 69df873674632a8908a022d8220dcb2f329de375
>
> geode-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
> 0c600ab57cad5e6443e340f1b6a160ae39b966cb
>
> geode-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/ProcessManager.java
> 5dbdfd6dee85e2de1d3c993e4ad096c5dcc1ed40
>
> Diff: https://reviews.apache.org/r/47650/diff/
>
>
> Testing
> -------
>
> precheckin had three unrelated failures that reproduce consistently without
> these changes.
>
>
> Thanks,
>
> Bruce Schuchardt
>
>