-
Notifications
You must be signed in to change notification settings - Fork 12
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
capusule mina logic on shard and introduce filter to set MDC #3511
Conversation
…naged objects to the environments lifecycle is not threadsafe
backend/src/main/java/com/bakdata/conquery/commands/DistributedStandaloneCommand.java
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/commands/DistributedStandaloneCommand.java
Show resolved
Hide resolved
getConfig().getQueries().getSecondaryIdSubPlanRetention() | ||
); | ||
clusterConnection = | ||
new ClusterConnectionShard(config, environment, workers, () -> createInternalObjectMapper(View.InternalCommunication.class, config, environment.getValidator())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mir gefällt nicht, dass du die gleiche logik - die subtile fehleranfälligkeiten haben kann zweimal implementierst. Könntest du das eventuell an interface binden und mehrere male this angeben?
Also PersistenceMaperFactory und ClusterCommunicationMapperFactory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das war etwas mehr aufzuräumen, ich habe einen extra PR gemacht: #3528
dem muss ich aber noch mergen rebasen nach dem hier
backend/src/main/java/com/bakdata/conquery/mode/cluster/ClusterConnectionShard.java
Outdated
Show resolved
Hide resolved
@Override | ||
public void start() throws Exception { | ||
|
||
for (Worker value : getWorkers().values()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ich weiß ehrlich gesagt gar nicht warum das existiert hat, das ist im Grunde ein Bug. Würde es einfach löschen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich denke, wir hatten mal das Problem, dass nach einem update nicht alle Buckets deserializiert werden konnten (da hatten wir vielleicht noch nicht die StorageStatistics).
Beim Entwickeln des Cachings hat es mich einmal auf einen Fehler aufmerksam gemacht, weil auf einmal alle CBlocks neuberechnet wurden beim Restart.
Ich würd es es als Consistency-Test erstmal drinne lassen.
backend/src/test/java/com/bakdata/conquery/util/support/TestConquery.java
Show resolved
Hide resolved
backend/src/test/java/com/bakdata/conquery/util/support/TestConquery.java
Show resolved
Hide resolved
…re/refactor-shard-mina
No description provided.