Skip to content

feat: Introduce dataserver and coordinator configuration (part.3)#860

Merged
mattisonchao merged 7 commits intomainfrom
feat.conf.p3
Jan 17, 2026
Merged

feat: Introduce dataserver and coordinator configuration (part.3)#860
mattisonchao merged 7 commits intomainfrom
feat.conf.p3

Conversation

@mattisonchao
Copy link
Copy Markdown
Member

Motivation

This PR is part.3 of the configuration introduction. which includes the dynamic configuration watch and implements the dynamic log level updates.

Modification

  • Introduced the watch mechanism for configuration options.
  • Introduced the background watcher for dataserver and coordinator server.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a configuration watch mechanism for the dataserver and coordinator, enabling dynamic updates to configuration options (specifically log levels) without requiring a server restart.

Changes:

  • Added a generic Watch[T] type for observing configuration changes with version tracking
  • Integrated background goroutines in both dataserver and coordinator to monitor and apply configuration changes
  • Updated server constructors to accept watchable options and parent contexts for lifecycle management

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 17 comments.

Show a summary per file
File Description
oxiad/common/option/watch.go New generic watch primitive for observing value changes with version tracking
oxiad/common/option/watch_test.go Comprehensive test suite for the Watch implementation
oxiad/dataserver/server.go Added background configuration watcher with context management for dataserver
oxiad/coordinator/server.go Added background configuration watcher with context management for coordinator
oxiad/common/logging/logger.go Added ReconfigureLogger function for dynamic log level updates
cmd/server/cmd.go Integrated viper file watcher and watchable options for dataserver
cmd/coordinator/cmd.go Integrated viper file watcher and watchable options for coordinator
common/codec/options.go Added empty WatchFileOptions function (unused)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 14 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 17 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mattisonchao mattisonchao merged commit 3913650 into main Jan 17, 2026
13 of 14 checks passed
@mattisonchao mattisonchao deleted the feat.conf.p3 branch January 17, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants