This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 25 Jan, 2021 9 commits
  2. 21 Jan, 2021 1 commit
  3. 20 Jan, 2021 7 commits
  4. 19 Jan, 2021 5 commits
  5. 15 Jan, 2021 5 commits
  6. 14 Jan, 2021 10 commits
    • Drew Bailey's avatar
      bump upgrade guide version (#9822) · 57cdad28
      Drew Bailey authored
      * bump upgrade guide version
      
      * drop 1.0.3 until there are upgrade specifics
      57cdad28
    • Kris Hicks's avatar
      Fix some errcheck errors (#9811) · 2cd7136b
      Kris Hicks authored
      * Throw away result of multierror.Append
      
      When given a *multierror.Error, it is mutated, therefore the return
      value is not needed.
      
      * Simplify MergeMultierrorWarnings, use StringBuilder
      
      * Hash.Write() never returns an error
      
      * Remove error that was always nil
      
      * Remove error from Resources.Add signature
      
      When this was originally written it could return an error, but that was
      refactored away, and callers of it as of today never handle the error.
      
      * Throw away results of io.Copy during Bridge
      
      * Handle errors when computing node class in test
      2cd7136b
    • Kris Hicks's avatar
      csi: Return error when deleting node (#9803) · 35f831c0
      Kris Hicks authored
      In this change we'll properly return the error in the
      CSIPluginTypeMonolith case (which is the type given in DeleteNode()),
      and also return the error when the given ID is not found.
      
      This was found via errcheck.
      35f831c0
    • Kris Hicks's avatar
      gatedwriter: Fix race condition (#9791) · c52e0bbf
      Kris Hicks authored
      If one thread calls `Flush()` on a gatedwriter while another thread attempts to
      `Write()` new data to it, strange things will happen.
      
      The test I wrote shows that at the very least you can write _while_ flushing,
      and the call to `Write()` will happen during the internal writes of the
      buffered data, which is maybe not what is expected. (i.e. the `Write()`'d data
      will be inserted somewhere in the middle of the data being `Flush()'d`)
      
      It's also the case that, because `Write()` only has a read lock, if you had
      multiple threads trying to write ("read") at the same time you might have data
      loss because the `w.buf` that was read would not necessarily be up-to-date by
      the time `p2` was appended to it and it was re-assigned to `w.buf`. You can see
      this if you run the new gatedwriter tests with `-race` against the old implementation:
      
      ```
      WARNING: DATA RACE
      Read at 0x00c0000c0420 by goroutine 11:
        runtime.growslice()
            /usr/lib/go/src/runtime/slice.go:125 +0x0
        github.com/hashicorp/nomad/helper/gated-writer.(*Writer).Write()
            /home/hicks/workspace/nomad/helper/gated-writer/writer.go:41 +0x2b6
        github.com/hashicorp/nomad/helper/gated-writer.TestWriter_WithMultipleWriters.func1()
            /home/hicks/workspace/nomad/helper/gated-writer/writer_test.go:90 +0xea
      ```
      
      This race condition is fixed in this change.
      c52e0bbf
    • Kris Hicks's avatar
      Refactor Job.Scale() (#9771) · 054e53af
      Kris Hicks authored
      054e53af
    • Kris Hicks's avatar
      Add missing sink.Cancel() in fsm (#9818) · 360a6500
      Kris Hicks authored
      360a6500
    • Drew Bailey's avatar
      bump website version (#9820) · 893777a8
      Drew Bailey authored
      893777a8
    • Drew Bailey's avatar
      Release 1.0.2 (#9819) · 9198ee34
      Drew Bailey authored
      
      * changelog for release 1.0.2
      
      * Generate files for 1.0.2 release
      
      * Release v1.0.2
      
      * rm generated files, update changelog for next release
      
      * checkout bindata_assetfs
      
      * bump version
      Co-authored-by: default avatarNomad Release bot <nomad@hashicorp.com>
      9198ee34
    • Brandon Romano's avatar
      Merge pull request #9805 from hashicorp/br.stack-menu · 42159636
      Brandon Romano authored
      Website StackMenu updates for 1/14
      42159636
    • Mahmood Ali's avatar
      ci: only read/modify `GO_TAGS` field (#9815) · 77c4cff6
      Mahmood Ali authored
      Only lookup GO_TAGS variable, and avoid the false positives where GO_TAGS is a variable suffix.
      77c4cff6
  7. 13 Jan, 2021 3 commits