[
https://issues.apache.org/jira/browse/LOG4PHP-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13541357#comment-13541357
]
Ivan Habunek commented on LOG4PHP-203:
--------------------------------------
I have tests failing with MongoDB versions 1.8.2 and 2.0.8 on Win XP. Tried
testing with latest MongoDB 2.2.x, but they dropped support for XP.
{code}
There was 1 failure:
1) LoggerAppenderMongoDBTest::testCappedCollection
Failed asserting that 10 matches expected 2.
D:\Projects\apache\log4php\src\test\php\appenders\LoggerAppenderMongoDBTest.php:222
{code}
Not sure why this happens, on Ubuntu with MongoDB 2.0.4, the tests pass OK.
Also, if you run the tests multiple times, the actual number increases by 10
each time. After running the tests 5 times, the error is:
{code}
1) LoggerAppenderMongoDBTest::testCappedCollection
Failed asserting that 50 matches expected 2.
{code}
> Capped collections support for Mongo Appender
> ---------------------------------------------
>
> Key: LOG4PHP-203
> URL: https://issues.apache.org/jira/browse/LOG4PHP-203
> Project: Log4php
> Issue Type: Improvement
> Components: Code
> Affects Versions: 2.3.0
> Reporter: VladimĂr Gorej
> Labels: features
> Fix For: develop
>
> Attachments: capped_collections.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> Mongo database now support capped collection. Capped collections are
> fixed-size collections that support high-throughput operations that insert,
> retrieve, and delete documents based on insertion order. Capped collections
> work in a way similar to circular buffers: once a collection fills its
> allocated space, it makes room for new documents by overwriting the oldest
> documents in the collection.
> For more information see:
> http://docs.mongodb.org/manual/core/capped-collections/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira