Skip to content

Fix two issues with Coordinator -> Overlord communication.#7412

Merged
fjy merged 2 commits intoapache:masterfrom
gianm:fix-isc-stuff
Apr 4, 2019
Merged

Fix two issues with Coordinator -> Overlord communication.#7412
fjy merged 2 commits intoapache:masterfrom
gianm:fix-isc-stuff

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Apr 4, 2019

  1. ClientCompactQuery needs to recognize the potential for 'intervals'
    to be set instead of 'segments'. The lack of this led to a
    NullPointerException on DruidCoordinatorSegmentCompactor.java:102.

  2. In two locations (DruidCoordinatorSegmentCompactor,
    DruidCoordinatorCleanupPendingSegments) tasks were being retrieved
    using waiting/pending/running tasks in the wrong order: by checking
    'running' first and then 'pending', tasks could be missed if they
    moved from 'pending' to 'running' in between the two calls. Replaced
    these methods with calls to 'getActiveTasks', a new method that does
    the calls in the right order.

1) ClientCompactQuery needs to recognize the potential for 'intervals'
to be set instead of 'segments'. The lack of this led to a
NullPointerException on DruidCoordinatorSegmentCompactor.java:102.

2) In two locations (DruidCoordinatorSegmentCompactor,
DruidCoordinatorCleanupPendingSegments) tasks were being retrieved
using waiting/pending/running tasks in the wrong order: by checking
'running' first and then 'pending', tasks could be missed if they
moved from 'pending' to 'running' in between the two calls. Replaced
these methods with calls to 'getActiveTasks', a new method that does
the calls in the right order.
@gianm gianm added the Bug label Apr 4, 2019
@gianm gianm added this to the 0.15.0 milestone Apr 4, 2019
@fjy fjy merged commit 78745fe into apache:master Apr 4, 2019
@gianm gianm deleted the fix-isc-stuff branch April 4, 2019 18:20
gianm added a commit to implydata/druid-public that referenced this pull request Apr 8, 2019
* Fix two issues with Coordinator -> Overlord communication.

1) ClientCompactQuery needs to recognize the potential for 'intervals'
to be set instead of 'segments'. The lack of this led to a
NullPointerException on DruidCoordinatorSegmentCompactor.java:102.

2) In two locations (DruidCoordinatorSegmentCompactor,
DruidCoordinatorCleanupPendingSegments) tasks were being retrieved
using waiting/pending/running tasks in the wrong order: by checking
'running' first and then 'pending', tasks could be missed if they
moved from 'pending' to 'running' in between the two calls. Replaced
these methods with calls to 'getActiveTasks', a new method that does
the calls in the right order.

* Remove unused import.
gianm added a commit to implydata/druid-public that referenced this pull request Apr 14, 2019
* Fix two issues with Coordinator -> Overlord communication.

1) ClientCompactQuery needs to recognize the potential for 'intervals'
to be set instead of 'segments'. The lack of this led to a
NullPointerException on DruidCoordinatorSegmentCompactor.java:102.

2) In two locations (DruidCoordinatorSegmentCompactor,
DruidCoordinatorCleanupPendingSegments) tasks were being retrieved
using waiting/pending/running tasks in the wrong order: by checking
'running' first and then 'pending', tasks could be missed if they
moved from 'pending' to 'running' in between the two calls. Replaced
these methods with calls to 'getActiveTasks', a new method that does
the calls in the right order.

* Remove unused import.
clintropolis pushed a commit that referenced this pull request Apr 24, 2019
* Fix two issues with Coordinator -> Overlord communication.

1) ClientCompactQuery needs to recognize the potential for 'intervals'
to be set instead of 'segments'. The lack of this led to a
NullPointerException on DruidCoordinatorSegmentCompactor.java:102.

2) In two locations (DruidCoordinatorSegmentCompactor,
DruidCoordinatorCleanupPendingSegments) tasks were being retrieved
using waiting/pending/running tasks in the wrong order: by checking
'running' first and then 'pending', tasks could be missed if they
moved from 'pending' to 'running' in between the two calls. Replaced
these methods with calls to 'getActiveTasks', a new method that does
the calls in the right order.

* Remove unused import.
@clintropolis clintropolis modified the milestones: 0.15.0, 0.14.1 Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants