AaronBrooks [Sun, 22 Sep 2024 22:21:32 +0000 (22:21 +0000)]
removed
AaronBrooks [Sun, 22 Sep 2024 22:21:05 +0000 (22:21 +0000)]
Added a comment: reinject files -- more efficiently
AaronBrooks [Sun, 22 Sep 2024 22:19:13 +0000 (22:19 +0000)]
Added a comment: reinject files -- more efficiently
Joey Hess [Wed, 18 Sep 2024 13:08:42 +0000 (09:08 -0400)]
comment
mike@2d6d71f56ce2a992244350475251df87c26fe351 [Thu, 12 Sep 2024 15:40:24 +0000 (15:40 +0000)]
Added a comment
nobodyinperson [Thu, 12 Sep 2024 14:51:20 +0000 (14:51 +0000)]
Added a comment: 👍 +1 for encrypting the annex on regular git remotes
mike@2d6d71f56ce2a992244350475251df87c26fe351 [Thu, 12 Sep 2024 05:22:18 +0000 (05:22 +0000)]
Added a comment
yarikoptic [Wed, 11 Sep 2024 20:47:45 +0000 (20:47 +0000)]
initial report on that addunlocked is not respected during import
yarikoptic [Fri, 6 Sep 2024 14:01:34 +0000 (14:01 +0000)]
initial report on incorrect handling of empty files in adjusted branches mode
Joey Hess [Thu, 5 Sep 2024 19:25:34 +0000 (15:25 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
yarikoptic [Thu, 5 Sep 2024 14:52:51 +0000 (14:52 +0000)]
Added a comment
yarikoptic [Thu, 5 Sep 2024 14:49:07 +0000 (14:49 +0000)]
Added a comment: ping on this issue : how to recover?
Joey Hess [Thu, 5 Sep 2024 13:20:38 +0000 (09:20 -0400)]
comment
tapesafer [Wed, 4 Sep 2024 15:48:01 +0000 (15:48 +0000)]
Added a comment: PS
Joey Hess [Wed, 4 Sep 2024 15:36:46 +0000 (11:36 -0400)]
update
tapesafer [Wed, 4 Sep 2024 14:50:16 +0000 (14:50 +0000)]
Added a comment: numcopies & force-trusting is ignored by fsck on readonly directory remotes?
Rick [Tue, 3 Sep 2024 19:40:57 +0000 (19:40 +0000)]
Added a comment: Similar Borg sync issue
Joey Hess [Tue, 3 Sep 2024 18:24:32 +0000 (14:24 -0400)]
update
Joey Hess [Tue, 3 Sep 2024 18:23:48 +0000 (14:23 -0400)]
sim design
Joey Hess [Tue, 3 Sep 2024 18:23:32 +0000 (14:23 -0400)]
correct comment
This is not related to v5 versus newer versions.
Joey Hess [Tue, 3 Sep 2024 18:23:14 +0000 (14:23 -0400)]
fix typo
Joey Hess [Tue, 3 Sep 2024 17:49:34 +0000 (13:49 -0400)]
treat "not present" in preferred content as invalid
Detect when a preferred content expression contains "not present", which
would lead to repeatedly getting and then dropping files, and make it never
match. This also applies to "not balanced" and "not sizebalanced".
--explain will tell the user when this happens
Note that getMatcher calls matchMrun' and does not check for unstable
negated limits. While there is no --present anyway, if there was,
it would not make sense for --not --present to complain about
instability and fail to match.
Joey Hess [Tue, 3 Sep 2024 16:38:59 +0000 (12:38 -0400)]
Fix --debug display of onlyingroup preferred content expression.
Joey Hess [Tue, 3 Sep 2024 15:52:54 +0000 (11:52 -0400)]
update
Joey Hess [Mon, 2 Sep 2024 20:32:28 +0000 (16:32 -0400)]
2 level toc
Joey Hess [Mon, 2 Sep 2024 20:31:31 +0000 (16:31 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 2 Sep 2024 20:31:03 +0000 (16:31 -0400)]
fix number of headers
Joey Hess [Sat, 31 Aug 2024 23:50:36 +0000 (19:50 -0400)]
add news item for git-annex 10.
20240831
Joey Hess [Sat, 31 Aug 2024 23:50:26 +0000 (19:50 -0400)]
releasing package git-annex version 10.
20240831
Joey Hess [Fri, 30 Aug 2024 18:56:38 +0000 (14:56 -0400)]
use Utility.PID
fixes build on i386ancient
Joey Hess [Fri, 30 Aug 2024 18:49:18 +0000 (14:49 -0400)]
fix liveupdate locking
This fixes the build on windows.
Changed it to use lock pools, which will behave better if two threads
call getLiveRepoSizes at the same time.
Also this should make it work when annex.pidlock is set. In that case,
once the current process locks this file, or anything, any other process
will have to wait on the pid lock. So checkStaleSizeChanges will
correctly identify any other live changes in the database as stale,
since there can only be one git-annex process running.
Joey Hess [Fri, 30 Aug 2024 18:35:05 +0000 (14:35 -0400)]
fix paste oops
Wow, I pasted a big thing into entirely the wrong file, but it was in a
comment so it compiled anyway.
Joey Hess [Fri, 30 Aug 2024 16:06:45 +0000 (12:06 -0400)]
mention sizebalanced as well as balanced
Joey Hess [Fri, 30 Aug 2024 15:58:10 +0000 (11:58 -0400)]
avoid locking the journal in readonly repository
The test suite flagged that git-annex info in a readonly repository was
no longer working.
.git/annex/journal.lck: openFd: permission denied
This fixes it, however, in a case where .git/annex/reposize/ is
writable, but .git/annex/journal/ is not, there will still be a
permission denied error. The solution would just be to use consistent
permissions I suppose.
Joey Hess [Fri, 30 Aug 2024 15:14:45 +0000 (11:14 -0400)]
update
Joey Hess [Fri, 30 Aug 2024 15:08:32 +0000 (11:08 -0400)]
document using balanced preferred content in a cluster
Joey Hess [Fri, 30 Aug 2024 15:01:39 +0000 (11:01 -0400)]
Merge branch 'master' into balanced
Joey Hess [Fri, 30 Aug 2024 14:48:10 +0000 (10:48 -0400)]
lookupkey: Allow using --ref in a bare repository.
yarikoptic [Thu, 29 Aug 2024 18:35:47 +0000 (18:35 +0000)]
Added a comment
Joey Hess [Wed, 28 Aug 2024 18:13:12 +0000 (14:13 -0400)]
err on the side of larger repository size
When a live update is removing a key, it might fail. So only count those
once they have succeeded. When a live update is adding a key, count it
immediately to avoid over-filling a repo.
This also makes the 1 minute delay between stale live changes checks
more defensible, because a stale live change can only cause us to err
more on the side of caution.
Joey Hess [Wed, 28 Aug 2024 17:52:59 +0000 (13:52 -0400)]
remove stale live changes from reposize database
Reorganized the reposize database directory, and split up a column.
checkStaleSizeChanges needs to run before needLiveUpdate,
otherwise the process won't be holding a lock on its pid file, and
another process could go in and expire the live update it records. It
just so happens that they do get called in the correct order, since
checking balanced preferred content calls getLiveRepoSizes before
needLiveUpdate.
The 1 minute delay between checks is arbitrary, but will avoid excess
work. The downside of it is that, if a process is dropping a file and
gets interrupted, for 1 minute another process can expect a repository
will soon be smaller than it is. And so a process might send data to a
repository when a file is not really going to be dropped from it. But
note that can already happen if a drop takes some time in eg locking and
then fails. So it seems possible that live updates should only be
allowed to increase, rather than decrease the size of a repository.
Joey Hess [Wed, 28 Aug 2024 15:00:59 +0000 (11:00 -0400)]
combine 2 queries
Joey Hess [Wed, 28 Aug 2024 14:52:34 +0000 (10:52 -0400)]
avoid reposize database locking overhead when not needed
Only when the preferred content expression being matched uses balanced
preferred content is this overhead needed.
It might be possible to eliminate the locking entirely. Eg, check the
live changes before and after the action and re-run if they are not
stable. For now, this is good enough, it avoids existing preferred
content getting slow. If balanced preferred content turns out to be too
slow to check, that could be tried later.
matrss [Wed, 28 Aug 2024 14:11:36 +0000 (14:11 +0000)]
Added a comment
mih [Wed, 28 Aug 2024 13:58:30 +0000 (13:58 +0000)]
Added a comment: Needed to retrieve single file metadata from bare repo
matrss [Wed, 28 Aug 2024 08:47:33 +0000 (08:47 +0000)]
Added a comment
Joey Hess [Tue, 27 Aug 2024 19:47:57 +0000 (15:47 -0400)]
fix a deadlock when not using --auto
Live update never gets started, but then it still waited for it to
finish.
This only deadlocked with -J4 or so, not without -J. Unsure why.
Joey Hess [Tue, 27 Aug 2024 19:00:10 +0000 (15:00 -0400)]
avoid nub
There will not usually be many live changes, but usually does not mean
ever, and O(N^2) is best avoided.
Joey Hess [Tue, 27 Aug 2024 18:59:13 +0000 (14:59 -0400)]
thoughts
Joey Hess [Tue, 27 Aug 2024 17:07:06 +0000 (13:07 -0400)]
locking in checkLiveUpdate
This makes sure that two threads don't check balanced preferred content at the
same time, so each thread always sees a consistent picture of what is
happening.
This does add a fairly expensive file level lock to every check of
preferred content, in commands that use prepareLiveUpdate. It would
be good to only do that when live updates are actually needed, eg when
the preferred content expression uses balanced preferred content.
Joey Hess [Tue, 27 Aug 2024 15:04:27 +0000 (11:04 -0400)]
closing in on finishing live reposizes
Fixed successfullyFinishedLiveSizeChange to not update the rolling total
when a redundant change is in RecentChanges.
Made setRepoSizes clear RecentChanges that are no longer needed.
It might be possible to clear those earlier, this is only a convenient
point to do it.
The reason it's safe to clear RecentChanges here is that, in order for a
live update to call successfullyFinishedLiveSizeChange, a change must be
made to a location log. If a RecentChange gets cleared, and just after
that a new live update is started, making the same change, the location
log has already been changed (since the RecentChange exists), and
so when the live update succeeds, it won't call
successfullyFinishedLiveSizeChange. The reason it doesn't
clear RecentChanges when there is a reduntant live update is because
I didn't want to think through whether or not all races are avoided in
that case.
The rolling total in SizeChanges is never cleared. Instead,
calcJournalledRepoSizes gets the initial value of it, and then
getLiveRepoSizes subtracts that initial value from the current value.
Since the rolling total can only be updated by updateRepoSize,
which is called with the journal locked, locking the journal in
calcJournalledRepoSizes ensures that the database does not change while
reading the journal.
Joey Hess [Tue, 27 Aug 2024 14:17:43 +0000 (10:17 -0400)]
use live reposizes in balanced preferred content
Joey Hess [Tue, 27 Aug 2024 13:18:25 +0000 (09:18 -0400)]
fixed the build
Manually tested getLiveRepoSizes and it is working correctly.
Joey Hess [Tue, 27 Aug 2024 04:13:54 +0000 (00:13 -0400)]
fix a deadlock
When finishedLiveUpdate was run on a different key than expected, it
blocked forever waiting for an indication the database had been updated.
Since the journal is locked when finishedLiveUpdate runs, this could
also have caused other git-annex commands to hang.
Spencer [Mon, 26 Aug 2024 20:02:03 +0000 (20:02 +0000)]
Added contributions section to track my bugs and inquiries
Joey Hess [Mon, 26 Aug 2024 18:50:09 +0000 (14:50 -0400)]
started work on getLiveRepoSizes
Doesn't quite compile
Joey Hess [Mon, 26 Aug 2024 13:43:32 +0000 (09:43 -0400)]
partially fix concurrency issue in updating the rollingtotal
It's possible for two processes or threads to both be doing the same
operation at the same time. Eg, both dropping the same key. If one
finishes and updates the rollingtotal, then the other one needs to be
prevented from later updating the rollingtotal as well. And they could
finish at the same time, or with some time in between.
Addressed this by making updateRepoSize be called with the journal
locked, and only once it's been determined that there is an actual
location change to record in the log. updateRepoSize waits for the
database to be updated.
When there is a redundant operation, updateRepoSize won't be called,
and the redundant LiveUpdate will be removed from the database on
garbage collection.
But: There will be a window where the redundant LiveUpdate is still
visible in the db, and processes can see it, combine it with the
rollingtotal, and arrive at the wrong size. This is a small window, but
it still ought to be addressed. Unsure if it would always be safe to
remove the redundant LiveUpdate? Consider the case where two drops and a
get are all running concurrently somehow, and the order they finish is
[drop, get, drop]. The second drop seems redundant to the first, but
it would not be safe to remove it. While this seems unlikely, it's hard
to rule out that a get and drop at different stages can both be running
at the same time.
Joey Hess [Sun, 25 Aug 2024 14:48:42 +0000 (10:48 -0400)]
todo
Joey Hess [Sun, 25 Aug 2024 14:34:47 +0000 (10:34 -0400)]
rolling total of size changes in RepoSize database
When a live size change completes successfully, the same transaction
that removes it from the database updates the rolling total for its
repository.
The idea is that when RepoSizes is read, SizeChanges will be as
well, and cached locally. Any time a change is made, the local cache
will be updated. So by comparing the local cache with the current
SizeChanges, it can learn about size changes that were made by other
processes. Then read the LiveSizeChanges, and add that in to get a live
picture of the current sizes.
Also added a SizeChangeId. This allows 2 different threads, or
processes, to both record a live size change for the same repo and key,
and update their own information without stepping on one-another's toes.
Joey Hess [Sun, 25 Aug 2024 12:22:40 +0000 (08:22 -0400)]
use FileSize
It's just an alias, so this doesn't change the db schema, but it makes
explicit that it's not stored as an int64
Joey Hess [Sat, 24 Aug 2024 19:06:00 +0000 (15:06 -0400)]
update
Joey Hess [Sat, 24 Aug 2024 17:15:39 +0000 (13:15 -0400)]
update
Joey Hess [Sat, 24 Aug 2024 17:07:05 +0000 (13:07 -0400)]
improve live update starting
In an expression like "balanced=foo and exclude=bar", avoid it starting
a live update when the overall expression doesn't match.
Joey Hess [Sat, 24 Aug 2024 15:58:17 +0000 (11:58 -0400)]
todo
Joey Hess [Sat, 24 Aug 2024 15:49:58 +0000 (11:49 -0400)]
LiveUpdate db updates working
I've tested the behavior of the thread that waits for the LiveUpdate to
be finished, and it does get signaled and exit cleanly when the
LiveUpdate is GCed instead.
Made finishedLiveUpdate wait for the thread to finish updating the
database.
There is a case where GC doesn't happen in time and the database is left
with a live update recorded in it. This should not be a problem as such
stale data can also happen when interrupted and will need to be detected
when loading the database.
Balanced preferred content expressions now call startLiveUpdate.
Joey Hess [Sat, 24 Aug 2024 14:12:05 +0000 (10:12 -0400)]
LiveUpdate for clusters
Joey Hess [Sat, 24 Aug 2024 13:37:24 +0000 (09:37 -0400)]
punt on LiveUpdate plumbing through assistant for now
Joey Hess [Sat, 24 Aug 2024 13:34:22 +0000 (09:34 -0400)]
remove FIXME
Using NoLiveUpdate here is appropriate, because this is running the
server side of the P2P protocol. There no preferred content checking is
done.
Joey Hess [Sat, 24 Aug 2024 13:22:48 +0000 (09:22 -0400)]
more LiveUpdate plumbing
Joey Hess [Sat, 24 Aug 2024 13:20:58 +0000 (09:20 -0400)]
plumb in LiveUpdate to copy/get/move/mirror
copy and get do check preferred content, so need to prepareLiveUpdate.
move and mirror do not, but copy is implemented using move, so move also
needed to have a LiveUpdate plumbed through.
Joey Hess [Sat, 24 Aug 2024 13:19:12 +0000 (09:19 -0400)]
NoLiveExport for export and import
While these do check preferred content, it would not make sense to use
balanced preferred content with them.
yarikoptic [Sat, 24 Aug 2024 01:35:31 +0000 (01:35 +0000)]
initial report on desire to do handle pathspecs
yarikoptic [Sat, 24 Aug 2024 01:23:04 +0000 (01:23 +0000)]
initial idea on another ability for get
Joey Hess [Fri, 23 Aug 2024 20:35:12 +0000 (16:35 -0400)]
plumb in LiveUpdate (WIP)
Each command that first checks preferred content (and/or required
content) and then does something that can change the sizes of
repositories needs to call prepareLiveUpdate, and plumb it through the
preferred content check and the location log update.
So far, only Command.Drop is done. Many other commands that don't need
to do this have been updated to keep working.
There may be some calls to NoLiveUpdate in places where that should be
done. All will need to be double checked.
Not currently in a compilable state.
Joey Hess [Fri, 23 Aug 2024 16:51:00 +0000 (12:51 -0400)]
add live size changes to RepoSize database
Not yet used.
Joey Hess [Fri, 23 Aug 2024 15:45:36 +0000 (11:45 -0400)]
update
Joey Hess [Fri, 23 Aug 2024 15:19:38 +0000 (11:19 -0400)]
possible design to address reposizes concurrency issues
gauss@055c9051f507c97fa5612f46c74ce636f5ecde10 [Fri, 23 Aug 2024 01:51:49 +0000 (01:51 +0000)]
Added a comment: No root privileges server - annex-shell replaced by git-annex-shell
Joey Hess [Thu, 22 Aug 2024 12:09:10 +0000 (08:09 -0400)]
improve docs
Joey Hess [Thu, 22 Aug 2024 11:53:56 +0000 (07:53 -0400)]
update
Joey Hess [Thu, 22 Aug 2024 11:17:04 +0000 (07:17 -0400)]
update
Joey Hess [Thu, 22 Aug 2024 11:15:55 +0000 (07:15 -0400)]
Added the annex.fullybalancedthreshhold git config.
Joey Hess [Thu, 22 Aug 2024 11:03:22 +0000 (07:03 -0400)]
display new empty repos in maxsize table
A new repo that has no location log info yet, but has an entry in
uuid.log has 0 size, so make RepoSize aware of that.
Note that a new repo that does not yet appear in uuid.log will still not
be displayed.
When a remote is added but not synced with yet, it has no uuid.log
entry. If git-annex maxsize is used to configure that remote, it needs
to appear in the maxsize table, and the change to Command.MaxSize takes
care of that.
Joey Hess [Thu, 22 Aug 2024 00:52:54 +0000 (20:52 -0400)]
display ">100%" when past maxsize
This is to avoid a value like 1000% causing the table to not align.
Spencer [Thu, 22 Aug 2024 00:18:28 +0000 (00:18 +0000)]
Added a comment: Precise Workflow
Joey Hess [Wed, 21 Aug 2024 21:56:06 +0000 (17:56 -0400)]
make --rebalance of balanced use fullysizebalanced when useful
When the specified number of copies is > 1, and some repositories are
too full, it can be better to move content from them to other less full
repositories, in order to make space for new content.
annex.fullybalancedthreshhold is documented, but not implemented yet
This is not tested very well yet, and is known to sometimes take several
runs to stabalize.
Joey Hess [Wed, 21 Aug 2024 19:01:54 +0000 (15:01 -0400)]
Support "sizebalanced=" and "fullysizebalanced=" too
Might want to make --rebalance turn balanced=group:N where N > 1
to fullysizebalanced=group:N. Have not yet determined if that will
improve situations enough to be worth the extra work.
Joey Hess [Wed, 21 Aug 2024 16:18:31 +0000 (12:18 -0400)]
bug
Joey Hess [Wed, 21 Aug 2024 16:18:16 +0000 (12:18 -0400)]
fix column width
Joey Hess [Tue, 20 Aug 2024 17:52:46 +0000 (13:52 -0400)]
fix
Joey Hess [Tue, 20 Aug 2024 17:50:47 +0000 (13:50 -0400)]
implement fullbalanced=group:N
Rebalancing this when it gets into a suboptimal situation will need
further work.
Matthew [Mon, 19 Aug 2024 21:20:59 +0000 (21:20 +0000)]
Added a comment: Help with .nfsXXXX files
Joey Hess [Mon, 19 Aug 2024 15:33:47 +0000 (11:33 -0400)]
add %full field to table
matrss [Mon, 19 Aug 2024 10:25:13 +0000 (10:25 +0000)]
Added a comment
Joey Hess [Sun, 18 Aug 2024 20:25:12 +0000 (16:25 -0400)]
size based rebalancing design
Joey Hess [Sun, 18 Aug 2024 15:18:16 +0000 (11:18 -0400)]
maxsize overview display and --json support
xentac [Sun, 18 Aug 2024 03:17:12 +0000 (03:17 +0000)]
Added a comment