@@ -187,9 +187,9 @@ func (multi *MultiEpoch) GetBlock(ctx context.Context, params *old_faithful_grpc
187
187
return err
188
188
}
189
189
if slot == 0 {
190
- klog .V (5 ).Infof ("car start to slot(0)::%s" , blockCid )
190
+ klog .V (4 ).Infof ("car start to slot(0)::%s" , blockCid )
191
191
} else {
192
- klog .V (5 ).Infof (
192
+ klog .V (4 ).Infof (
193
193
"slot(%d)::%s to slot(%d)::%s" ,
194
194
uint64 (block .Meta .Parent_slot ),
195
195
parentBlockCid ,
@@ -262,7 +262,7 @@ func (multi *MultiEpoch) GetBlock(ctx context.Context, params *old_faithful_grpc
262
262
attribute .Int64 ("read_length" , int64 (length )),
263
263
)
264
264
265
- klog .V (5 ).Infof ("prefetching CAR: start=%d length=%d (parent_offset=%d)" , start , length , parentOffset )
265
+ klog .V (4 ).Infof ("prefetching CAR: start=%d length=%d (parent_offset=%d)" , start , length , parentOffset )
266
266
267
267
// This is the actual disk read operation - likely significant seek time here
268
268
readCtx , readSpan := telemetry .StartDiskIOSpan (prefetchCtx , "read_car_section" , map [string ]string {
@@ -548,7 +548,7 @@ func (multi *MultiEpoch) GetBlock(ctx context.Context, params *old_faithful_grpc
548
548
}
549
549
} else {
550
550
if slot != 0 {
551
- klog .V (5 ).Infof ("parent slot is in a different epoch, not implemented yet (can't get previousBlockhash)" )
551
+ klog .V (4 ).Infof ("parent slot is in a different epoch, not implemented yet (can't get previousBlockhash)" )
552
552
}
553
553
}
554
554
parentSpan .End ()
@@ -899,13 +899,18 @@ func (multi *MultiEpoch) StreamTransactions(params *old_faithful_grpc.StreamTran
899
899
endSlot = * params .EndSlot
900
900
}
901
901
gsfaReader , epochNums := multi .getGsfaReadersInEpochDescendingOrderForSlotRange (ctx , startSlot , endSlot )
902
+ wantedEpochs := slottools .CalcEpochsForSlotRange (startSlot , endSlot )
903
+ klog .V (4 ).Infof ("Streaming transactions from slots %d to %d, epochs %v" , startSlot , endSlot , wantedEpochs )
902
904
903
905
gsfaReadersLoaded := true
904
906
if len (epochNums ) == 0 {
905
- klog .V (5 ).Info ("The requested slot range does not have any GSFA readers loaded, will use the default method" )
907
+ klog .V (4 ).Info ("The requested slot range does not have any GSFA readers loaded, will use the default method" )
906
908
gsfaReadersLoaded = false
907
909
} else {
908
- klog .V (5 ).Infof ("Using GSFA readers for epochs: %v" , epochNums )
910
+ klog .V (4 ).Infof ("Using GSFA readers for epochs: %v; wanted epochs: %v" , epochNums , wantedEpochs )
911
+ if len (epochNums ) < len (wantedEpochs ) {
912
+ klog .V (4 ).Infof ("Not all epochs in the requested slot range have GSFA readers loaded" )
913
+ }
909
914
}
910
915
911
916
return multi .processSlotTransactions (ctx , ser , startSlot , endSlot , params .Filter , gsfaReader , gsfaReadersLoaded )
@@ -930,7 +935,7 @@ func (multi *MultiEpoch) processSlotTransactions(
930
935
}
931
936
932
937
if filter == nil || len (filter .AccountInclude ) == 0 || ! gsfaReadersLoaded {
933
- klog .V (5 ).Infof ("Using the old faithful method for streaming transactions from slots %d to %d" , startSlot , endSlot )
938
+ klog .V (4 ).Infof ("Using the old faithful method for streaming transactions from slots %d to %d" , startSlot , endSlot )
934
939
935
940
for slot := startSlot ; slot <= endSlot ; slot ++ {
936
941
select {
@@ -999,7 +1004,7 @@ func (multi *MultiEpoch) processSlotTransactions(
999
1004
return nil
1000
1005
}
1001
1006
1002
- klog .V (5 ).Infof ("Using GSFA reader for streaming transactions from slots %d to %d" , startSlot , endSlot )
1007
+ klog .V (4 ).Infof ("Using GSFA reader for streaming transactions from slots %d to %d" , startSlot , endSlot )
1003
1008
1004
1009
const batchSize = 100
1005
1010
buffer := newTxBuffer (uint64 (startSlot ), uint64 (endSlot ))
@@ -1053,7 +1058,7 @@ func (multi *MultiEpoch) processSlotTransactions(
1053
1058
return err
1054
1059
}
1055
1060
duration := time .Since (startTime )
1056
- klog .V (5 ).Infof ("GSFA query completed for account %s, from slot %d to %d took %s" , pKey .String (), startSlot , endSlot , duration )
1061
+ klog .V (4 ).Infof ("GSFA query completed for account %s, from slot %d to %d took %s" , pKey .String (), startSlot , endSlot , duration )
1057
1062
1058
1063
for epochNumber , txns := range epochToTxns {
1059
1064
epochHandler , err := multi .GetEpoch (epochNumber )
@@ -1118,7 +1123,6 @@ func (multi *MultiEpoch) processSlotTransactions(
1118
1123
// Handle any errors
1119
1124
klog .V (5 ).Infof ("Checking for errors from goroutines" )
1120
1125
errCheckStartTime := time .Now ()
1121
- wg .Wait ()
1122
1126
select {
1123
1127
case err := <- wgWaitToChannel (wg ):
1124
1128
if err != nil {
@@ -1139,11 +1143,11 @@ func (multi *MultiEpoch) processSlotTransactions(
1139
1143
if err := buffer .flush (ser ); err != nil {
1140
1144
return err
1141
1145
}
1142
- klog .V (5 ).Infof ("Buffer flush completed in %s" , time .Since (flushStartTime ))
1146
+ klog .V (4 ).Infof ("Buffer flush completed in %s" , time .Since (flushStartTime ))
1143
1147
1144
1148
// If we got here with no transactions (buffer is empty), send an empty response
1145
1149
if len (buffer .items ) == 0 {
1146
- klog .V (5 ).Infof ("No transactions found for the requested accounts, sending empty response" )
1150
+ klog .V (4 ).Infof ("No transactions found for the requested accounts, sending empty response" )
1147
1151
emptyResp := & old_faithful_grpc.TransactionResponse {
1148
1152
Slot : startSlot ,
1149
1153
// Include other required fields as needed
0 commit comments