Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-adding features to V2 architecture #1205

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Re-adding features to V2 architecture #1205

wants to merge 8 commits into from

Conversation

mieciu
Copy link
Member

@mieciu mieciu commented Jan 21, 2025

I've made some (a lot of) shortcuts to merge v2 architecture processors. Now it's time to take the high road.

Changes:

  • added common table support for query/ingest
  • Removed dependency on IndexManagement (the only component which depends on it is TableResolver
  • Switching AB testing logs collector to Elasticsearch to remove dependency on ClickHouse Ingester interface @nablaone

@mieciu mieciu marked this pull request as ready for review January 22, 2025 11:35
@mieciu mieciu requested a review from a team as a code owner January 22, 2025 11:35
}

func (qmc *QuesmaManagementConsole) elasticsearchResolveIndexPattern(ctx context.Context, indexPattern string) (sources elasticsearch.Sources) {
resp, err := qmc.elasticsearch.RequestWithHeaders(ctx, "GET", "_resolve/index/"+indexPattern+"?expand_wildcards=open", nil, nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: The same uri is used in https://github.com/QuesmaOrg/quesma/blob/main/quesma/elasticsearch/index_resolver.go#L56

Maybe, we can extract common const?

@@ -48,3 +49,46 @@ func (t DummyTableResolver) Pipelines() []string { return []string{} }
func (t DummyTableResolver) RecentDecisions() []mux.PatternDecisions {
return []mux.PatternDecisions{}
}

//func (t DummyTableResolver) resolveWildcardCommonTable(indexPattern string) *mux.Decision {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed?

@@ -73,12 +74,14 @@ func (p *ElasticsearchToClickHouseQueryProcessor) prepareTemporaryQueryProcessor
logManager := clickhouse.NewEmptyLogManager(p.legacyDependencies.OldQuesmaConfig, p.legacyDependencies.ConnectionPool, p.legacyDependencies.PhoneHomeAgent(), p.legacyDependencies.TableDiscovery)
logManager.Start()

abTestingController := sender.NewSenderCoordinator(p.legacyDependencies.OldQuesmaConfig)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not we create and start this Coordinator earlier? and pass it to Init()

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.

2 participants