112
// The filename has the format: closeTimestamp_hash(runID).visibility
113
// This format allows the archiver to sort all records without reading the file contents
114
>
filename := constructVisibilityFilename(request.CloseTime.AsTime(), request.GetRunId())
visibility_archiver.go
115
>
if err := writeFile(path.Join(dirPath, filename), encodedVisibilityRecord, v.fileMode); err != nil {
116
logger.Error(archiver.ArchiveNonRetryableErrorMsg, tag.ArchivalArchiveFailReason(errWriteFile), tag.Error(err))
117
return err
118
}
119
121
}
122