[JAVA-633] DBCollection.isCapped() method throws ClassCastException with mongodb-2.2.0 Created: 29/Aug/12 Updated: 10/Sep/12 Resolved: 07/Sep/12 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.7.3, 2.9.0 |
| Fix Version/s: | 2.9.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alexei Krainiouk | Assignee: | Bryan Reinero |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Any. |
||
| Attachments: |
|
| Backwards Compatibility: | Major Change |
| Description |
|
Apparently mongodb 2.2.0 changed the type of "capped" property returned by getStats() method for collections from integer to boolean. I have attached the test that demonstrates the problem. The test will happily run with mongodb versions 2.0.x and below but fail with 2.2.0. |
| Comments |
| Comment by Bryan Reinero [ 05/Sep/12 ] |
|
Commited to master |
| Comment by Jeffrey Yemin [ 29/Aug/12 ] |
|
Thanks for the report. We'll get this incorporated into the next release of the driver. |