Advertisement:

Author Topic: SMF fail?  (Read 1339 times)

Offline efk

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
SMF fail?
« on: September 01, 2017, 05:20:35 PM »

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 67,903
    • Arantor on GitHub
Re: SMF fail?
« Reply #1 on: September 01, 2017, 05:32:14 PM »
This is called a race condition and is a natural part of computing science.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline efk

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
Re: SMF fail?
« Reply #2 on: September 01, 2017, 05:39:25 PM »
So my post was 1st but his post is a winner. Btw I've used "Preview" and there was red message about new post just before my post and only post was his post so he posted at least 15 seconds before I did. In other words maybe I used Preview in the same time he posted so forum read Preview as 1st and counted/exchanged time like that.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 67,903
    • Arantor on GitHub
Re: SMF fail?
« Reply #3 on: September 01, 2017, 06:01:07 PM »
Nope, that's not what happened.

It's a race condition, nothing more.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,100
    • @studyforceps on Twitter
    • Study Force
Re: SMF fail?
« Reply #4 on: September 01, 2017, 06:45:55 PM »
Nope, that's not what happened.

It's a race condition, nothing more.

What in the world is that?

Offline d3vcho();

  • Localizer
  • SMF Hero
  • *
  • Posts: 2,190
  • Gender: Male
  • Be prepared for hell
    • d3vcho on GitHub
    • @SMF_ES on Twitter
Re: SMF fail?
« Reply #5 on: September 01, 2017, 07:11:00 PM »

Offline SleePy

  • Site Team Lead
  • SMF Master
  • *
  • Posts: 29,880
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: SMF fail?
« Reply #6 on: September 03, 2017, 11:08:21 AM »
This should be corrected. Its not a SMF fail, but servers configuration issue.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub
G+

Offline efk

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
Re: SMF fail?
« Reply #7 on: September 03, 2017, 12:19:20 PM »
So my post was 1st but his post is a winner. Btw I've used "Preview" and there was red message about new post just before my post and only post was his post so he posted at least 15 seconds before I did. In other words maybe I used Preview in the same time he posted so forum read Preview as 1st and counted/exchanged time like that.
Nope, that's not what happened.

It's a race condition, nothing more.
https://stackoverflow.com/questions/34510/what-is-a-race-condition

This answer about "check and act" (marked as useful for 746 users) in some way confirms my theory how there is a chance that when I used "Preview" button, other member at the same time used "Post" button so I believe how that is the reason for placing his post after mine. I used Preview about 20 seconds before posting, so that must to have connection in this case. When any of these buttons is used, there is usually about a 1 second before post becomes visible in preview or public.
Also this is 2nd or 3rd time that I saw this to happen, of course previously on another forum.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 67,903
    • Arantor on GitHub
Re: SMF fail?
« Reply #8 on: September 03, 2017, 12:27:42 PM »
Or not.

There are multiple servers that host this forum. They have different times set on them, and it is the server's time that is stored in the database. If one server is set to being 30 seconds ahead of the other, this can happen.

But I guess a former SMF dev and the current site manager of this site know less about PHP and servers than you do...
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.