|
74 | 74 | import org.opengrok.indexer.util.LazilyInstantiate;
|
75 | 75 | import org.opengrok.indexer.util.PathUtils;
|
76 | 76 | import org.opengrok.indexer.util.ResourceLock;
|
| 77 | +import org.opengrok.indexer.util.Statistics; |
77 | 78 | import org.opengrok.indexer.web.Prefix;
|
78 | 79 | import org.opengrok.indexer.web.Util;
|
79 | 80 | import org.opengrok.indexer.web.messages.Message;
|
@@ -1733,6 +1734,8 @@ public void applyConfig(Configuration config, boolean reindex, CommandTimeoutTyp
|
1733 | 1734 | for (ConfigurationChangedListener l : listeners) {
|
1734 | 1735 | l.onConfigurationChanged();
|
1735 | 1736 | }
|
| 1737 | + |
| 1738 | + LOGGER.log(Level.INFO, "Done applying configuration"); |
1736 | 1739 | }
|
1737 | 1740 |
|
1738 | 1741 | public void setIndexTimestamp() throws IOException {
|
@@ -1762,9 +1765,12 @@ public void maybeRefreshIndexSearchers(Iterable<String> projects) {
|
1762 | 1765 | }
|
1763 | 1766 |
|
1764 | 1767 | public void maybeRefreshIndexSearchers() {
|
| 1768 | + LOGGER.log(Level.INFO, "refreshing searcher managers"); |
| 1769 | + Statistics stat = new Statistics(); |
1765 | 1770 | for (Map.Entry<String, SearcherManager> entry : searcherManagerMap.entrySet()) {
|
1766 | 1771 | maybeRefreshSearcherManager(entry.getValue());
|
1767 | 1772 | }
|
| 1773 | + stat.report(LOGGER, "Done refreshing searcher managers"); |
1768 | 1774 | }
|
1769 | 1775 |
|
1770 | 1776 | /**
|
@@ -1809,12 +1815,11 @@ public void refreshSearcherManagerMap() {
|
1809 | 1815 | // so that it cannot produce new IndexSearcher objects.
|
1810 | 1816 | if (!getProjectNames().contains(entry.getKey())) {
|
1811 | 1817 | try {
|
1812 |
| - LOGGER.log(Level.FINE, |
1813 |
| - "closing SearcherManager for project" + entry.getKey()); |
| 1818 | + LOGGER.log(Level.FINE, "closing SearcherManager for project {0}", entry.getKey()); |
1814 | 1819 | entry.getValue().close();
|
1815 | 1820 | } catch (IOException ex) {
|
1816 | 1821 | LOGGER.log(Level.SEVERE,
|
1817 |
| - "cannot close SearcherManager for project" + entry.getKey(), ex); |
| 1822 | + String.format("cannot close SearcherManager for project %s", entry.getKey()), ex); |
1818 | 1823 | }
|
1819 | 1824 | toRemove.add(entry.getKey());
|
1820 | 1825 | }
|
|
0 commit comments