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

fix: job spec nil error #302

Merged
merged 1 commit into from
Mar 7, 2022
Merged

fix: job spec nil error #302

merged 1 commit into from
Mar 7, 2022

Conversation

haoxins
Copy link
Contributor

@haoxins haoxins commented Mar 1, 2022

No description provided.

@@ -103,11 +103,15 @@ func getDesiredClusterState(observed *ObservedClusterState) *model.DesiredCluste
state.JmIngress = newJobManagerIngress(cluster)
}

jobStatus := cluster.Status.Components.Job
keepJobState := (shouldStopJob(cluster) || jobStatus.IsStopped()) &&
Copy link
Contributor Author

Choose a reason for hiding this comment

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

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x100 pc=0x14c003b]

goroutine 343 [running]:
github.com/spotify/flink-on-k8s-operator/controllers/flinkcluster.shouldStopJob(...)
	/workspace/controllers/flinkcluster/flinkcluster_util.go:174

Copy link
Contributor

@regadas regadas left a comment

Choose a reason for hiding this comment

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

Nice catch!

@regadas regadas merged commit b80f549 into spotify:master Mar 7, 2022
@haoxins haoxins deleted the fix-job-spec-nil branch March 7, 2022 11:22
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