Skip to content

Commit

Permalink
[NYS2AWS-134] updated diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
pvriel committed Feb 11, 2025
1 parent f66caf7 commit dc2a22e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/indexing/threshold-indexer-mermaid-diagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ sequenceDiagram
end
box Darkgreen Alfresco components
participant SearchTrackingComponent
participant dataSource (through JdbcTemplate)
end
Expand All @@ -22,8 +23,8 @@ sequenceDiagram
par Fetch TxnIDs
loop while not stopped
ThresholdIndexingStrategyTransactionIdFetcher->>SearchTrackingComponent: Fetch a preconfigured amount of transaction IDs for each worker.
SearchTrackingComponent-->>ThresholdIndexingStrategyTransactionIdFetcher: transaction IDs
ThresholdIndexingStrategyTransactionIdFetcher->>dataSource (through JdbcTemplate): Fetch a preconfigured amount of transaction IDs for each worker.
dataSource (through JdbcTemplate)-->>ThresholdIndexingStrategyTransactionIdFetcher: transaction IDs
ThresholdIndexingStrategyTransactionIdFetcher->>ThresholdIndexingStrategyTransactionIdFetcher: Stop if no transaction IDs are received. Otherwise, divide the transaction IDs for the workers.
loop foreach worker
ThresholdIndexingStrategyTransactionIdFetcher->>Shared queue B: Queue batch of transaction IDs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ sequenceDiagram
par Receive new tasks
ProcessorService->>SolrUndersizedTransactionsHealthProcessorPlugin: .doProcess(set of nodeRefs)
SolrUndersizedTransactionsHealthProcessorPlugin->>SolrUndersizedTransactionsHealthProcessorPlugin: Update state.
opt Too many queued tasks
SolrUndersizedTransactionsHealthProcessorPlugin->>SolrUndersizedTransactionsHealthProcessorPlugin: Wait until a previous task has been handled.
end
SolrUndersizedTransactionsHealthProcessorPlugin->>Shared thread pool: Queue new task.
SolrUndersizedTransactionsHealthProcessorPlugin-->>ProcessorService: return healthy reports for all nodeRefs
Expand All @@ -29,5 +32,6 @@ sequenceDiagram
Worker thread->>AbstractNodeDAOImpl: .touchNodes(transaction ID, node IDs)
Worker thread->>TransactionHelper: finalize transaction.
Worker thread->>SolrUndersizedTransactionsHealthProcessorPlugin: Update state.
Worker thread->>SolrUndersizedTransactionsHealthProcessorPlugin: Notify about processed task.
end
```

0 comments on commit dc2a22e

Please sign in to comment.