Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
taburet committed Feb 5, 2020
1 parent a3a8e53 commit 1e23c41
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public boolean isKnownServiceNamespace(ServiceNamespace namespace) {

@Override
public void beforeMigration(PartitionMigrationEvent event) {
System.out.println("!!! MapMigrationAwareService.beforeMigration: " + event);

if (isLocalPromotion(event)) {
// It's a local partition promotion. We need to populate non-global indexes here since
// there is no map replication performed in this case. Global indexes are populated
Expand Down Expand Up @@ -149,6 +151,8 @@ private boolean assertAllKnownNamespaces(Collection<ServiceNamespace> namespaces

@Override
public void commitMigration(PartitionMigrationEvent event) {
System.out.println("!!! MapMigrationAwareService.commitMigration: " + event);

if (event.getMigrationEndpoint() == DESTINATION) {
populateIndexes(event, TargetIndexes.GLOBAL);
} else {
Expand Down

0 comments on commit 1e23c41

Please sign in to comment.