Commit Graph

197 Commits

Author SHA1 Message Date
Thomas Schoebel-Theuer d4b31d8bf9 infra: add flood protected syslogging 2014-03-19 17:49:39 +01:00
Thomas Schoebel-Theuer 8429aaf773 infra: turn off stack traces at errors 2014-03-19 11:44:58 +01:00
Thomas Schoebel-Theuer d96931867a trans_logger: fix error code propagation 2014-03-19 11:44:58 +01:00
Thomas Schoebel-Theuer e551c1aa87 light: fix emergency mode 2014-03-19 11:44:58 +01:00
Thomas Schoebel-Theuer 7fa4bf1ecd trans_logger: fix emergency mode 2014-03-19 11:44:57 +01:00
Thomas Schoebel-Theuer b606644e6d light: always use replay_tolerance 2014-03-19 11:44:57 +01:00
Thomas Schoebel-Theuer 80294e613e light: fix fetch at primary side 2014-03-19 11:33:20 +01:00
Thomas Schoebel-Theuer 2a3e59ba93 light: remove wrong err msg 2014-03-19 11:33:04 +01:00
Thomas Schoebel-Theuer 9d86cb679b all: fix inconsistent terminology apply->replay
In most cases, "replay" was already used. So it is easier
to switch the rare "apply" wording to "replay" everywhere (hopefully).
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer e78d0a3078 light: fix peer preferences, use connect-* links 2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer 0e53f48951 light: fix logfile fetch from multiple peers 2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer e5a558aefe light: fix marker check
The old code was not portable across changes of CL_*
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer 56f38641ff infra: fix/remove buggy d_{name,path}len
In rare cases, this could lead to buffer overflows.
Replace buggy concept from the prototype phase with more
robust (although slightly less performant) code.
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer 6d78a7bc8d light: do deletions only once 2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer 528b72b0c0 light: fix potential race on deletions 2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer 166255ca68 light: fix deletion logic 2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer 3acb6a02fe infra: fix removal of stale directories 2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer 5d2a682cfd infra: fix readlink() for very long paths 2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer 012292677c light: fix string memleak 2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer 3e9aae53c8 all: fix potential buffer overflows, use vscnprintf() 2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer e6abaaa161 light: fix potential endless loop 2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer bd9b46fc05 infra: fix forgotten locking 2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer 7cd1281d2c light: fix potential flaw in primary switching 2014-03-19 11:30:22 +01:00
Thomas Schoebel-Theuer b32927a20d light: fix race in logfile switching 2014-03-19 11:30:22 +01:00
Thomas Schoebel-Theuer f45c3fbdd3 aio: use aio_sync_mode=2 by default 2014-03-19 11:30:22 +01:00
Thomas Schoebel-Theuer eacbac7dea light: fix bad terminology copy_* -> fetch_* 2014-02-04 07:53:33 +01:00
Thomas Schoebel-Theuer bebcc10fc2 light: shotdown mode, delay re-creation of resource 2014-02-04 07:51:37 +01:00
Thomas Schoebel-Theuer 2eb8162a05 light: fix wrong kill of if_brick 2014-02-03 15:07:46 +01:00
Thomas Schoebel-Theuer 31f3b64ea0 light: fix bad cleanup dependencies 2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer dbcbf9f782 light: make trans_logger destructable by symlink removal 2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer 9a8a4d7eb2 light: fix delete-resource forced dealloc 2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer ff7d78a8cc light: fix removal of deletion markers 2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer 178637f5e6 light: force shutdown of fetch upon {disonnect,detach} 2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer cae1b747b1 light: fix stopping of fetch when remote logfile went away 2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer 6e54fa1e5e light: fix peer association of fetch 2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer 4e17138003 light: make detach/down more robust against following commands
Immediately stop syncing when rource should go down.
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer 59d141c06e client: add network abort
TCP_KEEPALIVE doesn't seem to work.
Use explicit timeout instead when the network
just drops any packet.
2014-02-03 15:06:35 +01:00
Thomas Schoebel-Theuer 8309fb97e6 light: add peer abort 2014-02-03 15:06:35 +01:00
Thomas Schoebel-Theuer 7be31c47f4 net: add {send,recv}_abort count
TCP_KEEPALIVE does not work well in the presence of long-blocking
socket operations.

This quirk allows for software aborts after a configurable number of
sk_{snd,rcv}timeo events.
2014-02-03 15:06:35 +01:00
Thomas Schoebel-Theuer b60b0887e8 net: disable MSG_DONTWAIT 2014-02-03 15:06:35 +01:00
Thomas Schoebel-Theuer 2bdc298224 net: reduce tcp idle timeout 2014-02-03 15:06:35 +01:00
Thomas Schoebel-Theuer 62d9dd371a net: allow tcp tuning via /proc/sys/mars/tcp_tuning/ 2014-02-03 15:06:34 +01:00
Thomas Schoebel-Theuer 7ad628a725 light: create detailed warn message in userspace 2014-02-03 15:06:34 +01:00
Thomas Schoebel-Theuer 4dd4118f31 light: prevent logfile fetching on primaries and behind split brains
Save space in /mars/ by not fetching useless logfiles.
2014-01-23 11:56:36 +01:00
Thomas Schoebel-Theuer 0ad20e54c8 light: prevent races between deletions and re-erected objects 2014-01-23 11:56:35 +01:00
Thomas Schoebel-Theuer 216ecbffde marsadm: prevent mutual overwrite of delete symlinks
Add an (unused) host context. Previously, concurrent
log-delete operations triggered by cron could lead to
unnecessary loss of deletetion symlinks.
2014-01-23 11:56:35 +01:00
Thomas Schoebel-Theuer 64a02e6ed8 light: fix logfile fetch after leave-resource && join-resource 2014-01-23 11:56:34 +01:00
Thomas Schoebel-Theuer a7756947b8 light: enable logfile fetch debugging 2014-01-23 11:56:34 +01:00
Thomas Schoebel-Theuer 561a9b4c25 light: always use designated primary as sync source 2014-01-23 10:25:27 +01:00
Thomas Schoebel-Theuer 2c8b72e5e3 light: fix use of wrong logfile after primary --force 2014-01-23 10:25:27 +01:00