Skip to content

Commit

Permalink
KNOX-2959 - Auto discovery to support scaling scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroflag committed Sep 28, 2023
1 parent 3579cfc commit 6a2c7c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ void queryingConfigActivationEventsFromCluster(String clusterName,
@Message(level = MessageLevel.DEBUG, text = "Activation event relevance: {0} = {1} ({2} / {3} / {4} / {5})")
void activationEventRelevance(String eventId, String relevance, String command, String status, String serviceType, boolean serviceModelGeneratorExists);

@Message(level = MessageLevel.DEBUG, text = "Deactivation event relevance: {0} = {1} ({2} / {3} / {4})")
void deactivationEventRelevance(String eventId, String relevance, String eventCode, String serviceType, boolean serviceModelGeneratorExists);
@Message(level = MessageLevel.DEBUG, text = "Scale event relevance: {0} = {1} ({2} / {3} / {4})")
void scaleEventRelevance(String eventId, String relevance, String eventCode, String serviceType, boolean serviceModelGeneratorExists);

@Message(level = MessageLevel.DEBUG, text = "Activation event - {0} - has already been processed, skipping ...")
void activationEventAlreadyProcessed(String eventId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ private boolean isScaleEvent(ApiEvent event) {
final boolean serviceModelGeneratorExists = serviceModelGeneratorsHolder.getServiceModelGenerators(serviceType) != null;
final boolean relevant = serviceModelGeneratorExists &&
(CREATED_EVENT_CODES.contains(eventCode) || DELETED_EVENT_CODES.contains(eventCode));
log.deactivationEventRelevance(event.getId(), String.valueOf(relevant), eventCode, serviceType, relevant);
log.scaleEventRelevance(event.getId(), String.valueOf(relevant), eventCode, serviceType, relevant);
return relevant;
}

Expand Down

This file was deleted.

0 comments on commit 6a2c7c6

Please sign in to comment.