Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

logback-ext-loggly Build Fails with Test Failures #20

Closed
MusikPolice opened this issue Feb 26, 2014 · 2 comments
Closed

logback-ext-loggly Build Fails with Test Failures #20

MusikPolice opened this issue Feb 26, 2014 · 2 comments

Comments

@MusikPolice
Copy link

I cloned the repository and tried to build with mvn install. The logback-ext-spring module builds as expected (after dealing with issues #18 and #19), but the logback-ext-loggly module has a test failure:

sendsOnlyWhenMaxBucketsFull(ch.qos.logback.ext.loggly.LogglyBatchAppenderTest): expected:<4> but was:<3>

I've not dug too deep into this yet, but will continue to update the ticket as more information becomes available during the course of my investigation.

@MusikPolice
Copy link
Author

Here's some console output from the failing test:

sun.misc.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Provider sun.tools.attach.BsdAttachProvider not found
16:53:04,997 |-INFO in ch.qos.logback.ext.loggly.LogglyBatchAppender[null] - Roll bucket - {sendDurationInMillis=0, sendSuccessCount=0, sendExceptionCount=0, sentBytes=0, discardedBucketsCount=0, currentLogEntriesBufferSizeInBytes=2050}
16:53:05,013 |-INFO in ch.qos.logback.ext.loggly.LogglyBatchAppender[null] - Roll bucket - {sendDurationInMillis=0, sendSuccessCount=0, sendExceptionCount=0, sentBytes=0, discardedBucketsCount=0, currentLogEntriesBufferSizeInBytes=3075}
16:53:05,015 |-INFO in ch.qos.logback.ext.loggly.LogglyBatchAppender[null] - Roll bucket - {sendDurationInMillis=0, sendSuccessCount=0, sendExceptionCount=0, sentBytes=0, discardedBucketsCount=0, currentLogEntriesBufferSizeInBytes=4100}
16:53:05,017 |-INFO in ch.qos.logback.ext.loggly.LogglyBatchAppender[null] - Roll bucket - {sendDurationInMillis=0, sendSuccessCount=0, sendExceptionCount=0, sentBytes=0, discardedBucketsCount=0, currentLogEntriesBufferSizeInBytes=5125}
requests 0/4
16:53:07,986 |-INFO in ch.qos.logback.ext.loggly.LogglyBatchAppender[null] - Process log entries - {sendDurationInMillis=0, sendSuccessCount=0, sendExceptionCount=0, sentBytes=0, discardedBucketsCount=0, currentLogEntriesBufferSizeInBytes=4100}
requests 1/4
requests 2/4
requests 3/4
16:53:08,061 |-INFO in ch.qos.logback.ext.loggly.LogglyBatchAppender[null] - Process log entries - {sendDurationInMillis=65, sendSuccessCount=4, sendExceptionCount=0, sentBytes=4100, discardedBucketsCount=0, currentLogEntriesBufferSizeInBytes=0}

Interestingly, the test passes if I drop a breakpoint on line 98 of LogglyBatchAppenderTest.java and step through the code. Seems like this might be a timing issue.

@tony19
Copy link
Contributor

tony19 commented Feb 27, 2014

I'm breaking out the tests into their own files and using mock objects. You shouldn't see these test failures anymore.

@tony19 tony19 closed this as completed Feb 27, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants