sanpwc commented on code in PR #7055:
URL: https://github.com/apache/ignite-3/pull/7055#discussion_r2559408700
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -672,22 +572,7 @@ public CompletableFuture<Void> startAsync(ComponentContext
componentContext) {
cleanUpResourcesForDroppedTablesOnRecoveryBusy();
- if (!nodeProperties.colocationEnabled()) {
- metaStorageMgr.registerPrefixWatch(
- new ByteArray(PENDING_ASSIGNMENTS_QUEUE_PREFIX_BYTES),
- pendingAssignmentsRebalanceListener
- );
- metaStorageMgr.registerPrefixWatch(new
ByteArray(STABLE_ASSIGNMENTS_PREFIX_BYTES), stableAssignmentsRebalanceListener);
- metaStorageMgr.registerPrefixWatch(
- new ByteArray(ASSIGNMENTS_SWITCH_REDUCE_PREFIX_BYTES),
- assignmentsSwitchRebalanceListener
- );
- }
-
- catalogService.listen(
- CatalogEvent.TABLE_CREATE,
- nodeProperties.colocationEnabled() ?
onTableCreateWithColocationListener : onTableCreateWithoutColocationListener
- );
+ catalogService.listen(CatalogEvent.TABLE_CREATE,
onTableCreateWithColocationListener);
Review Comment:
I'll rename it but a bit later in order not produce unnecessary mess in
given PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]