kubernetes-client: HasMetadataOperation.periodicWatchUntilReady is broken

Our call to HasMetadataOperation.waitUntilReady never returns. A stacktrace suggests that the thread is stuck awaiting the latch at https://github.com/fabric8io/kubernetes-client/blob/5f5d1697839b0b220bf400133a4dbe65a56f797d/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/base/HasMetadataOperation.java#L192

I believe the cause is https://github.com/fabric8io/kubernetes-client/pull/1451 which changes millisecond values into nanoseconds, but the interval value used in the above line is still treated as a milliseconds value, resulting in a huge wait time.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 4
  • Comments: 15 (11 by maintainers)

Commits related to this issue

Most upvoted comments

I’m preparing a PR. You’re welcome to fix it @fmichielssen if you want