@@ -217,7 +217,7 @@ func (b *BigtableIdx) Update(point schema.MetricPoint, partition int32) (idx.Arc
217
217
218
218
if inMemory {
219
219
// bigtable uses partition ID in the key prefix, so an "update" that changes the partition for
220
- // an existing metricDef will just create a new row in the table and wont remove the old row.
220
+ // an existing metricDef will just create a new row in the table and won't remove the old row.
221
221
// So we need to explicitly delete the old entry.
222
222
if oldPartition != partition {
223
223
go func () {
@@ -255,7 +255,7 @@ func (b *BigtableIdx) AddOrUpdate(mkey schema.MKey, data *schema.MetricData, par
255
255
256
256
if inMemory {
257
257
// bigtable uses partition ID in the key prefix, so an "update" that changes the partition for
258
- // an existing metricDef will just create a new row in the table and wont remove the old row.
258
+ // an existing metricDef will just create a new row in the table and won't remove the old row.
259
259
// So we need to explicitly delete the old entry.
260
260
if oldPartition != partition {
261
261
go func () {
@@ -289,7 +289,7 @@ func (b *BigtableIdx) updateBigtable(now uint32, inMemory bool, archive idx.Arch
289
289
b .MemoryIdx .UpdateArchive (archive )
290
290
} else {
291
291
// perform a non-blocking write to the writeQueue. If the queue is full, then
292
- // this will fail and we wont update the LastSave timestamp. The next time
292
+ // this will fail and we won't update the LastSave timestamp. The next time
293
293
// the metric is seen, the previous lastSave timestamp will still be in place and so
294
294
// we will try and save again. This will continue until we are successful or the
295
295
// lastSave timestamp become more then 1.5 x UpdateInterval, in which case we will
@@ -341,7 +341,7 @@ func (b *BigtableIdx) LoadPartition(partition int32, defs []schema.MetricDefinit
341
341
return true
342
342
}, bigtable .RowFilter (bigtable .FamilyFilter (COLUMN_FAMILY )))
343
343
if err != nil {
344
- log .Fatalf ("bigtable-idx: failed to load defs form Bigtable. %s" , err )
344
+ log .Fatalf ("bigtable-idx: failed to load defs from Bigtable. %s" , err )
345
345
}
346
346
if marshalErr != nil {
347
347
log .Fatalf ("bigtable-idx: failed to marshal row to metricDef. %s" , marshalErr )
@@ -390,7 +390,7 @@ func (b *BigtableIdx) processWriteQueue() {
390
390
errs , err := b .tbl .ApplyBulk (context .Background (), rowKeys , mutations )
391
391
if err != nil {
392
392
statQueryInsertFail .Add (len (rowKeys ))
393
- log .Errorf ("bigtable-idx: Failed to write %d defs to bigtable. they wont be retried. %s" , len (rowKeys ), err )
393
+ log .Errorf ("bigtable-idx: Failed to write %d defs to bigtable. they won't be retried. %s" , len (rowKeys ), err )
394
394
complete = true
395
395
} else if len (errs ) > 0 {
396
396
var failedRowKeys []string
0 commit comments