Skip to content

Commit

Permalink
debug #888, debug TestLongListRemote
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Jul 26, 2024
1 parent 0644b5e commit 021bca3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ jobs:
GOROOT: ${{ env.GOROOT_1_22_X64 }}
CLICKHOUSE_VERSION: ${{ matrix.clickhouse }}
# options for advanced debug CI/CD
RUN_TESTS: "TestLongListRemote"
LOG_LEVEL: "debug"
# RUN_TESTS: "TestLongListRemote"
# LOG_LEVEL: "debug"
# TEST_LOG_LEVEL: "debug"
# GCS_DEBUG: "true"
# SFTP_DEBUG: "true"
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (bd *BackupDestination) BackupList(ctx context.Context, parseMetadata bool,
sort.SliceStable(result, func(i, j int) bool {
return result[i].UploadDate.Before(result[j].UploadDate)
})
if cacheMiss {
if cacheMiss || len(result) < len(listCache) {
if err = bd.saveMetadataCache(ctx, listCache, result); err != nil {
return nil, fmt.Errorf("bd.saveMetadataCache return error: %v", err)
}
Expand Down

0 comments on commit 021bca3

Please sign in to comment.