apollo-kotlin icon indicating copy to clipboard operation
apollo-kotlin copied to clipboard

remove IllegalStateException from IDLE / TERMINATED state in terminate and responseCallback

Open WilliamsDHI opened this issue 3 years ago • 8 comments
trafficstars

@martinbonnin Here is the PR in reference to this thread.

WilliamsDHI avatar Sep 12 '22 17:09 WilliamsDHI

@WilliamsDHI: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

apollo-cla avatar Sep 12 '22 17:09 apollo-cla

Deploy request for apollo-android-docs pending review.

Visit the deploys page to approve it

Name Link
Latest commit 4b0c44b648786f4581cb0a2e9ef2ab152f6d1010

netlify[bot] avatar Sep 12 '22 17:09 netlify[bot]

Hi 👋 thanks for opening this. As this more of a workaround than an actual fix for the root cause, I'm a bit reluctant to merging this as-is, even if 2.x is in maintainance mode. What I can offer is to publish a 2.5.13-absent-callback version with the fix to an alternate repsy.io repository. This way you can test it and let us know how that works for you before we decide what to do with the release-2.x branch? How does that sound?

martinbonnin avatar Sep 12 '22 18:09 martinbonnin

That sounds great and I think would serve our purposes. We are really just looking for a work-around until we have bandwidth to update and refactor our app to Apollo 3.

WilliamsDHI avatar Sep 12 '22 18:09 WilliamsDHI

Sounds good. It's getting a bit late here but I'll do that first thing tomorrow.

martinbonnin avatar Sep 12 '22 19:09 martinbonnin

Hi 👋 The 2.5.14-absent-callback version should be available now at https://repsy.io/mvn/mbonnin/default/com/apollographql/apollo/apollo-runtime/2.5.14-absent-callback/.

Add the repsy repo:

repositories {
  maven("https://repo.repsy.io/mvn/mbonnin/default")
}

and use in dependencies:

dependencies {
  implementation("com.apollographql.apollo:apollo-runtime:2.5.14-absent-callback")
}

martinbonnin avatar Sep 13 '22 07:09 martinbonnin

As expected, no issues with this absent-callback version. We're using in develop now and will be pushing a hotfix soon to production with this version. Thanks again.

WilliamsDHI avatar Sep 15 '22 18:09 WilliamsDHI

Nice! Thanks for the update!

martinbonnin avatar Sep 19 '22 13:09 martinbonnin

@WilliamsDHI any news from production? Is everything looking good?

martinbonnin avatar Sep 29 '22 07:09 martinbonnin

@martinbonnin Because the crash has stabilized, we are not putting out a hot fix. This update will now go in production in a few more weeks with a different release. But so far things are working well in our test environment.

WilliamsDHI avatar Sep 29 '22 13:09 WilliamsDHI

@martinbonnin The 2.5.14-absent-callback version has been in production for a week now and is looking very good. Please keep it up and we'll continue to use it. If the merge or another fix is made in the future to Apollo 2 then we'll update our version again.

WilliamsDHI avatar Oct 25 '22 14:10 WilliamsDHI

Thanks for the update :). I'll merge this PR and it'll be part of the next 2.x release. Thanks again for all the investigations!

martinbonnin avatar Oct 25 '22 16:10 martinbonnin

This is fixed in https://github.com/apollographql/apollo-kotlin/pull/4383 and will be released in 2.5.14

martinbonnin avatar Nov 15 '22 10:11 martinbonnin

This is fixed in #4383 and will be released in 2.5.14

Awesome! Any timeline for a 2.5.14 release?

WilliamsDHI avatar Nov 15 '22 14:11 WilliamsDHI

Not much activity these days in the release-2.x branch. I guess we could do one this week unless something comes up. I'll double check internally if we have anything else planned for 2.x

martinbonnin avatar Nov 15 '22 14:11 martinbonnin