Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reopening issue #72, with variation of failing scenario still broken in 3.0.1 #93

Closed
cpotter1 opened this issue Aug 2, 2018 · 5 comments
Assignees
Labels
Milestone

Comments

@cpotter1
Copy link

cpotter1 commented Aug 2, 2018

//  @Ignore // still broken as of 3.0.1
  @Test
  public void orderByOnNullableColumn2() {
    NitriteCollection coll = db.getCollection("orderByOnNullableColumn2");
//    try {
//      coll.createIndex("startTime", IndexOptions.indexOptions(IndexType.NonUnique));
//    } catch (IndexingException e) {
//      // ignore
//    }

    coll.remove(Filters.ALL);

    Document doc = new Document().put("id", "test-2").put("group", "groupA");
    assertEquals(1, coll.insert(doc).getAffectedCount());

    doc = new Document().put("id", "test-1").put("group", "groupA");
    assertEquals(1, coll.insert(doc).getAffectedCount());

    Cursor cursor = coll.find(Filters.eq("group", "groupA"), FindOptions.sort("startTime", SortOrder.Descending));
    assertEquals(2, cursor.size());
  }
@anidotnet anidotnet self-assigned this Aug 2, 2018
@anidotnet anidotnet added the bug label Aug 2, 2018
@anidotnet anidotnet added this to the 3.1.0 milestone Aug 2, 2018
@anidotnet
Copy link
Contributor

The fix should be available in latest snapshot - 3.1.0-SNAPSHOT

@cpotter1
Copy link
Author

cpotter1 commented Aug 2, 2018

Please try to get this into a 3.0.2, as we cannot wait long, and snapshots will not work for us.

@anidotnet
Copy link
Contributor

OK

@anidotnet anidotnet modified the milestones: 3.1.0, 3.0.2 Aug 2, 2018
@anidotnet
Copy link
Contributor

Will you be able to test it using the latest snapshot? Meantime I'll create a release asap.

@anidotnet
Copy link
Contributor

3.0.2 is now available in maven central.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants