77

I know this is a very basic question but I cant seem to find the answer with Google. What is the difference between a hotfix and a bugfix?

0

3 Answers 3

70

The term hotfix is generally used when client has found an issue within the current release of the product and can not wait to be fixed until the next big release. Hence a hotfix issue is created to fix it and is released as a part of update to the current release usually called Cumulative Update(CU). CUs are nothing but a bunch of hotfixes together.

Bugfix - We usually use this when an issue is found during the development and testing phase internally.

0
31

From my experience in support at a large software company the two terms are unrelated.

Bug fix is an action on the source code, it is a code change or set of changes to address a reported code defect (a bug.)

A hotfix is generally a patch or update for clients / deployed systems but more specifically they are patches which are:-

  • not released to a schedule.

  • intended to address either 'niche' situations or 'emergency' responses.

  • only relevant to the specific issue documented in the release notes.

  • poorly tested. If at all.

  • a potential source for the (re)introduction of bugs.

  • intended for small audiences.

  • likely to affect automated patching systems and require additional monitoring. Hotfixes may deploy a file/library with unusually high version number to prevent the hotfix from being patched over.

  • supplied by the software maker directly to named contacts, not publically available. Customers are often expected to contact technical support to request hotfixes for example.

  • frequently branched from the 'last known good' source tree. As a 'quick fix' the code used in the hotfix may never make it back into the main build (it may be that as a temporary fix a better solution requires more time/resources.)

3
  • This is the best answer. Should hot fixes for non-trivial issues go through all test environments, or should they go directly from dev to prod ? What have you seen in your experience ? thanks.
    – MasterJoe
    Commented Jul 2, 2020 at 18:55
  • @MasterJoe2 - I can't think of a situation where a hotfix would ever be non-trivial, it is the least effort, quickest (dirtiest) code known to dev-kind and it should never ever go to "production" in terms of a general release. Think of it as first-aid, not surgery. Commented Jul 3, 2020 at 13:36
  • 1
    @MasterJoe2 - to give an example, I worked on a product where a rash of clients began losing data - it turned out the file format had 32-bit references and while we needed to increase it, that was non-trivial. The hotfix checked the file size, threw an error and stopped bad writes. It was tested to confirm it would do that and out the door it went (just to those customers.) Testing later showed some 'interesting' side effects but it was 'good enough' to stop the problem that was giving real-world pain and gave us time to build a production grade fix. Commented Jul 3, 2020 at 13:57
15

A bugfix is just that: a fix for a bug. This could happen at almost any time in a product's lifetime: during development, during testing, or after release.

A hotfix can be one or more bugfixes. The important part is the hot, which refers to when it is applied. Originally, it referred to patching an actively running system (aka, 'hot'). It's grown to more generally refer to bugfixes provided after the product is released to the public (this could be during public beta testing, too), but outside of the regular update schedule.

Not the answer you're looking for? Browse other questions tagged or ask your own question.