refactor(search): drop dead SearchIndexer subsystem
After the ExecutionController removal (0f635576), SearchIndexer
subscribed to ExecutionUpdatedEvent but nothing publishes that event.
Every SearchIndexerStats metric returned always-zero, and the admin
/api/v1/admin/clickhouse/pipeline endpoint that surfaced those stats
carried no signal.
Backend removed:
- core: SearchIndexer, SearchIndexerStats, ExecutionUpdatedEvent
- app: IndexerPipelineResponse DTO, /pipeline endpoint on
ClickHouseAdminController (field + ctor param)
- StorageBeanConfig.searchIndexer bean
UI removed:
- IndexerPipeline type + useIndexerPipeline hook in
api/queries/admin/clickhouse.ts
- Indexer Pipeline card in ClickHouseAdminPage.tsx (plus ProgressBar
import and pipeline* CSS classes)
OpenAPI schema.d.ts + openapi.json regenerated (stale /pipeline path
and IndexerPipelineResponse schema removed).
SearchIndex interface + ClickHouseSearchIndex impl kept — those are
live and used by SearchService + ExchangeMatchEvaluator.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -38,16 +38,6 @@ export interface ClickHouseQuery {
|
||||
query: string;
|
||||
}
|
||||
|
||||
export interface IndexerPipeline {
|
||||
queueDepth: number;
|
||||
maxQueueSize: number;
|
||||
failedCount: number;
|
||||
indexedCount: number;
|
||||
debounceMs: number;
|
||||
indexingRate: number;
|
||||
lastIndexedAt: string | null;
|
||||
}
|
||||
|
||||
// ── Query Hooks ────────────────────────────────────────────────────────
|
||||
|
||||
export function useClickHouseStatus() {
|
||||
@@ -86,11 +76,3 @@ export function useClickHouseQueries() {
|
||||
});
|
||||
}
|
||||
|
||||
export function useIndexerPipeline() {
|
||||
const refetchInterval = useRefreshInterval(10_000);
|
||||
return useQuery({
|
||||
queryKey: ['admin', 'clickhouse', 'pipeline'],
|
||||
queryFn: () => adminFetch<IndexerPipeline>('/clickhouse/pipeline'),
|
||||
refetchInterval,
|
||||
});
|
||||
}
|
||||
|
||||
54
ui/src/api/schema.d.ts
vendored
54
ui/src/api/schema.d.ts
vendored
@@ -2044,23 +2044,6 @@ export interface paths {
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/admin/clickhouse/pipeline": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
/** Search indexer pipeline statistics */
|
||||
get: operations["getPipeline"];
|
||||
put?: never;
|
||||
post?: never;
|
||||
delete?: never;
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/admin/clickhouse/performance": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
@@ -3633,23 +3616,6 @@ export interface components {
|
||||
readRows?: number;
|
||||
query?: string;
|
||||
};
|
||||
/** @description Search indexer pipeline statistics */
|
||||
IndexerPipelineResponse: {
|
||||
/** Format: int32 */
|
||||
queueDepth?: number;
|
||||
/** Format: int32 */
|
||||
maxQueueSize?: number;
|
||||
/** Format: int64 */
|
||||
failedCount?: number;
|
||||
/** Format: int64 */
|
||||
indexedCount?: number;
|
||||
/** Format: int64 */
|
||||
debounceMs?: number;
|
||||
/** Format: double */
|
||||
indexingRate?: number;
|
||||
/** Format: date-time */
|
||||
lastIndexedAt?: string;
|
||||
};
|
||||
/** @description ClickHouse storage and performance metrics */
|
||||
ClickHousePerformanceResponse: {
|
||||
diskSize?: string;
|
||||
@@ -7942,26 +7908,6 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
getPipeline: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody?: never;
|
||||
responses: {
|
||||
/** @description OK */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"*/*": components["schemas"]["IndexerPipelineResponse"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
getPerformance: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
|
||||
@@ -5,30 +5,6 @@
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* pipelineCard — card styling via sectionStyles.section */
|
||||
.pipelineCard {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.pipelineTitle {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.pipelineMetrics {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.pipelineMetrics span {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.tableSection {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { StatCard, DataTable, ProgressBar } from '@cameleer/design-system';
|
||||
import { StatCard, DataTable } from '@cameleer/design-system';
|
||||
import type { Column } from '@cameleer/design-system';
|
||||
import { useClickHouseStatus, useClickHouseTables, useClickHousePerformance, useClickHouseQueries, useIndexerPipeline } from '../../api/queries/admin/clickhouse';
|
||||
import { useClickHouseStatus, useClickHouseTables, useClickHousePerformance, useClickHouseQueries } from '../../api/queries/admin/clickhouse';
|
||||
import styles from './ClickHouseAdminPage.module.css';
|
||||
import sectionStyles from '../../styles/section-card.module.css';
|
||||
import tableStyles from '../../styles/table-section.module.css';
|
||||
|
||||
export default function ClickHouseAdminPage() {
|
||||
@@ -10,7 +9,6 @@ export default function ClickHouseAdminPage() {
|
||||
const { data: tables } = useClickHouseTables();
|
||||
const { data: perf } = useClickHousePerformance();
|
||||
const { data: queries } = useClickHouseQueries();
|
||||
const { data: pipeline } = useIndexerPipeline();
|
||||
const unreachable = statusError || (status && !status.reachable);
|
||||
|
||||
const totalSize = (tables || []).reduce((sum, t) => sum + (t.dataSizeBytes || 0), 0);
|
||||
@@ -52,20 +50,6 @@ export default function ClickHouseAdminPage() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Pipeline */}
|
||||
{pipeline && (
|
||||
<div className={`${sectionStyles.section} ${styles.pipelineCard}`}>
|
||||
<div className={styles.pipelineTitle}>Indexer Pipeline</div>
|
||||
<ProgressBar value={pipeline.maxQueueSize > 0 ? (pipeline.queueDepth / pipeline.maxQueueSize) * 100 : 0} />
|
||||
<div className={styles.pipelineMetrics}>
|
||||
<span>Queue: {pipeline.queueDepth}/{pipeline.maxQueueSize}</span>
|
||||
<span>Indexed: {pipeline.indexedCount.toLocaleString()}</span>
|
||||
<span>Failed: {pipeline.failedCount}</span>
|
||||
<span>Rate: {pipeline.indexingRate.toFixed(1)}/s</span>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Tables */}
|
||||
<div className={`${tableStyles.tableSection} ${styles.tableSection}`}>
|
||||
<div className={tableStyles.tableHeader}>
|
||||
|
||||
Reference in New Issue
Block a user