Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for asError (0.12 sec)

  1. pkg/scheduler/framework/runtime/framework.go

    				// https://github.com/kubernetes/kubernetes/issues/119770
    				returnStatus = s
    				continue
    			}
    			return nil, framework.AsStatus(fmt.Errorf("running PreFilter plugin %q: %w", pl.Name(), s.AsError())).WithPlugin(pl.Name())
    		}
    		if !r.AllNodes() {
    			pluginsWithNodes = append(pluginsWithNodes, pl.Name())
    		}
    		result = result.Merge(r)
    		if !result.AllNodes() && len(result.NodeNames) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    			p := pl.(*PodTopologySpread)
    			cs := framework.NewCycleState()
    			if s := p.PreScore(ctx, cs, tt.pod, tf.BuildNodeInfos(tt.nodes)); !s.IsSkip() {
    				t.Fatalf("Expected skip but got %v", s.AsError())
    			}
    		})
    	}
    }
    
    func TestPreScoreStateEmptyNodes(t *testing.T) {
    	tests := []struct {
    		name                      string
    		pod                       *v1.Pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 60K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			}
    
    			res, status := pe.Preempt(ctx, test.pod, nodeToStatusMap)
    			if !status.IsSuccess() && !status.IsRejected() {
    				t.Errorf("unexpected error in preemption: %v", status.AsError())
    			}
    			if diff := cmp.Diff(test.want, res); diff != "" {
    				t.Errorf("Unexpected status (-want, +got):\n%s", diff)
    			}
    			if len(deletedPodNames) != len(test.expectedPods) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  4. pkg/scheduler/internal/queue/scheduling_queue.go

    		if s.IsSuccess() {
    			continue
    		}
    		pInfo.UnschedulablePlugins.Insert(pl.Name())
    		metrics.UnschedulableReason(pl.Name(), pod.Spec.SchedulerName).Inc()
    		if s.Code() == framework.Error {
    			logger.Error(s.AsError(), "Unexpected error running PreEnqueue plugin", "pod", klog.KObj(pod), "plugin", pl.Name())
    		} else {
    			logger.V(4).Info("Status after running PreEnqueue plugin", "pod", klog.KObj(pod), "plugin", pl.Name(), "status", s)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbSessionImpl.java

                            throw new SmbAuthException("Login failed", e);
                        }
                        else if ( !sessResponse.isReceived() || sessResponse.isError() || ( sessResponse.getStatus() != NtStatus.NT_STATUS_OK
                                && sessResponse.getStatus() != NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED ) ) {
                            throw e;
                        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  6. src/syscall/syscall_windows.go

    )
    
    func (e Errno) Is(target error) bool {
    	switch target {
    	case oserror.ErrPermission:
    		return e == ERROR_ACCESS_DENIED ||
    			e == EACCES ||
    			e == EPERM
    	case oserror.ErrExist:
    		return e == ERROR_ALREADY_EXISTS ||
    			e == ERROR_DIR_NOT_EMPTY ||
    			e == ERROR_FILE_EXISTS ||
    			e == EEXIST ||
    			e == ENOTEMPTY
    	case oserror.ErrNotExist:
    		return e == ERROR_FILE_NOT_FOUND ||
    			e == _ERROR_BAD_NETPATH ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/buildlist.go

    	}
    
    	var graphRoots []module.Version
    	if inWorkspaceMode() {
    		graphRoots = roots
    	} else {
    		graphRoots = MainModules.Versions()
    	}
    	var (
    		mu       sync.Mutex // guards mg.g and hasError during loading
    		hasError bool
    		mg       = &ModuleGraph{
    			g: mvs.NewGraph(cmpVersion, graphRoots),
    		}
    	)
    
    	if pruning != workspace {
    		if inWorkspaceMode() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    		// to where the expansion occurs. We care about where
    		// the expansion occurs, so in that case treat the note
    		// as an error.
    		isError := strings.Contains(line, ": error:")
    		isErrorNote := strings.Contains(line, ": note:") && sawUnmatchedErrors
    		if !isError && !isErrorNote {
    			continue
    		}
    
    		c1 := strings.Index(line, ":")
    		if c1 < 0 {
    			continue
    		}
    		c2 := strings.Index(line[c1+1:], ":")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  9. configure.py

      """Force symlink, equivalent of 'ln -sf'.
    
      Args:
        target: items to link to.
        link_name: name of the link.
      """
      try:
        os.symlink(target, link_name)
      except OSError as e:
        if e.errno == errno.EEXIST:
          os.remove(link_name)
          os.symlink(target, link_name)
        else:
          raise e
    
    
    def write_to_bazelrc(line):
      with open(_TF_BAZELRC, 'a') as f:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 04:32:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            }
    
            def legacyResults = DefaultResolverResults.DefaultLegacyResolverResults.graphResolved(
                depSpec -> selectedArtifacts(failure),
                Mock(ResolvedConfiguration) {
                    hasError() >> true
                }
            )
    
            DefaultResolverResults.graphResolved(visitedGraphResults, visitedArtifactSet, legacyResults)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
Back to top