BookmarkSubscribeRSS Feed
E-Ching_Lee
SAS Employee

To avoid a potential race condition, updates and changes are recommended for users of the SDK and for customers who use the Direct and Optimize agents.

 

In certain situations, agents do not automatically reconnect when the gateway connection is lost. The race condition occurs when the agent code attempts to reconnect to the gateway before the previous connection is closed.

 

To avoid the race condition if you are an SDK user, add the code in blue to the reconnection code for your custom agent:

 

if (alreadySeenStreamClosedCall.compareAndSet(false, true)) {
        System.out.println("Passed compareAndSet test");
        final CI360StreamInterface ci360StreamInterface=this;
        Thread startThread=new Thread() {
            public void run() {
                try

{                     Thread.sleep(15000);                 }

catch (InterruptedException e)

{                   }

                alreadySeenStreamClosedCall.set(false);
                try {
                    //Try to reconnect to the event stream.
                    agent.startStream(ci360StreamInterface, true);
                } catch (CI360AgentException e)

{                     System.err.println("ERROR " + e.getErrorCode() + ": " + e.getMessage());                 }

            }
        };
        startThread.setName("AgentRestart-");
        startThread.start();
    }

 

To avoid the race condition if you use Direct or Optimize agents, update to a version from 24.05 or later.

 

No action is required if you use General or Diagnostics agents.

Review SAS CI360 now.png

 

Want to review SAS CI360? G2 is offering a gift card or charitable donation for each accepted review. Use this link to opt out of receiving anything of value for your review.

 

 

 

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

Listen to the Reimagine Marketing podcast

Assess your marketing efforts with a free tool

 

Training Resources

SAS Customer Intelligence Learning Subscription (login required)

Access free tutorials

Refer to documentation

Latest hot fixes

Compatibility notice re: SAS 9.4M8 (TS1M8) or later

 

 

How to improve email deliverability

SAS' Peter Ansbacher shows you how to use the dashboard in SAS Customer Intelligence 360 for better results.

Find more tutorials on the SAS Users YouTube channel.

Review SAS CI360 now.png

 

Want to review SAS CI360? G2 is offering a gift card or charitable donation for each accepted review. Use this link to opt out of receiving anything of value for your review.

 

 

 

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

Listen to the Reimagine Marketing podcast

Assess your marketing efforts with a free tool

 

Training Resources

SAS Customer Intelligence Learning Subscription (login required)

Access free tutorials

Refer to documentation

Latest hot fixes

Compatibility notice re: SAS 9.4M8 (TS1M8) or later

 

 

Discussion stats
  • 0 replies
  • 696 views
  • 0 likes
  • 1 in conversation