Skip to content

Refactoring of IncrementalIndex#2025

Closed
navis wants to merge 1 commit intoapache:masterfrom
navis:refactor-incremental-index
Closed

Refactoring of IncrementalIndex#2025
navis wants to merge 1 commit intoapache:masterfrom
navis:refactor-incremental-index

Conversation

@navis
Copy link
Copy Markdown
Contributor

@navis navis commented Dec 2, 2015

Current on-heap incremental indexer maps key to integer and maps the integer again to aggregators. Directly mapping key to aggregators would make things simple.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's just delete this whole file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can I? ok

@navis navis force-pushed the refactor-incremental-index branch from d0ebd73 to 87c4894 Compare December 10, 2015 08:31
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a log.error()?

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Dec 19, 2015

Retracting +1 for now pending further review

@fjy fjy closed this Dec 19, 2015
@fjy fjy reopened this Dec 19, 2015
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Dec 21, 2015

@fjy Ah, sorry. I've missed your comment.

@navis navis force-pushed the refactor-incremental-index branch from 87c4894 to 54984f9 Compare December 21, 2015 00:58
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Dec 22, 2015

Seemed one of the transient errors.

io.druid.curator.announcement.AnnouncerTest
testSessionKilled(io.druid.curator.announcement.AnnouncerTest)  Time elapsed: 2.333 sec  <<< FAILURE!
java.lang.AssertionError: expected null, but was:<11,11,1450659858789,1450659858789,0,0,0,95070444354404353,25,0,11
>
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.failNotNull(Assert.java:664)
    at org.junit.Assert.assertNull(Assert.java:646)
    at org.junit.Assert.assertNull(Assert.java:656)
    at io.druid.curator.announcement.AnnouncerTest.testSessionKilled(AnnouncerTest.java:176)

@navis navis closed this Dec 22, 2015
@navis navis reopened this Dec 22, 2015
@nishantmonu51
Copy link
Copy Markdown
Member

Retracting +1, since there are many changes since i last looked into it, need to review again

@navis navis force-pushed the refactor-incremental-index branch from 54984f9 to c8f36bd Compare January 7, 2016 00:13
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Jan 7, 2016

@nishantmonu51 Squashed!

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jan 7, 2016

@himanshug @xvrl do u guys want to take a look at this? I think it is ready. Will merge tomm if no more comments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think "transient" is necessary, this object is not going to be serialized

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use it as a kind of annotation which means this field is transient sometimes. I'll remove it.

@xvrl
Copy link
Copy Markdown
Member

xvrl commented Jan 7, 2016

@fjy I think this needs some more work, I have concerns in terms of additional GC pressure / performance. Some of the code that prevented race conditions we've observed in the past also seems to have been removed without explanation.

@navis navis force-pushed the refactor-incremental-index branch 4 times, most recently from 9baa2ce to 444ba2e Compare January 8, 2016 00:29
@navis navis closed this Jan 8, 2016
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Jan 8, 2016

@xvrl As you said it's broken, sorry. I've reverted the logic. Thanks.

@navis navis reopened this Jan 8, 2016
@navis navis closed this Jan 11, 2016
@navis navis reopened this Jan 11, 2016
@navis navis force-pushed the refactor-incremental-index branch 2 times, most recently from 44df596 to db3a98e Compare January 17, 2016 01:12
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Jan 17, 2016

rebased on trunk

@navis navis force-pushed the refactor-incremental-index branch 2 times, most recently from a9794b7 to d1aa2ca Compare January 26, 2016 01:24
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Jan 26, 2016

rebased

@navis navis force-pushed the refactor-incremental-index branch from d1aa2ca to 2abb13c Compare February 3, 2016 08:22
@fjy fjy added this to the 0.9.1 milestone Feb 5, 2016
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Feb 5, 2016

@xvrl can you provide more details of what you'd like to see in this PR? Be specific otherwise it is hard for @navis to know what to do

@himanshug
Copy link
Copy Markdown
Contributor

@navis this PR makes the assumption that IncrementalIndex only works with on heap Aggregators .. I'm implementing a OffheapIncrementalIndex in #2325 .

@navis navis force-pushed the refactor-incremental-index branch from 2abb13c to b4e51b2 Compare February 11, 2016 00:53
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Feb 11, 2016

@himanshug Rebased on master and revived some tests for off heap indexer.

@navis navis force-pushed the refactor-incremental-index branch 2 times, most recently from e0cc232 to 6937aa6 Compare February 13, 2016 02:56
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Feb 27, 2016

@cheddar can you help review this?

- rebased and revived test for offheap indexer
@navis navis force-pushed the refactor-incremental-index branch from 6937aa6 to 42a83ee Compare February 29, 2016 06:00
@fjy fjy modified the milestones: 0.9.2, 0.9.1 Mar 31, 2016
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jun 15, 2016

Removing milestone for now as I think this will require more thought

@fjy fjy removed this from the 0.9.2 milestone Jun 15, 2016
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Aug 29, 2016

@navis have you had a chance to review @himanshug's comment?

@navis
Copy link
Copy Markdown
Contributor Author

navis commented Sep 12, 2016

@fjy Yep, I've done it but this patch seemed not necessary (and hard to maintain). Let's close this.

@navis navis closed this Sep 12, 2016
seoeun25 pushed a commit to seoeun25/incubator-druid that referenced this pull request Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants