Project

General

Custom queries

Profile

Actions

Bug #6304

closed

[API] Fix config file race condition and improve test cases for DNS update hooks

Added by Tom Clegg almost 10 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
0.5

Description

Node.dns_server_update() in source:services/api/app/models/node.rb is currently vulnerable to the following race (fixable by using a tempfile library):
  • Request handler A writes hostname.conf.tmp.
  • Request handler B opens hostname.conf.tmp for writing.
  • Request handler A issues the move command.

Catch only the expected exceptions on the various write and update operations (IOError and SystemCallError?), not unexpected ones.


Subtasks 3 (0 open3 closed)

Task #6246: Add test case for dns configsClosed05/23/2015Actions
Task #6245: Improve race and exception handling in dns updatesClosed05/23/2015Actions
Task #11382: Review 6304-dns-update-fixResolvedLucas Di Pentima05/23/2015Actions
#1

Updated by Tom Clegg almost 10 years ago

  • Description updated (diff)
#2

Updated by Tom Clegg about 8 years ago

  • Description updated (diff)
#3

Updated by Tom Morris about 8 years ago

  • Target version changed from Arvados Future Sprints to 2017-04-12 sprint
#4

Updated by Lucas Di Pentima about 8 years ago

  • Assigned To set to Lucas Di Pentima
#5

Updated by Lucas Di Pentima about 8 years ago

  • Status changed from New to In Progress
#8

Updated by Tom Clegg about 8 years ago

  • Description updated (diff)
#12

Updated by Lucas Di Pentima about 8 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF