Ticket #381 (closed defect: wontfix)

Opened 7 years ago

Last modified 7 months ago

create-node timeouts and retries can create multiple identical nodes

Reported by: writetodan@… Owned by: steve@…
Priority: major Milestone:
Component: api Version:
Keywords: Cc:

Description

it appears as if when a node-creation call to the API times out and is aborted (e.g. through exceeding socket.timeout setting in HttpClient? in applet's Adapter), one or automatic more retries to the API can result in multiple identical nodes being created.

unsure if/what should be done on API-side. (ticket also created against applet)

Change History

comment:1 Changed 7 years ago by tom@…

The basic problem is that the client times out and gives up, but the server waits a bit longer and does get around to handling the pending request. Not sure there is much we can do about this.

comment:2 Changed 6 years ago by karl.guggisberg@…

See  http://hc.apache.org/httpclient-3.x/exception-handling.html#HTTP_transport_safety for idempotent http requests.

Clients could add a unique request ID to every request (i.e. a GUID?), server makes sure that every request is processed at most once. Additional requests with the same request ID would be ignored by the server. A warning could be replied to the client for duplicated requests.

comment:3 Changed 7 months ago by iandees

  • Status changed from new to closed
  • Resolution set to wontfix

Cleaning old tickets.

Note: See TracTickets for help on using tickets.