Title: [255857] trunk/Tools
- Revision
- 255857
- Author
- [email protected]
- Date
- 2020-02-05 14:11:49 -0800 (Wed, 05 Feb 2020)
Log Message
results.webkit.org: Apply ttl to archive shards
https://bugs.webkit.org/show_bug.cgi?id=207295
Rubber-stamped by Aakash Jain.
* resultsdbpy/resultsdbpy/model/archive_context.py:
(ArchiveContext.ArchiveMetaDataByCommit): Use new table.
(ArchiveContext.ArchiveChunks): Use new table.
(ArchiveContext.register): Add ttl to archive shards.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (255856 => 255857)
--- trunk/Tools/ChangeLog 2020-02-05 22:05:35 UTC (rev 255856)
+++ trunk/Tools/ChangeLog 2020-02-05 22:11:49 UTC (rev 255857)
@@ -1,3 +1,15 @@
+2020-02-05 Jonathan Bedard <[email protected]>
+
+ results.webkit.org: Apply ttl to archive shards
+ https://bugs.webkit.org/show_bug.cgi?id=207295
+
+ Rubber-stamped by Aakash Jain.
+
+ * resultsdbpy/resultsdbpy/model/archive_context.py:
+ (ArchiveContext.ArchiveMetaDataByCommit): Use new table.
+ (ArchiveContext.ArchiveChunks): Use new table.
+ (ArchiveContext.register): Add ttl to archive shards.
+
2020-02-05 Alex Christensen <[email protected]>
Make WKWebView._negotiatedLegacyTLS accurate when loading main resouorce from network or cache
Modified: trunk/Tools/resultsdbpy/resultsdbpy/model/archive_context.py (255856 => 255857)
--- trunk/Tools/resultsdbpy/resultsdbpy/model/archive_context.py 2020-02-05 22:05:35 UTC (rev 255856)
+++ trunk/Tools/resultsdbpy/resultsdbpy/model/archive_context.py 2020-02-05 22:11:49 UTC (rev 255857)
@@ -52,7 +52,7 @@
MEMORY_LIMIT = 2 * 1024 * 1024 * 1024 # Don't allow more than 2 gigs of archives in memory at one time
class ArchiveMetaDataByCommit(ClusteredByConfiguration):
- __table_name__ = 'archive_metadata_by_commit_01'
+ __table_name__ = 'archive_metadata_by_commit_02'
suite = columns.Text(partition_key=True, required=True)
branch = columns.Text(partition_key=True, required=True)
uuid = columns.BigInt(primary_key=True, required=True, clustering_order='DESC')
@@ -72,7 +72,7 @@
# According to https://cwiki.apache.org/confluence/display/CASSANDRA2/CassandraLimitations, we should shard
# large data blobs.
class ArchiveChunks(Model):
- __table_name__ = 'archive_chunks_01'
+ __table_name__ = 'archive_chunks_02'
digest = columns.Text(partition_key=True, required=True)
index = columns.Integer(primary_key=True, required=True)
chunk = columns.Blob(required=True)
@@ -133,6 +133,7 @@
self.ArchiveChunks.__table_name__,
digest=digest, index=index,
chunk=archive.read(self.CHUNK_SIZE),
+ ttl=ttl,
)
index += 1
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes