[hibernate-dev] Strange issues with -snapshot dependencies

Sanne Grinovero sanne at hibernate.org
Thu Jul 9 18:42:00 EDT 2015


The build just failed once again; the log messages *are missing*, and
my Maven cache was empty.

On 9 July 2015 at 23:29, Sanne Grinovero <sanne at hibernate.org> wrote:
> I'm attempting to debug a subtle issue which I can only reproduce
> occasionally; to do so, I've been adding some improved logging to a
> module A, which is then used by our integration tests in module B
> deploying on WildFly via Arquillian.
>
> While polishing the log commits I've also made a change in this module
> A which might resolve the issue.
>
> I'm now running the integration tests B multiple times from command
> line, via Maven from within the source directory of B. I did of course
> "mvn clean install" the whole project first, which rebuilds module A
> and all of its dependencies.
>
> The really weird thing:
>  = rarely, the test fails, and there is no track of the logs I'm needing.
>  = sometimes, the test is successful and I have all logs as expected
> (but they are useless).
>  = rarely, the test is successful and these logs are missing.
>
> I've been running in circles since a couple of hours, but I *never*
> could get the combination of
>  (have the logs) && (test fails)
>
> The logger is set at DEBUG level for all of org.hibernate.search, and
> when I say the logs are missing I am referring to the new couple of
> log statements I just added exclusively: all other logs which
> org.hibernate.search normally produces are logged all the time.
>
> I'm starting to wonder if actually sometimes Maven runs my integration
> tests using a previous SNAPSHOT build, which would be missing both the
> logs and the fix, and in those cases it could either fail or not (as
> it wasn't always reproduced).
>
> Anyone else ever seen such an issue?
>
> I now blasted all my Search SNAPSHOT jars from the local repository
> and am running the tests in loop since 30 minutes and it's never
> failed.. but not comfortable with this.
>
> Also: I'm fighting what seems to be a timing issue, I wouldn't exclude
> that the additional logs actually prevent me to trigger the failure -
> but I have no explanation on why those logs sometimes are simply
> missing from the logfiles: they are certainly triggered.
>
> Thanks,
> Sanne


More information about the hibernate-dev mailing list