You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, FlintSparkIndexMonitor is placed within the Flint Spark integration module and is started automatically by the Flint refresh and recover API. This causes the following problems:
Monitoring logic is coupled with the Flint Spark API.
I propose moving the index monitor to the Flint Spark application layer. The application code should control the start and stop of the index monitor. This would:
Decouple the monitoring logic from the Flint Spark API.
Allow for more flexible and explicit control of index monitoring within the application code.
Key considerations include evaluating if the benefits are worth the effort and any associated risks, as well as determining how the application code should decide to start monitoring after the Flint index creation statement completes.
What alternatives have you considered?
Keeping the FlintSparkIndexMonitor in the integration module but refactoring the awaitMonitor call mechanism to reduce complexity.
Creating a separate monitoring service that can be invoked independently by the Flint Spark application and Flint SQL.
Do you have any additional context?
N/A
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Currently,
FlintSparkIndexMonitor
is placed within the Flint Spark integration module and is started automatically by the Flint refresh and recover API. This causes the following problems:awaitMonitor
API directly: https://github.com/opensearch-project/opensearch-spark/blob/main/spark-sql-application/src/main/scala/org/apache/spark/sql/JobOperator.scala#L96What solution would you like?
I propose moving the index monitor to the Flint Spark application layer. The application code should control the start and stop of the index monitor. This would:
Key considerations include evaluating if the benefits are worth the effort and any associated risks, as well as determining how the application code should decide to start monitoring after the Flint index creation statement completes.
What alternatives have you considered?
FlintSparkIndexMonitor
in the integration module but refactoring the awaitMonitor call mechanism to reduce complexity.Do you have any additional context?
N/A
The text was updated successfully, but these errors were encountered: