[BUG] ApproximateCreationDateTime from DynamoDBStreamRecord in milliseconds when originating from Kinesis, not seconds.
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 3.8k
- Fork
- 578
- Merge medio
- 8h 18m
- PR unite (30g)
- 1
Descrizione
This is essentially the same issue as https://github.com/aws/aws-lambda-dotnet/issues/839, but without crashing deserialization, which I'm guessing is due to the use of float64 that avoids overflowing with the larger value to deserialize. The relevant points of discussion are:
- https://github.com/aws/aws-lambda-dotnet/issues/839#issuecomment-1055736269
- https://github.com/aws/aws-lambda-dotnet/issues/839#issuecomment-1063559586
It seems that the value of ApproximateCreationDateTime will be in seconds when coming from a DynamoDB Stream, but in milliseconds when coming from a Kinesis Stream:
- DynamoDB Streams - https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_StreamRecord.html
The approximate date and time when the stream record was created, in UNIX epoch time format and rounded down to the closest second
ApproximateCreationDateTime indicates the time of the modification in milliseconds.
There appears to be an internal ticket that's being tracked, so I wanted to open an issue here as well for AWS to monitor and hopefully resolve in the near future. Thanks!
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal campo ApproximateCreationDateTime di DynamoDBStreamRecord e confrontane la gestione per i record Kinesis e DynamoDB Stream. Leggi prima l’issue aws-lambda-dotnet collegata e la documentazione AWS sugli stream; il lavoro è completo quando il valore usa l’unità corretta per ciascuna origine e il comportamento di deserializzazione è coperto da un controllo di regressione appropriato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, go
- Ambito
- backend, cloud
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100