question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Erratic timestamp ordering in File Storage System view.

See original GitHub issue

Describe the bug At first, when adding new files to the internal storage system, the timestamps are ordered from oldest to newest.

But as you add for files to the system, the timestamps start to make no sense in terms of order.

To Reproduce the bug Steps to reproduce the reported bug:

  1. Enable the file system
  2. Add a bunch of files to your local file system
  3. See the timestamps start to become erratic

Expected behavior

The default visual order of the files should be old to new, or new to old.

Screenshots chrome_zX7h6efTmy

As seen in screenshot, timestamps are inconsistent. This seems to have no relation to alphabetical order either. This seems to have an impact on files uploaded on the same day only.

Your BTCPay Environment (please complete the following information):

  • BTCPay Server Version: v1.0.6.8
  • Deployment Method: Lunanode
  • Browser: Chrome & Firefox

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
bolatovumarcommented, Feb 22, 2021

@Zaxounette yeah, the current code doesn’t guarantee that things will be ordered by the timestamp as far as I can tell so things can show up out of order. If we wanted to I could make it so that the items are ordered by the timestamped when being shown to the user if that’s the behavior we want. I guess we could also have a sortable table so the user can view things from latest to oldest and vice-versa.

1reaction
pavlenexcommented, Feb 22, 2021

I think adding by timestamp would be a good starting point, but sortable table is even better idea as well, concept ack from my end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timestamp based Concurrency Control
... Top 50 Array Problems · Top 50 String Problems ... The timestamp ordering protocol ensures that any conflicting read and write ...
Read more >
DBMS Timestamp Ordering Protocol
DBMS Timestamp Ordering Protocol with DBMS Overview, DBMS vs Files System, ... Database Security Problems with ER Model Advantages of DBMS Advantages and ......
Read more >
Timestamp Ordering Protocols: Benefits and Drawbacks
Learn how timestamp ordering protocols ensure data consistency and avoid deadlock in database systems, and what are their pros and cons.
Read more >
Sharding of timestamp-ordered data in Cloud Spanner
Sharding of timestamp-ordered data in Cloud Spanner ... nodes that service new splits become hotspots due to uneven key distribution.
Read more >
Unifying Timestamp with Transaction Ordering for MVCC ...
This paper presents DST, a decentralized scalar timestamp scheme to scale distributed transactions using multi-version concurrency control (MVCC).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found