Skip to content

Commit

Permalink
Replace Deflector with IndexSetRegistry (#3073)
Browse files Browse the repository at this point in the history
* Replace Deflector with IndexSetRegistry

* Simplify signature of IndexHelper#getOldestIndices()

* Reload StreamRouterEngine on creation/deletion of index set

* Rename MongoIndexSet#calculateRange() to setIndexReadOnlyAndCalculateRange()

* Add unknown index range for new indices

* Improve logging messages during deflector cycling

* Properly throw exception if index creation failed
  • Loading branch information
joschi authored and bernd committed Nov 16, 2016
1 parent ad3a646 commit b8dc025
Show file tree
Hide file tree
Showing 23 changed files with 1,206 additions and 1,039 deletions.
Expand Up @@ -27,6 +27,7 @@
import org.graylog2.periodical.ClusterIdGeneratorPeriodical;
import org.graylog2.periodical.ConfigurationManagementPeriodical;
import org.graylog2.periodical.ContentPackLoaderPeriodical;
import org.graylog2.periodical.DefaultIndexSetMigrationPeriodical;
import org.graylog2.periodical.DefaultStreamMigrationPeriodical;
import org.graylog2.periodical.EmailAlarmCallbackMigrationPeriodical;
import org.graylog2.periodical.GarbageCollectionWarningThread;
Expand Down Expand Up @@ -69,6 +70,7 @@ protected void configure() {
periodicalBinder.addBinding().to(LdapGroupMappingMigration.class);
periodicalBinder.addBinding().to(IndexFailuresPeriodical.class);
periodicalBinder.addBinding().to(DefaultStreamMigrationPeriodical.class);
periodicalBinder.addBinding().to(DefaultIndexSetMigrationPeriodical.class);
periodicalBinder.addBinding().to(EmailAlarmCallbackMigrationPeriodical.class);
}
}
353 changes: 0 additions & 353 deletions graylog2-server/src/main/java/org/graylog2/indexer/Deflector.java

This file was deleted.

0 comments on commit b8dc025

Please sign in to comment.