Authnote set in the authentication context is null - Clustering

CompletableFuture.runAsync(new Runnable() {
      public void run() {
        context.getAuthenticationSession().setAuthNote("test", "test");
        try {
        } catch (InterruptedException e) {
          throw new RuntimeException(e);
        context.getAuthenticationSession().setAuthNote("test1", "test1");

Inside the authenticate method of the provider. I am running this block of code before sending the authentication challenge.
I am using the CompletableFuture to run a task async, and in that process I am setting an authnote in the authenticatedSession and simulating the thread block by putting the thread to sleep and again settings another auth note.

In a clustered environment, when I try to get the auth note in the action method of the provider. The auth note set before Thread.sleep(1000) is returning the proper value. But the auth note set after this line is returning “null”

Note: The above is working when environment has only one pod. If the replica is increased to 2 or more the above scenario occurs.