-
Notifications
You must be signed in to change notification settings - Fork 226
Sonar reported issues #816
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
Conversation
import io.javaoperatorsdk.operator.processing.LifecycleAware; | ||
|
||
@SuppressWarnings("rawtypes") | ||
public class Operator implements AutoCloseable, LifecycleAware { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@metacosm this Autoclosable is a little bit confusing here since start is not blocking, removed it, pls let me know what do you think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That change will need to be documented because people might be relying on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean in migration guide? We don't document changes from v1 -> v2 , just there
c9f32bf
to
fb39bbc
Compare
private final GenericRetry genericRetry; | ||
|
||
private volatile int lastAttemptIndex = 0; | ||
private AtomicInteger lastAttemptIndex = new AtomicInteger(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually have multiple threads accessing that state concurrently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked and atctually don't now, good catch! Changhed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you push the changes, I don't see them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now I did :)
import io.javaoperatorsdk.operator.processing.LifecycleAware; | ||
|
||
@SuppressWarnings("rawtypes") | ||
public class Operator implements AutoCloseable, LifecycleAware { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That change will need to be documented because people might be relying on it.
SonarCloud Quality Gate failed. |
Let's get this merged! |
Few sonar reported issue fixes