You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In InstanceResource, when renewing a lease and lastDirtyTimestamp is not null, the code will return a 409 Conflict to the client in a certain situation. However, PeerReplicationResource will not return the InstanceInfo in the body of the response unless the status code is 200.
On the client side of things, PeerEurekaNode needs this InstanceInfo to execute the method syncInstancesIfTimestampDiffers. Since it's never sent back from the server, this code never gets executed and you get The replication of task XXX/i-XXX@XXX failed with response code 409 logs until you fix it manually.
PR submitted.
The text was updated successfully, but these errors were encountered:
jebeaudet
added a commit
to jebeaudet/eureka
that referenced
this issue
Apr 21, 2017
When the server receive a heartbeat from a peer with a lastDirtyTimestamp lower
than the timestamp it has, it will return a 409 Conflict response code. On the
client side, it will use this status code to trigger a resync on this particular
instance.
The PeerReplicationResource was however stripping the required InstanceInfo
from the response unless the status code was a 200 which is not the case here.
This simple fix adds the InstanceInfo to the response in case of 409.
FixesNetflixgh-933
In
InstanceResource
, when renewing a lease andlastDirtyTimestamp
is not null, the code will return a 409 Conflict to the client in a certain situation. However,PeerReplicationResource
will not return theInstanceInfo
in the body of the response unless the status code is 200.On the client side of things,
PeerEurekaNode
needs thisInstanceInfo
to execute the methodsyncInstancesIfTimestampDiffers
. Since it's never sent back from the server, this code never gets executed and you getThe replication of task XXX/i-XXX@XXX failed with response code 409
logs until you fix it manually.PR submitted.
The text was updated successfully, but these errors were encountered: