Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: version compatibility check for MonoVertex #1912

Closed
wants to merge 10 commits into from

Conversation

kohlisid
Copy link
Contributor

@kohlisid kohlisid commented Aug 8, 2024

fixes #1908

Signed-off-by: Sidhant Kohli <[email protected]>
@vigith vigith changed the title feat: init version feat: version compatibility for Mono Vertex Aug 8, 2024
@vigith vigith changed the title feat: version compatibility for Mono Vertex feat: version compatibility check for MonoVertex Aug 8, 2024
kohlisid and others added 9 commits August 8, 2024 11:26
.
Signed-off-by: Sidhant Kohli <[email protected]>
Signed-off-by: Sidhant Kohli <[email protected]>
.
Signed-off-by: Sidhant Kohli <[email protected]>
Signed-off-by: Sidhant Kohli <[email protected]>
Signed-off-by: Sidhant Kohli <[email protected]>
serving/source-sink/src/lib.rs Show resolved Hide resolved
/// Struct to hold version information
#[derive(Debug)]
pub struct VersionInfo {
pub version: String,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need all these information?

serving/source-sink/src/server_info.rs Show resolved Hide resolved
serving/source-sink/src/server_info.rs Show resolved Hide resolved
serving/source-sink/src/version.rs Show resolved Hide resolved
serving/source-sink/src/server_info.rs Show resolved Hide resolved
serving/source-sink/src/server_info.rs Show resolved Hide resolved
serving/source-sink/src/server_info.rs Show resolved Hide resolved
serving/source-sink/src/server_info.rs Show resolved Hide resolved
Comment on lines +234 to +244
// Retry limit logic
retry += 1;
if retry >= 10 {
// Return an error if the retry limit is reached
return Err(Error::ServerInfoError(
"server-info reading retry exceeded".to_string(),
));
}
sleep(Duration::from_millis(100)).await; // Sleep before retrying
}

Copy link
Contributor

Choose a reason for hiding this comment

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

use our retry?


pub mod server_info;

pub mod version;
Copy link
Member

Choose a reason for hiding this comment

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

these need not be pub also mod version should be inside server_info

@vigith vigith deleted the branch numaproj:sourcer-sinker August 9, 2024 20:01
@vigith vigith closed this Aug 9, 2024
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.

4 participants