Skip to content

Commit

Permalink
Minor changes after testing by PR77 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
q131172019 authored Jul 13, 2022
1 parent 332db6d commit 4622bdc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions resource-management/pkg/aggregrator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func (a *Aggregator) Run() (err error) {

klog.V(3).Infof("Starting loop pulling nodes from region: %v", a.urls[i])
for {
klog.V(9).Infof("Wait for 100 milisecond...")
time.Sleep(100 * time.Millisecond)

// Call the Pull methods
Expand Down Expand Up @@ -149,8 +148,6 @@ func (a *Aggregator) initPullOrSubsequentPull(c *ClientOfRRM, batchLength uint64
path = httpPrefix + c.BaseURL + "/resources/subsequentpull"
}

klog.V(9).Infof("CRV : (%v)", crv)

bytes, _ := json.Marshal(PullDataFromRRM{BatchLength: batchLength, CRV: crv.Copy()})
req, err := http.NewRequest(http.MethodGet, path, strings.NewReader((string(bytes))))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion resource-management/test/e2e/singleClientTest.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func watchNodes(client rmsclient.RmsInterface, clientId string, crv types.Transi
func logIfProlonged(record *event.NodeEvent, t time.Time, ws *stats.WatchStats) {
d := t.Sub(record.Node.LastUpdatedTime)
if d > stats.LongWatchThreshold {
klog.Infof("Prolonged watch node from server: %v, %v", record, *record.Node)
klog.Infof("Prolonged watch node from server: %v, %v with time (%v)", record, *record.Node, d)
ws.NumberOfProlongedItems++
}
}
Expand Down

0 comments on commit 4622bdc

Please sign in to comment.