Project

General

Profile

Actions

Bug #5172

closed
JL JL

Napatech stream mismanagement following non-transient error

Bug #5172: Napatech stream mismanagement following non-transient error

Added by Jeff Lucovsky about 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport to 6.0

Description

When a non-transient error, such as a "time merge error" occurs in the Napatech packet loop, the stream on which the error occurred is never closed. A new stream is opened, however.

Following a non-transient error from NT_NetRxGet, the stream should be closed with NT_NetRxClose before a new stream is opened.

JL Updated by Jeff Lucovsky about 4 years ago Actions #1

Because the original stream is not closed, it'll fill up and then 100% packet loss follows.

A simple time change -- as shown below -- is enough to trigger the hard error

import subprocess
import time

shift = 0

print(f"Shifting time by {shift} seconds")
print("Current", time.time())
replacement = int(time.time()) + shift

expected = time.time() + 10
subprocess.check_call(["date"])
subprocess.check_call(["date", "-s", f"@{replacement}"])

VJ Updated by Victor Julien about 4 years ago Actions #2

  • Assignee changed from OISF Dev to Phil Young

VJ Updated by Victor Julien almost 4 years ago Actions #3

  • Label deleted (Needs backport to 5.0)

VJ Updated by Victor Julien almost 4 years ago Actions #4

  • Target version changed from 7.0.0-beta1 to TBD

JL Updated by Jeff Lucovsky about 2 years ago Actions #5

  • Status changed from New to In Review
  • Assignee changed from Phil Young to Jeff Lucovsky

JL Updated by Jeff Lucovsky almost 2 years ago Actions #6

  • Status changed from In Review to Closed
Actions

Also available in: PDF Atom